Gestion du JSON-LD
This commit is contained in:
14
layouts/sitemap.xml
Normal file
14
layouts/sitemap.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
{{- 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 .Site.Pages -}}
|
||||
{{- if not (partial "seo/noindex.html" .) -}}
|
||||
<url>
|
||||
<loc>{{ .Permalink }}</loc>
|
||||
{{- with .Lastmod }}
|
||||
<lastmod>{{ .Format "2006-01-02T15:04:05Z07:00" }}</lastmod>
|
||||
{{- end }}
|
||||
</url>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user