From cd8447404c66a519a20cc3ce9f6fa23ba964fe37 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 15 May 2022 10:00:19 +0900 Subject: remove time field from sitemap's --- docs/sitemap.xml | 56 +++++++++++++++++++------------------- themes/mypaper/layouts/sitemap.xml | 12 ++++++++ 2 files changed, 40 insertions(+), 28 deletions(-) create mode 100644 themes/mypaper/layouts/sitemap.xml diff --git a/docs/sitemap.xml b/docs/sitemap.xml index b9519c8..2467f4e 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -1,86 +1,86 @@ + xmlns:xhtml="http://www.w3.org/1999/xhtml"> https://blog.nsfisis.dev/tags/conference/ - 2022-05-01T09:41:39+09:00 + 2022-05-01+09:00 https://blog.nsfisis.dev/tags/php/ - 2022-05-01T09:41:39+09:00 + 2022-05-01+09:00 https://blog.nsfisis.dev/tags/phperkaigi/ - 2022-05-01T09:41:39+09:00 + 2022-05-01+09:00 https://blog.nsfisis.dev/posts/2022-05-01/phperkaigi-2022/ - 2022-05-01T09:41:39+09:00 + 2022-05-01+09:00 https://blog.nsfisis.dev/posts/ - 2022-05-01T09:41:39+09:00 + 2022-05-01+09:00 https://blog.nsfisis.dev/tags/ - 2022-05-01T09:41:39+09:00 + 2022-05-01+09:00 https://blog.nsfisis.dev/tags/my-programs/ - 2022-04-27T00:00:00+09:00 + 2022-04-27+09:00 https://blog.nsfisis.dev/posts/2022-04-24/term-banner-write-tool-showing-banner-in-terminal/ - 2022-04-27T00:00:00+09:00 + 2022-04-27+09:00 https://blog.nsfisis.dev/posts/2022-04-09/phperkaigi-2022-tokens/ - 2022-04-16T00:00:00+09:00 + 2022-04-16+09:00 https://blog.nsfisis.dev/tags/rust/ - 2021-10-02T09:39:27+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/posts/2021-10-02/rust-where-are-primitive-types-from/ - 2021-10-02T09:39:27+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/posts/2021-10-02/ruby-then-keyword-and-case-in/ - 2021-10-02T09:38:50+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/tags/ruby/ - 2021-10-02T09:38:50+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/tags/ruby3/ - 2021-10-02T09:38:50+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/ - 2021-10-02T09:38:30+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/tags/cpp/ - 2021-10-02T09:38:30+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/tags/cpp17/ - 2021-10-02T09:38:30+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/posts/2021-10-02/ruby-detect-running-implementation/ - 2021-10-02T09:37:50+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/tags/vim/ - 2021-10-02T09:37:25+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/posts/2021-10-02/vim-swap-order-of-selected-lines/ - 2021-10-02T09:37:25+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/ - 2021-10-02T09:37:12+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/posts/2021-10-02/python-unbound-local-error/ - 2021-10-02T09:32:37+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/tags/python/ - 2021-10-02T09:32:37+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/tags/python3/ - 2021-10-02T09:32:37+09:00 + 2021-10-02+09:00 https://blog.nsfisis.dev/ - 2021-03-31T01:36:49+09:00 + 2021-03-31+09:00 https://blog.nsfisis.dev/posts/2021-03-30/phperkaigi-2021/ - 2021-03-30T23:22:40+09:00 + 2021-03-30+09:00 https://blog.nsfisis.dev/posts/2021-03-05/my-first-post/ - 2021-03-05T23:38:21+09:00 + 2021-03-05+09:00 diff --git a/themes/mypaper/layouts/sitemap.xml b/themes/mypaper/layouts/sitemap.xml new file mode 100644 index 0000000..74851b5 --- /dev/null +++ b/themes/mypaper/layouts/sitemap.xml @@ -0,0 +1,12 @@ +{{ printf "" | safeHTML }} + + {{ range .Data.Pages }} + {{- if .Permalink -}} + + {{ .Permalink }}{{ if not .Lastmod.IsZero }} + {{ safeHTML ( .Lastmod.Format "2006-01-02-07:00" ) }}{{ end }} + + {{- end -}} + {{ end }} + -- cgit v1.2.3-70-g09d2