mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-21 12:20:39 +00:00
feat: add robots template (#203)
This commit is contained in:
parent
fff483ea9e
commit
d8fba29bb5
@ -7,11 +7,11 @@ pygmentsCodeFences: true
|
|||||||
timeout: 180000
|
timeout: 180000
|
||||||
pluralizeListTitles: false
|
pluralizeListTitles: false
|
||||||
|
|
||||||
# Geekdoc configuration
|
|
||||||
disablePathToLower: true
|
disablePathToLower: true
|
||||||
enableGitInfo: true
|
enableGitInfo: true
|
||||||
|
|
||||||
# Needed for mermaid shortcodes
|
enableRobotsTXT: true
|
||||||
|
|
||||||
markup:
|
markup:
|
||||||
goldmark:
|
goldmark:
|
||||||
renderer:
|
renderer:
|
||||||
@ -36,7 +36,6 @@ outputs:
|
|||||||
- HTML
|
- HTML
|
||||||
|
|
||||||
params:
|
params:
|
||||||
# geekdocMenuBundle: true
|
|
||||||
geekdocToC: 3
|
geekdocToC: 3
|
||||||
geekdocTagsToMenu: true
|
geekdocTagsToMenu: true
|
||||||
|
|
||||||
|
@ -21,6 +21,9 @@ pygmentsCodeFences = true
|
|||||||
disablePathToLower = true
|
disablePathToLower = true
|
||||||
enableGitInfo = true
|
enableGitInfo = true
|
||||||
|
|
||||||
|
# Required if you want to render robots.txt template
|
||||||
|
enableRobotsTXT = true
|
||||||
|
|
||||||
[markup]
|
[markup]
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
# Needed for mermaid shortcode
|
# Needed for mermaid shortcode
|
||||||
@ -120,6 +123,9 @@ pygmentsCodeFences: true
|
|||||||
disablePathToLower: true
|
disablePathToLower: true
|
||||||
enableGitInfo: true
|
enableGitInfo: true
|
||||||
|
|
||||||
|
# Required if you want to render robots.txt template
|
||||||
|
enableRobotsTXT: true
|
||||||
|
|
||||||
markup:
|
markup:
|
||||||
goldmark:
|
goldmark:
|
||||||
# Needed for mermaid shortcode
|
# Needed for mermaid shortcode
|
||||||
|
@ -55,6 +55,9 @@ To prepare your new site environment just a few steps are required:
|
|||||||
pygmentsCodeFences = true
|
pygmentsCodeFences = true
|
||||||
disablePathToLower = true
|
disablePathToLower = true
|
||||||
|
|
||||||
|
# Required if you want to render robots.txt template
|
||||||
|
enableRobotsTXT = true
|
||||||
|
|
||||||
# Needed for mermaid shortcodes
|
# Needed for mermaid shortcodes
|
||||||
[markup]
|
[markup]
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
User-agent: *
|
|
||||||
Disallow: /categories/*
|
|
||||||
Disallow: /tags/*
|
|
||||||
Sitemap: https://geekdocs.de/sitemap.xml
|
|
4
layouts/robots.txt
Normal file
4
layouts/robots.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow: /tags/*
|
||||||
|
|
||||||
|
Sitemap: {{ "sitemap.xml" | absURL }}
|
Loading…
Reference in New Issue
Block a user