Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
c272eb80
Commit
c272eb80
authored
3 years ago
by
XhmikosR
Browse files
Options
Download
Email Patches
Plain Diff
Update Hugo config and sitemap.xml (#34074)
parent
ca3ff6dc
v4-dev-dropdown-hide-method
v4-dev
v4.6.2
v4.6.1
1 merge request
!36532
My v4 dev
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config.yml
+1
-1
config.yml
site/layouts/sitemap.xml
+5
-3
site/layouts/sitemap.xml
with
6 additions
and
4 deletions
+6
-4
config.yml
+
1
-
1
View file @
c272eb80
...
...
@@ -18,7 +18,7 @@ buildFuture: true
enableRobotsTXT
:
true
metaDataFormat
:
"
yaml"
disableKinds
:
[
"
404"
,
"
taxonomy"
,
"
t
axonomyT
erm"
,
"
RSS"
]
disableKinds
:
[
"
404"
,
"
taxonomy"
,
"
term"
,
"
RSS"
]
publishDir
:
"
_site"
...
...
This diff is collapsed.
Click to expand it.
site/layouts/sitemap.xml
+
5
-
3
View file @
c272eb80
{{ printf "
<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"
?>
" | safeHTML }}
{{ 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 .Data.Pages -}}{{ if ne .Params.sitemap_exclude true }}
{{- range .Data.Pages -}}{{ if
and .Permalink (
ne .Params.sitemap_exclude true
)
}}
<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 }}
<priority>
{{ .Sitemap.Priority }}
</priority>
{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<xhtml:link
rel=
"alternate"
hreflang=
"{{ .Language.Lang }}"
href=
"{{ .Permalink }}"
/>
{{ end }}
<xhtml:link
rel=
"alternate"
hreflang=
"{{ .Language.Lang }}"
href=
"{{ .Permalink }}"
/>
{{ end }}
</url>
{{ end }}{{ end }}
</urlset>
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets