Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kaussow <mail@geeklabor.de>2021-09-08 22:48:31 +0300
committerGitHub <noreply@github.com>2021-09-08 22:48:31 +0300
commitd8fba29bb5a673bbdfdbf6893babed5761cfeff6 (patch)
treed00de40f985e8b8cf166b0f05cf023511de88e3d /exampleSite
parentfff483ea9ec8ae6c2b9f373c3c3fa2ae08dd6add (diff)
feat: add robots template (#203)v0.18.3
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.yaml5
-rw-r--r--exampleSite/content/usage/configuration.md6
-rw-r--r--exampleSite/content/usage/getting-started.md3
-rw-r--r--exampleSite/static/robots.txt4
4 files changed, 11 insertions, 7 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index 6a05700..22d8dc7 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -7,11 +7,11 @@ pygmentsCodeFences: true
timeout: 180000
pluralizeListTitles: false
-# Geekdoc configuration
disablePathToLower: true
enableGitInfo: true
-# Needed for mermaid shortcodes
+enableRobotsTXT: true
+
markup:
goldmark:
renderer:
@@ -36,7 +36,6 @@ outputs:
- HTML
params:
- # geekdocMenuBundle: true
geekdocToC: 3
geekdocTagsToMenu: true
diff --git a/exampleSite/content/usage/configuration.md b/exampleSite/content/usage/configuration.md
index 4be4046..4b8070a 100644
--- a/exampleSite/content/usage/configuration.md
+++ b/exampleSite/content/usage/configuration.md
@@ -21,6 +21,9 @@ pygmentsCodeFences = true
disablePathToLower = true
enableGitInfo = true
+# Required if you want to render robots.txt template
+enableRobotsTXT = true
+
[markup]
[markup.goldmark.renderer]
# Needed for mermaid shortcode
@@ -120,6 +123,9 @@ pygmentsCodeFences: true
disablePathToLower: true
enableGitInfo: true
+# Required if you want to render robots.txt template
+enableRobotsTXT: true
+
markup:
goldmark:
# Needed for mermaid shortcode
diff --git a/exampleSite/content/usage/getting-started.md b/exampleSite/content/usage/getting-started.md
index 3e5d9e6..c5c924f 100644
--- a/exampleSite/content/usage/getting-started.md
+++ b/exampleSite/content/usage/getting-started.md
@@ -55,6 +55,9 @@ To prepare your new site environment just a few steps are required:
pygmentsCodeFences = true
disablePathToLower = true
+ # Required if you want to render robots.txt template
+ enableRobotsTXT = true
+
# Needed for mermaid shortcodes
[markup]
[markup.goldmark.renderer]
diff --git a/exampleSite/static/robots.txt b/exampleSite/static/robots.txt
deleted file mode 100644
index 03ed307..0000000
--- a/exampleSite/static/robots.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-User-agent: *
-Disallow: /categories/*
-Disallow: /tags/*
-Sitemap: https://geekdocs.de/sitemap.xml