diff options
author | tdro <tdro@noreply.example.com> | 2023-02-22 21:47:20 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-02-22 21:47:20 -0500 |
commit | 7559749f262265bd5cfb32330275bcd718411da7 (patch) | |
tree | 31ac60e4e3c4ca096e54c596b512acd65cf3b7b0 | |
parent | 33f0c1b37088c1876175790a81fd7be500eed0c9 (diff) | |
download | canory-7559749f262265bd5cfb32330275bcd718411da7.tar.gz canory-7559749f262265bd5cfb32330275bcd718411da7.tar.bz2 canory-7559749f262265bd5cfb32330275bcd718411da7.zip |
themes/default/layouts/_default/sitemap: Sort by date
Fix anchor hover states and add href
-rw-r--r-- | assets/css/default.css | 4 | ||||
-rw-r--r-- | themes/default/layouts/_default/home.xslt.sitemap.xsl | 2 | ||||
-rw-r--r-- | themes/default/layouts/_default/sitemap.xml | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index 3fe8ccf..fffb89d 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -1981,11 +1981,11 @@ link-card article a { padding: 1rem; } -[xml-data="sitemap"] a { +[xml-data="sitemap"] section a { text-decoration: none; } -[xml-data="sitemap"] a:hover { +[xml-data="sitemap"] section a:hover { text-decoration: underline; } diff --git a/themes/default/layouts/_default/home.xslt.sitemap.xsl b/themes/default/layouts/_default/home.xslt.sitemap.xsl index 0edfec5..a66877e 100644 --- a/themes/default/layouts/_default/home.xslt.sitemap.xsl +++ b/themes/default/layouts/_default/home.xslt.sitemap.xsl @@ -20,7 +20,7 @@ <main> <nav> <icon-button> - <a onclick="window.history.go(-1); return false;"> + <a onclick="window.history.go(-1); return false;" href="/"> {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/arrow-left.svg")) }} <small>Back</small> </a> diff --git a/themes/default/layouts/_default/sitemap.xml b/themes/default/layouts/_default/sitemap.xml index fdbc045..c47d1db 100644 --- a/themes/default/layouts/_default/sitemap.xml +++ b/themes/default/layouts/_default/sitemap.xml @@ -9,7 +9,7 @@ xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" > - {{- $filteredPages := partial "function-filters-content.html" .Data.Pages -}} + {{- $filteredPages := partial "function-filters-content.html" .Data.Pages.ByDate.Reverse -}} {{- range $filteredPages }} {{- with .Sitemap.ChangeFreq -}} |