diff options
| -rw-r--r-- | docs/sitemap.xml | 56 | ||||
| -rw-r--r-- | themes/mypaper/layouts/sitemap.xml | 12 |
2 files changed, 40 insertions, 28 deletions
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 @@ <?xml version="1.0" encoding="utf-8" standalone="yes"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" - xmlns:xhtml="http://www.w3.org/1999/xhtml"> + xmlns:xhtml="http://www.w3.org/1999/xhtml"> <url> <loc>https://blog.nsfisis.dev/tags/conference/</loc> - <lastmod>2022-05-01T09:41:39+09:00</lastmod> + <lastmod>2022-05-01+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/php/</loc> - <lastmod>2022-05-01T09:41:39+09:00</lastmod> + <lastmod>2022-05-01+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/phperkaigi/</loc> - <lastmod>2022-05-01T09:41:39+09:00</lastmod> + <lastmod>2022-05-01+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2022-05-01/phperkaigi-2022/</loc> - <lastmod>2022-05-01T09:41:39+09:00</lastmod> + <lastmod>2022-05-01+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/</loc> - <lastmod>2022-05-01T09:41:39+09:00</lastmod> + <lastmod>2022-05-01+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/</loc> - <lastmod>2022-05-01T09:41:39+09:00</lastmod> + <lastmod>2022-05-01+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/my-programs/</loc> - <lastmod>2022-04-27T00:00:00+09:00</lastmod> + <lastmod>2022-04-27+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2022-04-24/term-banner-write-tool-showing-banner-in-terminal/</loc> - <lastmod>2022-04-27T00:00:00+09:00</lastmod> + <lastmod>2022-04-27+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2022-04-09/phperkaigi-2022-tokens/</loc> - <lastmod>2022-04-16T00:00:00+09:00</lastmod> + <lastmod>2022-04-16+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/rust/</loc> - <lastmod>2021-10-02T09:39:27+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2021-10-02/rust-where-are-primitive-types-from/</loc> - <lastmod>2021-10-02T09:39:27+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2021-10-02/ruby-then-keyword-and-case-in/</loc> - <lastmod>2021-10-02T09:38:50+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/ruby/</loc> - <lastmod>2021-10-02T09:38:50+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/ruby3/</loc> - <lastmod>2021-10-02T09:38:50+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/</loc> - <lastmod>2021-10-02T09:38:30+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/cpp/</loc> - <lastmod>2021-10-02T09:38:30+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/cpp17/</loc> - <lastmod>2021-10-02T09:38:30+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2021-10-02/ruby-detect-running-implementation/</loc> - <lastmod>2021-10-02T09:37:50+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/vim/</loc> - <lastmod>2021-10-02T09:37:25+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2021-10-02/vim-swap-order-of-selected-lines/</loc> - <lastmod>2021-10-02T09:37:25+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/</loc> - <lastmod>2021-10-02T09:37:12+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2021-10-02/python-unbound-local-error/</loc> - <lastmod>2021-10-02T09:32:37+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/python/</loc> - <lastmod>2021-10-02T09:32:37+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/tags/python3/</loc> - <lastmod>2021-10-02T09:32:37+09:00</lastmod> + <lastmod>2021-10-02+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/</loc> - <lastmod>2021-03-31T01:36:49+09:00</lastmod> + <lastmod>2021-03-31+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2021-03-30/phperkaigi-2021/</loc> - <lastmod>2021-03-30T23:22:40+09:00</lastmod> + <lastmod>2021-03-30+09:00</lastmod> </url><url> <loc>https://blog.nsfisis.dev/posts/2021-03-05/my-first-post/</loc> - <lastmod>2021-03-05T23:38:21+09:00</lastmod> + <lastmod>2021-03-05+09:00</lastmod> </url> </urlset> 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 "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" + xmlns:xhtml="http://www.w3.org/1999/xhtml"> + {{ range .Data.Pages }} + {{- if .Permalink -}} + <url> + <loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }} + <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02-07:00" ) }}</lastmod>{{ end }} + </url> + {{- end -}} + {{ end }} +</urlset> |
