From 3f98073aea970f249a97a54de4a50f237d0d9871 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Tue, 2 Nov 2021 00:47:59 -0500 Subject: [PATCH] Change git commit to view history button --- exampleSite/config.yaml | 4 ++-- layouts/partials/post-metadata.html | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) 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") }}