diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-11-19 14:23:32 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-11-19 14:25:59 +0900 |
| commit | 6209453817da9922f28bac1bb1522c6d380630ab (patch) | |
| tree | 19e0699e751af387d549d6720ca215c8065b3c0c /templates/sitemap.xml.erb | |
| parent | 0cafa073914b5e0b162b735a7f8445fb2aa8a604 (diff) | |
| download | blog.nsfisis.dev-6209453817da9922f28bac1bb1522c6d380630ab.tar.gz blog.nsfisis.dev-6209453817da9922f28bac1bb1522c6d380630ab.tar.zst blog.nsfisis.dev-6209453817da9922f28bac1bb1522c6d380630ab.zip | |
Hugo to Asciidoctor
Diffstat (limited to 'templates/sitemap.xml.erb')
| -rw-r--r-- | templates/sitemap.xml.erb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/sitemap.xml.erb b/templates/sitemap.xml.erb new file mode 100644 index 0000000..304b1c6 --- /dev/null +++ b/templates/sitemap.xml.erb @@ -0,0 +1,11 @@ +<% _base_url = base_url %> +<% _pages = pages %> +<?xml version="1.0" encoding="utf-8"?> +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" > + <% for page in _pages %> + <url> + <loc><%= _base_url %><%= page.href %></loc> + <lastmod><%= page.updated_on %></lastmod> + </url> + <% end %> +</urlset> |
