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-01 11:18:00 +0300
committerGitHub <noreply@github.com>2021-09-01 11:18:00 +0300
commit3f296625fb66c3923858f958fb8ac387e20c65fb (patch)
tree35b16ee276f6c989d104535b359cf0a1bf083cec /exampleSite
parent95417625bb92f97d1d1008e5c84a60b84679e915 (diff)
feat: add tags to post pages (#193)v0.18.0
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.yaml4
-rw-r--r--exampleSite/content/posts/hello_geekdoc.md2
-rw-r--r--exampleSite/content/usage/configuration.md12
-rw-r--r--exampleSite/content/usage/getting-started.md3
4 files changed, 21 insertions, 0 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index ace3ab1..ba93833 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -20,9 +20,13 @@ markup:
startLevel: 1
endLevel: 9
+taxonomies:
+ tag: tags
+
params:
# geekdocMenuBundle: true
geekdocToC: 3
+ geekdocTagsToMenu: true
geekdocRepo: https://github.com/thegeeklab/hugo-geekdoc
geekdocEditPath: edit/main/exampleSite/content
diff --git a/exampleSite/content/posts/hello_geekdoc.md b/exampleSite/content/posts/hello_geekdoc.md
index 8e389f3..fe025ed 100644
--- a/exampleSite/content/posts/hello_geekdoc.md
+++ b/exampleSite/content/posts/hello_geekdoc.md
@@ -2,6 +2,8 @@
title: Hello Geekdoc
type: posts
date: 2020-01-06
+tags:
+ - Documentation
---
This is the first release of the Geekdoc theme.
diff --git a/exampleSite/content/usage/configuration.md b/exampleSite/content/usage/configuration.md
index 1258cce..4be4046 100644
--- a/exampleSite/content/usage/configuration.md
+++ b/exampleSite/content/usage/configuration.md
@@ -29,6 +29,9 @@ enableGitInfo = true
startLevel = 1
endLevel = 9
+[taxonomies]
+ tag = "tags"
+
[params]
# (Optional, default 6) Set how many table of contents levels to be showed on page.
# Use false to hide ToC, note that 0 will default to 6 (https://gohugo.io/functions/default/)
@@ -97,6 +100,9 @@ enableGitInfo = true
# (Optional, default true) Display a "Back to top" link in the site footer.
geekdocBackToTop = true
+
+ # (Optional, default false) Enable or disable adding tags for post pages automatically to the navigation sidebar.
+ geekdocTagsToMenu = true
```
{{< /tab >}}
@@ -123,6 +129,9 @@ markup:
startLevel: 1
endLevel: 9
+taxonomies:
+ tag: tags
+
params:
# (Optional, default 6) Set how many table of contents levels to be showed on page.
# Use false to hide ToC, note that 0 will default to 6 (https://gohugo.io/functions/default/)
@@ -196,6 +205,9 @@ params:
# (Optional, default true) Display a "Back to top" link in the site footer.
geekdocBackToTop: true
+
+ # (Optional, default false) Enable or disable adding tags for post pages automatically to the navigation sidebar.
+ geekdocTagsToMenu: true
```
{{< /tab >}}
diff --git a/exampleSite/content/usage/getting-started.md b/exampleSite/content/usage/getting-started.md
index 433ca0e..3e5d9e6 100644
--- a/exampleSite/content/usage/getting-started.md
+++ b/exampleSite/content/usage/getting-started.md
@@ -63,6 +63,9 @@ To prepare your new site environment just a few steps are required:
[markup.tableOfContents]
startLevel = 1
endLevel = 9
+
+ [taxonomies]
+ tag = "tags"
```
5. Test your site.