diff options
author | Martin Ashby <martin@ashbysoft.com> | 2024-03-03 09:27:38 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2024-03-03 09:27:38 +0000 |
commit | d52c7a0ee5fe4b54d15f5ed25b6326ee5f22255e (patch) | |
tree | cad5b3b9d6a40cec9600ac149a5dd7ce80cb9119 | |
parent | b50102af01d07154b8bf59571596722684dc5183 (diff) | |
download | mfashby.net-d52c7a0ee5fe4b54d15f5ed25b6326ee5f22255e.tar.gz mfashby.net-d52c7a0ee5fe4b54d15f5ed25b6326ee5f22255e.tar.bz2 mfashby.net-d52c7a0ee5fe4b54d15f5ed25b6326ee5f22255e.tar.xz mfashby.net-d52c7a0ee5fe4b54d15f5ed25b6326ee5f22255e.zip |
Move rss link to menu
Remove page-meta div if empty
-rw-r--r-- | config.toml | 11 | ||||
-rw-r--r-- | themes/XMin/layouts/partials/foot_custom.html | 15 | ||||
-rw-r--r-- | themes/XMin/layouts/partials/footer.html | 2 |
3 files changed, 10 insertions, 18 deletions
diff --git a/config.toml b/config.toml index a4ebd49..816e318 100644 --- 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 index 3dd47a3..970c41c 100644 --- 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 index b2a1d6c..082588d 100644 --- 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 }} |