summaryrefslogtreecommitdiff
path: root/themes/LoveIt/layouts/sitemap.xml
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2021-02-18 22:21:36 +0100
committerChristoph Cullmann <cullmann@kde.org>2021-02-18 22:21:36 +0100
commit0c7cb4486a89ec6fe9680e6569ef41d4b82d557d (patch)
tree081941052bcab0caf69487b6bf5ab2df5deb3b7b /themes/LoveIt/layouts/sitemap.xml
parent640572ecab69291d2c266de2011b795a861e7c21 (diff)
use maintained theme
Diffstat (limited to 'themes/LoveIt/layouts/sitemap.xml')
-rw-r--r--themes/LoveIt/layouts/sitemap.xml47
1 files changed, 0 insertions, 47 deletions
diff --git a/themes/LoveIt/layouts/sitemap.xml b/themes/LoveIt/layouts/sitemap.xml
deleted file mode 100644
index f931c44..0000000
--- a/themes/LoveIt/layouts/sitemap.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<urlset
- xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
- xmlns:xhtml="http://www.w3.org/1999/xhtml"
- >
- {{- range (where .Data.Pages "Section" "!=" "gallery") -}}
- <url>
- <loc>
- {{- .Permalink -}}
- </loc>
- {{- if not .Lastmod.IsZero -}}
- <lastmod>
- {{- .Lastmod.Format "2006-01-02T15:04:05-07:00" -}}
- </lastmod>
- {{- end -}}
- {{- with .Sitemap.ChangeFreq -}}
- <changefreq>
- {{- . -}}
- </changefreq>
- {{- end -}}
-
- {{- if ge .Sitemap.Priority 0.0 -}}
- {{- $weeks := div (sub now.Unix .Lastmod.Unix) 604800 -}}
- {{- $priority := sub 1 (div $weeks 10.0 ) -}}
- {{- if ge .Sitemap.Priority $priority -}}
- <priority>{{ .Sitemap.Priority }}</priority>
- {{- else -}}
- <priority>{{ $priority }}</priority>
- {{- end -}}
- {{- end -}}
-
- {{- if .IsTranslated -}}
- {{- range .Translations -}}
- <xhtml:link
- rel="alternate"
- hreflang="{{ .Lang }}"
- href="{{ .Permalink }}"
- />
- {{- end -}}
- <xhtml:link
- rel="alternate"
- hreflang="{{ .Lang }}"
- href="{{ .Permalink }}"
- />
- {{- end -}}
- </url>
- {{- end -}}
-</urlset>