commit d52c7a0ee5fe4b54d15f5ed25b6326ee5f22255e parent b50102af01d07154b8bf59571596722684dc5183 Author: Martin Ashby <martin@ashbysoft.com> Date: Sun, 3 Mar 2024 09:27:38 +0000 Move rss link to menu Remove page-meta div if empty Diffstat:
M | config.toml | | | 13 | +++++++++---- |
M | themes/XMin/layouts/partials/foot_custom.html | | | 15 | --------------- |
M | themes/XMin/layouts/partials/footer.html | | | 2 | ++ |
3 files changed, 11 insertions(+), 19 deletions(-)
diff --git a/config.toml b/config.toml @@ -4,11 +4,16 @@ title = 'mfashby.net' theme = "XMin" [[menu.main]] -name = "Home" +name = "home" url = "" weight = 1 [[menu.main]] -name = "About" +name = "about" url = "about/" -weight = 2 -\ No newline at end of file +weight = 2 + +[[menu.main]] +name = "rss" +url = "index.xml" +weight = 3 +\ No newline at end of file diff --git a/themes/XMin/layouts/partials/foot_custom.html b/themes/XMin/layouts/partials/foot_custom.html @@ -1,18 +1,3 @@ - -<a href="https://mfashby.net/index.xml"> -<svg xmlns="http://www.w3.org/2000/svg" - role="img" aria-label="[title]" - width="24" height="24" - viewBox="0 0 24 24" - fill="none" - stroke="orange" - stroke-width="2" - stroke-linecap="round" - stroke-linejoin="round"> - <title>RSS</title> - <path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg> -</a> - {{ if .Param "comments" }} <h2>comments</h2> <div style="visibility: hidden" id="comments">comments go here</div> diff --git a/themes/XMin/layouts/partials/footer.html b/themes/XMin/layouts/partials/footer.html @@ -1,8 +1,10 @@ <footer> + {{ if or (.Params.author) (gt .Params.lastmod 0) }} <div class="article-meta"> {{ with .Params.author }}Author <span class="author">{{ . }}</span><br/>{{ end }} {{ if (gt .Params.lastmod 0) }}Updated <span class="date">{{ .Lastmod.Format "2006/01/02" }}</span><br/>{{ end }} </div> + {{ end }} {{ partial "foot_custom.html" . }} {{ with .Site.Params.footer }}