Rename commit_url_prefix to commit_url, change to format string

This commit is contained in:
Will Faught
2023-04-07 23:24:18 -07:00
parent 1649a9566e
commit e81acc2a92
4 changed files with 6 additions and 6 deletions

View File

@@ -19,8 +19,8 @@
{{ $title := $page.Title | markdownify }}
{{ $titlelink := $page.RelPermalink }}
{{ if and (.Param "paige.git.commit_url_prefix") .GitInfo }}
{{ $commiturl = print (.Param "paige.git.commit_url_prefix") .GitInfo.Hash }}
{{ if and (.Param "paige.git.commit_url") .GitInfo }}
{{ $commiturl = printf (.Param "paige.git.commit_url") .GitInfo.Hash }}
{{ end }}
{{ if $draft }}