diff options
| author | XhmikosR <[email protected]> | 2024-05-02 10:19:47 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-02 10:19:47 +0300 |
| commit | 72d3b6efc4b92e83a4abca6f5bc0cd7e6fd25931 (patch) | |
| tree | 91db75aa0d86b067836aba4cbf411e47db0598bc /site | |
| parent | 4565525e3538a55116e70f496243fc9d331932cc (diff) | |
| download | bootstrap-72d3b6efc4b92e83a4abca6f5bc0cd7e6fd25931.tar.xz bootstrap-72d3b6efc4b92e83a4abca6f5bc0cd7e6fd25931.zip | |
docs: migrate to the built-in sitemap template (#39951)
Diffstat (limited to 'site')
| -rw-r--r-- | site/content/404.md | 2 | ||||
| -rw-r--r-- | site/content/docs/5.3/_index.html | 2 | ||||
| -rw-r--r-- | site/content/docs/5.3/docsref.md | 2 | ||||
| -rw-r--r-- | site/content/docs/_index.html | 2 | ||||
| -rw-r--r-- | site/layouts/sitemap.xml | 12 |
5 files changed, 4 insertions, 16 deletions
diff --git a/site/content/404.md b/site/content/404.md index 14634b216..08359be3e 100644 --- a/site/content/404.md +++ b/site/content/404.md @@ -5,7 +5,7 @@ description: "" url: /404.html robots: noindex,follow sitemap: - exclude: true + disable: true --- <div class="text-center py-5"> diff --git a/site/content/docs/5.3/_index.html b/site/content/docs/5.3/_index.html index 1e1800699..f182bde37 100644 --- a/site/content/docs/5.3/_index.html +++ b/site/content/docs/5.3/_index.html @@ -1,6 +1,6 @@ --- layout: redirect sitemap: - exclude: true + disable: true redirect: "/docs/5.3/getting-started/introduction/" --- diff --git a/site/content/docs/5.3/docsref.md b/site/content/docs/5.3/docsref.md index 3f36dd278..5a16470c5 100644 --- a/site/content/docs/5.3/docsref.md +++ b/site/content/docs/5.3/docsref.md @@ -6,7 +6,7 @@ aliases: "/docsref/" toc: true robots: noindex,follow sitemap: - exclude: true + disable: true --- ## Buttons diff --git a/site/content/docs/_index.html b/site/content/docs/_index.html index 1e1800699..f182bde37 100644 --- a/site/content/docs/_index.html +++ b/site/content/docs/_index.html @@ -1,6 +1,6 @@ --- layout: redirect sitemap: - exclude: true + disable: true redirect: "/docs/5.3/getting-started/introduction/" --- diff --git a/site/layouts/sitemap.xml b/site/layouts/sitemap.xml deleted file mode 100644 index 9c626df18..000000000 --- a/site/layouts/sitemap.xml +++ /dev/null @@ -1,12 +0,0 @@ -{{ 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 where .Data.Pages "Params.sitemap.exclude" "ne" true -}}{{ if .Permalink }} - <url> - <loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }} - <lastmod>{{ safeHTML (.Lastmod.Format "2006-01-02T15:04:05-07:00") }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }} - <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }} - <priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }} - <xhtml:link rel="alternate" hreflang="{{ .Language.LanguageCode }}" href="{{ .Permalink }}"/>{{ end }} - <xhtml:link rel="alternate" hreflang="{{ .Language.LanguageCode }}" href="{{ .Permalink }}"/>{{ end }} - </url>{{ end }}{{ end }} -</urlset> |
