diff options
Diffstat (limited to 'themes/beautifulhugo/layouts')
-rw-r--r-- | themes/beautifulhugo/layouts/partials/footer.html | 14 | ||||
-rw-r--r-- | themes/beautifulhugo/layouts/partials/post_meta.html | 3 |
2 files changed, 7 insertions, 10 deletions
diff --git a/themes/beautifulhugo/layouts/partials/footer.html b/themes/beautifulhugo/layouts/partials/footer.html index 030f657..15bd69d 100644 --- a/themes/beautifulhugo/layouts/partials/footer.html +++ b/themes/beautifulhugo/layouts/partials/footer.html @@ -50,7 +50,7 @@ <!-- Please don't remove this, keep my open source work credited :) --> <p class="credits theme-by text-muted"> {{ i18n "poweredBy" . | safeHTML }} - {{ with .Site.Params.commit }} • [<a href="{{.}}{{ getenv "GIT_COMMIT_SHA" }}">{{ getenv "GIT_COMMIT_SHA_SHORT" }}</a>]{{ end }} + {{ with .Site.Params.commit }} • [<a href="https://github.com/christoph-cullmann/cullmann.io/commit/{{ getenv "GIT_COMMIT_SHA" }}">{{ getenv "GIT_COMMIT_SHA_SHORT" }}</a>]{{ end }} </p> </div> </div> @@ -133,19 +133,19 @@ $(function(){ $('#show-comments').on('click', function(){ var disqus_shortname = '{{ .Site.DisqusShortname }}'; - + (function() { - var disqus = document.createElement('script'); - disqus.type = 'text/javascript'; + var disqus = document.createElement('script'); + disqus.type = 'text/javascript'; disqus.async = true; disqus.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(disqus); })(); - - $(this).hide(); + + $(this).hide(); }); }); - + </script> <script id="dsq-count-scr" src="//{{ .Site.DisqusShortname }}.disqus.com/count.js" async></script> <!-- End Delayed Disqus --> diff --git a/themes/beautifulhugo/layouts/partials/post_meta.html b/themes/beautifulhugo/layouts/partials/post_meta.html index f7e03d7..fa07693 100644 --- a/themes/beautifulhugo/layouts/partials/post_meta.html +++ b/themes/beautifulhugo/layouts/partials/post_meta.html @@ -2,9 +2,6 @@ {{ $lastmodstr := default (i18n "dateFormat") .Site.Params.dateformat | .Lastmod.Format }} {{ $datestr := default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format }} <i class="fas fa-calendar"></i> {{ $datestr | i18n "postedOnDate"}} - {{ if ne $datestr $lastmodstr }} - {{ $lastmodstr | i18n "lastModified" }} - {{ end }} {{ if .Site.Params.readingTime }} | <i class="fas fa-clock"></i> {{ i18n "readingTime"}}{{ .ReadingTime }} {{ i18n "readTime" }} {{ end }} |