diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 2d55883..398a473 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -27,8 +27,8 @@ params: wordcount: true readingtime: true - # used for last update - repoURL: https://github.com/BBaoVanC/bobatheme + # used for "View history" + historyURL: https://github.com/BBaoVanC/bobatheme/commits/master privacy: googleAnalytics: diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html index a897fea..e6d0f1f 100644 --- a/layouts/partials/post-metadata.html +++ b/layouts/partials/post-metadata.html @@ -43,16 +43,14 @@ {{ end }} - {{ if .Site.Params.repoURL }} - {{ with .GitInfo }} + {{ with .Site.Params.historyURL }} - {{ partial "icon.html" "branch" }} - - {{ .AbbreviatedHash }} + {{ partial "icon.html" "history" }} + + View history {{ end }} - {{ end }}
{{ range (.GetTerms "tags") }}