diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-10 14:59:14 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-10 14:59:14 +0100 |
| commit | 1100562e29f6476448b656dbddd4cf22505523f6 (patch) | |
| tree | 442eec492199104bd49dfd74474ce89ade8fcac9 /templates/sitemap.xml | |
| parent | a40d80be378e46a6c490e1b99b0d8f4acd968503 (diff) | |
| download | mitjafelicijan.com-1100562e29f6476448b656dbddd4cf22505523f6.tar.gz | |
Move back to JBMAFP
Diffstat (limited to 'templates/sitemap.xml')
| -rw-r--r-- | templates/sitemap.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 0000000..4d2617c --- /dev/null +++ b/templates/sitemap.xml | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"> | ||
| 2 | {{ range $idx, $page := .Pages }} | ||
| 3 | {{ if or (eq $page.Type "post") (eq $page.Type "note") }} | ||
| 4 | {{ if not .Draft }} | ||
| 5 | <url> | ||
| 6 | <loc>{{ $.Config.BaseURL }}{{ $page.RelPermalink }}</loc> | ||
| 7 | <lastmod>{{ $page.Created.Format "2006-01-02T15:04:05" }}+00:00</lastmod> | ||
| 8 | </url> | ||
| 9 | {{ end }} | ||
| 10 | {{ end }} | ||
| 11 | {{ end }} | ||
| 12 | </urlset> | ||
