From ddbcaa6d56db75dfb5b1eedcb27d21efa82aab38 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 10 Oct 2021 19:03:15 -0500 Subject: [PATCH] Don't show modified date if git commit is shown It's redundant --- assets/css/bobastyle.css | 2 +- layouts/partials/post-metadata.html | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 4cb0c3d..82ace38 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -18,7 +18,7 @@ } .post-meta-item { - margin-right: 5px; + margin-right: 10px; white-space: nowrap; } diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html index 721e3e8..c39e835 100644 --- a/layouts/partials/post-metadata.html +++ b/layouts/partials/post-metadata.html @@ -6,16 +6,19 @@ + - {{ if ne .Lastmod .Date }} + {{ if not .Site.Params.repoURL }} + {{ if ne .Lastmod .Date }} + {{ partial "icon.html" "edit-2" }} {{ end }} - - {{ end }} + {{ end }} + {{ end }} {{ if .Site.Params.wordcount }} @@ -31,6 +34,7 @@ {{ end }} + {{ if .Site.Params.repoURL }} {{ with .GitInfo }} {{ partial "icon.html" "git-commit" }} @@ -39,6 +43,7 @@ {{ end }} + {{ end }}
{{ range (.GetTerms "tags") }}