feat: add robots template (#203)

This commit is contained in:
Robert Kaussow 2021-09-08 21:48:31 +02:00 committed by GitHub
parent fff483ea9e
commit d8fba29bb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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]

View file

@ -1,4 +0,0 @@
User-agent: *
Disallow: /categories/*
Disallow: /tags/*
Sitemap: https://geekdocs.de/sitemap.xml

4
layouts/robots.txt Normal file
View file

@ -0,0 +1,4 @@
User-agent: *
Disallow: /tags/*
Sitemap: {{ "sitemap.xml" | absURL }}