From 7f50f6106d557f13a34b4978a676b127a0435981 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 3 Aug 2019 22:41:09 +0200 Subject: [PATCH] port changes from kate-editor.org --- themes/beautifulhugo/layouts/partials/footer.html | 14 +++++++------- .../beautifulhugo/layouts/partials/post_meta.html | 3 --- themes/beautifulhugo/static/css/main.css | 6 +++--- 3 files changed, 10 insertions(+), 13 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 @@

{{ i18n "poweredBy" . | safeHTML }} - {{ with .Site.Params.commit }} • [{{ getenv "GIT_COMMIT_SHA_SHORT" }}]{{ end }} + {{ with .Site.Params.commit }} • [{{ getenv "GIT_COMMIT_SHA_SHORT" }}]{{ end }}

@@ -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(); }); }); - + 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 }}  {{ $datestr | i18n "postedOnDate"}} - {{ if ne $datestr $lastmodstr }} -  {{ $lastmodstr | i18n "lastModified" }} - {{ end }} {{ if .Site.Params.readingTime }}  |  {{ i18n "readingTime"}}{{ .ReadingTime }} {{ i18n "readTime" }} {{ end }} diff --git a/themes/beautifulhugo/static/css/main.css b/themes/beautifulhugo/static/css/main.css index 999ff11..5f2a637 100644 --- a/themes/beautifulhugo/static/css/main.css +++ b/themes/beautifulhugo/static/css/main.css @@ -567,10 +567,10 @@ footer .theme-by { } .intro-header .page-heading h1, .intro-header .tags-heading h1 { - font-size: 80px; + font-size: 40px; } .intro-header .post-heading h1 { - font-size: 50px; + font-size: 30px; } .intro-header.big-img .img-desc { font-size: 14px; @@ -756,7 +756,7 @@ div.splitbox div.right { padding: 15px 25px; } } -.disqus-comments button:hover, +.disqus-comments button:hover, .disqus-comments button:focus { color: #FFF; background: #0085a1;