diff --git a/404.html b/404.html index afdacd8..bdfcdc9 100644 --- a/404.html +++ b/404.html @@ -1,9 +1,12 @@ -Lost? Don't worry -
-Hugo Geekdoc Example
Toggle Dark/Light/Auto mode +Lost? Don't worry +
GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage
Lost?
Error 404
Seems like what you are looking for can't be found. Don't worry, we can bring you back to the homepage.
\ No newline at end of file diff --git a/includes/example.html.part b/_includes/example.html.part similarity index 50% rename from includes/example.html.part rename to _includes/example.html.part index 9d26592..f66d0dd 100644 --- a/includes/example.html.part +++ b/_includes/example.html.part @@ -1,6 +1,7 @@ -

This is heading 1

-

This is heading 2

-

This is heading 3

+

+Example HTML include +

+

This is heading 4

This is heading 5
This is heading 6
diff --git a/_includes/example.md.part b/_includes/example.md.part new file mode 100644 index 0000000..89d0525 --- /dev/null +++ b/_includes/example.md.part @@ -0,0 +1,7 @@ +_**Example Mardown include**_ + +File including a simple Markdown table. + +| Head 1 | Head 2 | Head 3 | +| ------ | ------ | ------ | +| 1 | 2 | 3 | diff --git a/_includes/include-page/index.html b/_includes/include-page/index.html new file mode 100644 index 0000000..808b036 --- /dev/null +++ b/_includes/include-page/index.html @@ -0,0 +1,65 @@ +Include Page | Hugo Geekdoc Example +
+
+Hugo Geekdoc Example
GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

Include Page

Example page include

Example Shortcode
Shortcode used in an include page.
Head 1Head 2Head 3
123
\ No newline at end of file diff --git a/_includes/index.html b/_includes/index.html new file mode 100644 index 0000000..25efb9b --- /dev/null +++ b/_includes/index.html @@ -0,0 +1,59 @@ +Includes | Hugo Geekdoc Example +
+
+Hugo Geekdoc Example
GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +
\ No newline at end of file diff --git a/asciidoc/admonition-icons/index.html b/asciidoc/admonition-icons/index.html new file mode 100644 index 0000000..15d19d4 --- /dev/null +++ b/asciidoc/admonition-icons/index.html @@ -0,0 +1,70 @@ +Admonition Icons | Hugo Geekdoc Example +
+
+Hugo Geekdoc Example
GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

Admonition Icons

By default, the admonition is rendered with a plain text label. To enable font icons the document attribute :icons: font need to be set.

Example

Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
\ No newline at end of file diff --git a/asciidoc/admonitions/index.html b/asciidoc/admonitions/index.html new file mode 100644 index 0000000..044a385 --- /dev/null +++ b/asciidoc/admonitions/index.html @@ -0,0 +1,78 @@ +Admonitions | Hugo Geekdoc Example +
+
+Hugo Geekdoc Example
GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

Admonitions

Admonition types

There are certain statements you may want to draw attention to by taking them out of the content’s flow and labeling them with a priority. These are called admonitions.

[NOTE|TIP|IMPORTANT|CAUTION|WARNING]
+Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture.
+Ornateness bland it ex enc, est yeti am bongo detract re.

Example

Note
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
Tip
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
Important
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
Caution
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
Warning

Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.

Romanesque acclimates investiture.

Admonition icons

Icons can be added by setting a unicode glyph or a character reference to the tip-caption attribute:

:tip-caption: 💡
+
+[TIP]
+It's possible to use Unicode glyphs as admonition icons.
:tip-caption: pass:[🔥]
+
+[TIP]
+It's possible to use Unicode glyphs as admonition icons.

Example

💡
It’s possible to use Unicode glyphs as admonition icons.
🔥
It’s possible to use Unicode glyphs as admonition icons.
\ No newline at end of file diff --git a/asciidoc/index.html b/asciidoc/index.html new file mode 100644 index 0000000..8ef4702 --- /dev/null +++ b/asciidoc/index.html @@ -0,0 +1,62 @@ +Asciidoc | Hugo Geekdoc Example +
+
+Hugo Geekdoc Example
GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +
\ No newline at end of file diff --git a/categories/index.html b/categories/index.html deleted file mode 100644 index 316684c..0000000 --- a/categories/index.html +++ /dev/null @@ -1,41 +0,0 @@ -Categories | Hugo Geekdoc Example -
-
-Hugo Geekdoc Example
Toggle Dark/Light/Auto mode -Toggle Dark/Light/Auto mode -Toggle Dark/Light/Auto mode -Back to homepage -
\ No newline at end of file diff --git a/categories/index.xml b/categories/index.xml deleted file mode 100644 index 1ec6784..0000000 --- a/categories/index.xml +++ /dev/null @@ -1 +0,0 @@ -Categories on Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/categories/Recent content in Categories on Hugo Geekdoc ExampleHugoen \ No newline at end of file diff --git a/categories/page/1/index.html b/categories/page/1/index.html deleted file mode 100644 index a2d6809..0000000 --- a/categories/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://jlumbroso.github.io/hugo-geekdoc-github-example/categories/ - \ No newline at end of file diff --git a/collapse/index.html b/collapse/index.html index 5ae320a..4b1ace7 100644 --- a/collapse/index.html +++ b/collapse/index.html @@ -1,7 +1,8 @@ Collapse | Hugo Geekdoc Example -
+
\ No newline at end of file diff --git a/collapse/index.xml b/collapse/index.xml deleted file mode 100644 index 905e5b8..0000000 --- a/collapse/index.xml +++ /dev/null @@ -1 +0,0 @@ -Collapse on Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/Recent content in Collapse on Hugo Geekdoc ExampleHugoen \ No newline at end of file diff --git a/collapse/level-1/index.html b/collapse/level-1/index.html index 4751606..93def77 100644 --- a/collapse/level-1/index.html +++ b/collapse/level-1/index.html @@ -1,10 +1,11 @@ Level 1 | Hugo Geekdoc Example -
+
\ No newline at end of file diff --git a/collapse/level-1/index.xml b/collapse/level-1/index.xml deleted file mode 100644 index 45356e6..0000000 --- a/collapse/level-1/index.xml +++ /dev/null @@ -1 +0,0 @@ -Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/Recent content on Hugo Geekdoc ExampleHugoenLevel 1.1https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-1/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-1/Level 1.1Level 1.2https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-2/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-2/Level 1.2 \ No newline at end of file diff --git a/collapse/level-1/level-1-1/index.html b/collapse/level-1/level-1-1/index.html index 74aba7a..968b1b3 100644 --- a/collapse/level-1/level-1-1/index.html +++ b/collapse/level-1/level-1-1/index.html @@ -1,7 +1,8 @@ Level 1.1 | Hugo Geekdoc Example -
+
\ No newline at end of file diff --git a/collapse/level-1/level-1-2/index.html b/collapse/level-1/level-1-2/index.html index 2972c31..b9364e0 100644 --- a/collapse/level-1/level-1-2/index.html +++ b/collapse/level-1/level-1-2/index.html @@ -1,7 +1,8 @@ Level 1.2 | Hugo Geekdoc Example -
+
\ No newline at end of file diff --git a/collapse/level-2/index.html b/collapse/level-2/index.html index c3f9b8d..57007c8 100644 --- a/collapse/level-2/index.html +++ b/collapse/level-2/index.html @@ -1,7 +1,8 @@ Level 2 | Hugo Geekdoc Example -
+
\ No newline at end of file diff --git a/collapse/level-2/index.xml b/collapse/level-2/index.xml deleted file mode 100644 index 3764b92..0000000 --- a/collapse/level-2/index.xml +++ /dev/null @@ -1 +0,0 @@ -Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/Recent content on Hugo Geekdoc ExampleHugoenLevel 2.1https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-1/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-1/Level 2.1Level 2.2https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-2/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-2/Level 2.2 \ No newline at end of file diff --git a/collapse/level-2/level-2-1/index.html b/collapse/level-2/level-2-1/index.html index 6b1696b..479a239 100644 --- a/collapse/level-2/level-2-1/index.html +++ b/collapse/level-2/level-2-1/index.html @@ -1,7 +1,8 @@ Level 2.1 | Hugo Geekdoc Example -
+
\ No newline at end of file diff --git a/collapse/level-2/level-2-2/index.html b/collapse/level-2/level-2-2/index.html index 9d33c79..91a51c6 100644 --- a/collapse/level-2/level-2-2/index.html +++ b/collapse/level-2/level-2-2/index.html @@ -1,7 +1,8 @@ Level 2.2 | Hugo Geekdoc Example -
+
\ No newline at end of file diff --git a/custom.css b/custom.css index e488c91..5dcf6f1 100644 --- a/custom.css +++ b/custom.css @@ -1 +1,24 @@ -/* You can add custom styles here. */ +:root { + --code-max-height: 60rem; +} + +.icon-grid { + width: 8rem; + height: 8rem; + margin: 0.2em; + text-align: center; + padding: 0.3em; +} + +.icon-grid__line { + height: 4rem; +} + +.icon-grid__line .gdoc-icon { + width: 3em; + height: 3em; +} + +.icon-grid__line--text { + font-size: 0.8em; +} diff --git a/custom.css.example b/custom.css.example index 2b4fda6..93e21cd 100644 --- a/custom.css.example +++ b/custom.css.example @@ -1,25 +1,154 @@ -/* defaut link color */ -a { color: #1c388e; } -a:visited { color: #73bfb8 } +/* Global customization */ -/* site header */ -.gdoc-header { background: #e66a4e; border-color: #404040; } -.gdoc-header__link, .gdoc-header__link:visited { color: #ffffff; } +:root { + --code-max-height: 60rem; +} -/* page links */ -.gdoc-page__footer a, .gdoc-page__footer a:visited, .gdoc-page__header a, .gdoc-page__header a:visited { color: #1c388e; } +/* Light mode theming */ +:root, +:root[color-theme="light"] { + --header-background: #4ec58a; + --header-font-color: #ffffff; -/* site footer */ -.gdoc-footer { background: #404040; color: #ffffff; } -.gdoc-footer__link{ color: #fecf50; } -.gdoc-footer__link:visited, .gdoc-footer__link:hover { color: #fecf50; } + --body-background: #ffffff; + --body-font-color: #343a40; + --mark-color: #ffab00; -/* button shortcode */ -.gdoc-button { color: #495057; } -.gdoc-button:hover { background-color: #eb8771; border-color: #e66a4e; color: #ffffff; } + --button-background: #62cb97; + --button-border-color: #4ec58a; -/* hint shortcode */ -.gdoc-hint.info { background: #d1d7e8; border-color: #324b99; color: black; } -.gdoc-hint.warning { background: #fef5dc; border-color: #e4ba48; color: black; } -.gdoc-hint.danger { background: #fae1db; border-color: #cf5f46; color: black; } + --link-color: #518169; + --link-color-visited: #c54e8a; + + --code-background: #f5f6f8; + --code-accent-color: #e3e7eb; + --code-accent-color-lite: #eff1f3; + --code-font-color: #5f5f5f; + + --code-copy-background: #f5f6f8; + --code-copy-font-color: #6b7784; + --code-copy-border-color: #adb4bc; + --code-copy-success-color: #00c853; + + --accent-color: #e9ecef; + --accent-color-lite: #f8f9fa; + + --control-icons: #b2bac1; + + --footer-background: #112b3c; + --footer-font-color: #ffffff; + --footer-link-color: #ffcc5c; + --footer-link-color-visited: #ffcc5c; +} +@media (prefers-color-scheme: light) { + :root { + --header-background: #4ec58a; + --header-font-color: #ffffff; + + --body-background: #ffffff; + --body-font-color: #343a40; + + --mark-color: #ffab00; + + --button-background: #62cb97; + --button-border-color: #4ec58a; + + --link-color: #518169; + --link-color-visited: #c54e8a; + + --code-background: #f5f6f8; + --code-accent-color: #e3e7eb; + --code-accent-color-lite: #eff1f3; + --code-font-color: #5f5f5f; + + --code-copy-background: #f5f6f8; + --code-copy-font-color: #6b7784; + --code-copy-border-color: #adb4bc; + --code-copy-success-color: #00c853; + + --accent-color: #e9ecef; + --accent-color-lite: #f8f9fa; + + --control-icons: #b2bac1; + + --footer-background: #112b3c; + --footer-font-color: #ffffff; + --footer-link-color: #ffcc5c; + --footer-link-color-visited: #ffcc5c; + } +} + +/* Dark mode theming */ +:root[color-theme="dark"] { + --header-background: #4ec58a; + --header-font-color: #ffffff; + + --body-background: #343a40; + --body-font-color: #ced3d8; + + --mark-color: #ffab00; + + --button-background: #62cb97; + --button-border-color: #4ec58a; + + --link-color: #7ac29e; + --link-color-visited: #c27a9e; + + --code-background: #2f353a; + --code-accent-color: #262b2f; + --code-accent-color-lite: #2b3035; + --code-font-color: #b9b9b9; + + --code-copy-background: #343a40; + --code-copy-font-color: #6b7784; + --code-copy-border-color: #6b7784; + --code-copy-success-color: #37905c; + + --accent-color: #2b3035; + --accent-color-lite: #2f353a; + + --control-icons: #b2bac1; + + --footer-background: #112b3c; + --footer-font-color: #ffffff; + --footer-link-color: #ffcc5c; + --footer-link-color-visited: #ffcc5c; +} +@media (prefers-color-scheme: dark) { + :root { + --header-background: #4ec58a; + --header-font-color: #ffffff; + + --body-background: #343a40; + --body-font-color: #ced3d8; + + --mark-color: #ffab00; + + --button-background: #62cb97; + --button-border-color: #4ec58a; + + --link-color: #7ac29e; + --link-color-visited: #c27a9e; + + --code-background: #2f353a; + --code-accent-color: #262b2f; + --code-accent-color-lite: #2b3035; + --code-font-color: #b9b9b9; + + --code-copy-background: #343a40; + --code-copy-font-color: #6b7784; + --code-copy-border-color: #6b7784; + --code-copy-success-color: #37905c; + + --accent-color: #2b3035; + --accent-color-lite: #2f353a; + + --control-icons: #b2bac1; + + --footer-background: #112b3c; + --footer-font-color: #ffffff; + --footer-link-color: #ffcc5c; + --footer-link-color-visited: #ffcc5c; + } +} diff --git a/features/code-blocks/index.html b/features/code-blocks/index.html new file mode 100644 index 0000000..741e4ea --- /dev/null +++ b/features/code-blocks/index.html @@ -0,0 +1,87 @@ +Code Blocks | Hugo Geekdoc Example +
+
GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

Code Blocks

There are several ways to add code blocks. Most of them work out of the box, only the Hugo shortcode <highlight> needs to be configured to work properly. The theme also provides some additional features like a copy button and an option to set the maximum length of code blocks. Both of these functions and the dependent formatting rely on the .highlight CSS class. You must ensure that you always assign a language to your code blocks if you want to use these functions. If you do not want to apply syntax highlighting, you can also specify plain or text as the language.

Inline code

To display an inline shortcode use single quotes:

`some code`
+

Example: some code with a link

Code blocks

Code blocks can be uses without language specification:

```plain
+some code
+```
+

Example:

some code
+

… or if you need language specific syntax highlighting:

```shell
+# some code
+echo "Hello world"
+```
+

Example:

# some code
+echo "Hello World"
+

Highlight shortcode

Hugo has a build-in shortcode for syntax highlighting. To work properly with this theme, you have to set following options in your site configuration:

+
pygmentsUseClasses=true
+pygmentsCodeFences=true
+
+
pygmentsUseClasses: true
+pygmentsCodeFences: true
+

You can use it like every other shortcode:

{{< highlight Shell "linenos=table" >}}
+# some code
+echo "Hello World"
+{{< /highlight >}}
+

Example:

1
+2
+
# some code
+echo "Hello World"

Gist Shortcode

The Gist shortcode is a built-in Hugo shortcode to load GitHub gists. For details usage information please check the Hugo documentation.

{{< gist spf13 7896402 >}}
+

Example:

\ No newline at end of file diff --git a/features/dark-mode/images/geekdoc-dark.png b/features/dark-mode/images/geekdoc-dark.png new file mode 100644 index 0000000..be1cb9d Binary files /dev/null and b/features/dark-mode/images/geekdoc-dark.png differ diff --git a/features/dark-mode/index.html b/features/dark-mode/index.html new file mode 100644 index 0000000..2f0eb80 --- /dev/null +++ b/features/dark-mode/index.html @@ -0,0 +1,68 @@ +Dark Mode | Hugo Geekdoc Example +
+
GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

Dark Mode

Say hello to the dark mode of the Geekdoc theme!

Geekdoc in dark mode

The dark mode can be used in two different ways. If you have JavaScript disabled in your browser, the dark mode automatically detects the preferred system settings via the prefers-color-scheme parameter. Depending on the value, the theme will automatically switch between dark and light mode if this feature is supported by your operating system and browser.

The second mode requires JavaScript and is controlled by a dark mode switch in the upper right corner. You can switch between three modes: Auto, Dark and Light. Auto mode works the same as the first method mentioned above and automatically detects the system setting. Dark and Light modes allow you to force one of them for your Geekdoc page only, regardless of the system setting. This works even if your browser or operating system does not support the system setting. The current selection is stored locally via the Web Storage API.

To avoid very bright spots often caused by images while using the dark mode we have added an optional auto-dim feature that can be enabled with the site parameter geekdocDarkModeDim (see Configuration). As this may have an impact on the quality of the images it is disabled by default.

\ No newline at end of file diff --git a/features/icon-sets/index.html b/features/icon-sets/index.html new file mode 100644 index 0000000..2512b1e --- /dev/null +++ b/features/icon-sets/index.html @@ -0,0 +1,78 @@ +Icon Sets | Hugo Geekdoc Example +
+
GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

Icon Sets

Custom icon sets

The only supported source for custom icons are SVG sprites. Some icon frameworks provides ready to use sprites e.g. FontAwesome. If the framework don’t provide sprites, you can create your own from raw SVG icons. There are a lot of tools available to create sprites, please choose one that fits your need. One solution could be svgsprit.es.

Regardless of which tool (or existing sprite) you choose, there are a few requirements that must be met:

  1. The sprite must be a valid SVG file.
  2. You have to ensure to hide the sprite. Apply the predefined class svg-sprite or hidden to the root element of your sprite or add a small piece of inline CSS e.g. style="display: none;".
  3. Save the sprite to the folder assets/sprites right beside your content folder.

The result of a valid minimal SVG sprite file could look like this:

<svg class="svg-sprite" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <symbol viewBox="-2.29 -2.29 28.57 28.57" id="arrow_back" xmlns="http://www.w3.org/2000/svg">
+        <path d="M24 10.526v2.947H5.755l8.351 8.421-2.105 2.105-12-12 12-12 2.105 2.105-8.351 8.421H24z"/>
+    </symbol>
+</svg>
+

Example:

FontAwesome provides three pre-build sprites included in the regular Web download pack, sprites/brands.svg, sprites/regular.svg and sprites/solid.svg. Choose your sprite to use and copy it to your projects root directory into assets/sprites, right beside your content folder:

my_projcet/
+├── assets
+│   └── sprites
+│       └── regular.svg
+├── config.yaml
+├── content
+│   ├── _index.md
+│   ├── ...
+

That’s it! The theme will auto-load all available SVG sprites provided in the assets folder. To use the icons e.g. in the bundle menu, you need to lookup the id of the icon. An example would be thumbs-up . There is also a shortcode available.

Build-in icons

The theme bundles just a small set of hand crafted icons.

\ No newline at end of file diff --git a/features/index.html b/features/index.html new file mode 100644 index 0000000..ca41354 --- /dev/null +++ b/features/index.html @@ -0,0 +1,62 @@ +Features | Hugo Geekdoc Example + \ No newline at end of file diff --git a/features/multilingual/images/translation-available.png b/features/multilingual/images/translation-available.png new file mode 100644 index 0000000..2b50363 Binary files /dev/null and b/features/multilingual/images/translation-available.png differ diff --git a/features/multilingual/images/translation-not-available.png b/features/multilingual/images/translation-not-available.png new file mode 100644 index 0000000..5d87159 Binary files /dev/null and b/features/multilingual/images/translation-not-available.png differ diff --git a/features/multilingual/index.html b/features/multilingual/index.html new file mode 100644 index 0000000..9ef3ae8 --- /dev/null +++ b/features/multilingual/index.html @@ -0,0 +1,93 @@ +Multilingual | Hugo Geekdoc Example +
+
GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

Multilingual

Hugo supports the creation of websites with multiple languages. In this post we will explain how to get configure Multilingual Mode with this theme.

Configuration

Languages

You need to set a default language and configure at least two different languages used by your site to your configuration file at config.toml:

defaultContentLanguage = "en"
+
+[languages.en]
+languageName = "English"
+contentDir = "content/en"
+weight = 10
+
+[languages.de]
+languageName = "German"
+contentDir = "content/de"
+weight = 20
+

Translation Strings

To customize translation strings used by the theme you can create a file i18n/<languagecode>.toml for every language you want to use e.g. i18n/en.toml. You can lookup all used strings in the default translation file.

For the Bundle Menu as well as for the Extra Header Menu you can translate the name within the data file of the menu:

---
+more:
+  # If `name` is a text, this text will be used as name for each language.
+  - name: News
+    ref: "/#"
+    icon: "gdoc_notification"
+  # To translate the name you can add a sub-item per language. Important: If you miss a language key
+  # that is configured in the languages list of your `config.toml` the name will be empty for this language!
+  - name:
+      en: Releases
+      de: Veröffentlichung
+    ref: "https://github.com/thegeeklab/hugo-geekdoc/releases"
+    external: true
+    icon: "gdoc_download"
+

Add Content

To translate your content you need to create a directory content/<languagecode>/ for each language you want to use e.g. content/en/. This language directories will hold the translated pages for the particular language.

Switch Content

If you have configured at least two different languages, the language switcher will be enabled in the UI automatically. The switcher is as part of the header menu and displayed on all pages.

Beach Color Palette

On pages for which a translation is available it will be displayed in the selection list and links to the translated page.

Beach Color Palette

Pages without a translation will be displayed in the selection list as well but are marked with an asterisk and link to the start page of the respective language.

\ No newline at end of file diff --git a/features/theming/images/theme-example.png b/features/theming/images/theme-example.png new file mode 100644 index 0000000..fb0ec83 Binary files /dev/null and b/features/theming/images/theme-example.png differ diff --git a/features/theming/index.html b/features/theming/index.html new file mode 100644 index 0000000..c366e3f --- /dev/null +++ b/features/theming/index.html @@ -0,0 +1,385 @@ +Theming | Hugo Geekdoc Example +
+
GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

Theming

Color Scheme

If you want to customize the theme’s color scheme to give it your individual touch, you are only a few lines of CSS away. Generally, you need to override the default settings. The easiest way to do this is to create a file named static/custom.css right at the root of your site.

All the necessary CSS customization properties are listed below. If you want to customize elements that don’t use these properties, you can always look up the class name and override it directly. For inspiration, you can also take a look at https://www.color-hex.com. In this simple example, we’ll use the Beach color palette.

Beach Color Palette

Custom CSS:

  1
+  2
+  3
+  4
+  5
+  6
+  7
+  8
+  9
+ 10
+ 11
+ 12
+ 13
+ 14
+ 15
+ 16
+ 17
+ 18
+ 19
+ 20
+ 21
+ 22
+ 23
+ 24
+ 25
+ 26
+ 27
+ 28
+ 29
+ 30
+ 31
+ 32
+ 33
+ 34
+ 35
+ 36
+ 37
+ 38
+ 39
+ 40
+ 41
+ 42
+ 43
+ 44
+ 45
+ 46
+ 47
+ 48
+ 49
+ 50
+ 51
+ 52
+ 53
+ 54
+ 55
+ 56
+ 57
+ 58
+ 59
+ 60
+ 61
+ 62
+ 63
+ 64
+ 65
+ 66
+ 67
+ 68
+ 69
+ 70
+ 71
+ 72
+ 73
+ 74
+ 75
+ 76
+ 77
+ 78
+ 79
+ 80
+ 81
+ 82
+ 83
+ 84
+ 85
+ 86
+ 87
+ 88
+ 89
+ 90
+ 91
+ 92
+ 93
+ 94
+ 95
+ 96
+ 97
+ 98
+ 99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+
/* Global customization */
+
+:root {
+  --code-max-height: 60rem;
+}
+
+/* Light mode theming */
+:root,
+:root[color-theme="light"] {
+  --header-background: #4ec58a;
+  --header-font-color: #ffffff;
+
+  --body-background: #ffffff;
+  --body-font-color: #343a40;
+
+  --mark-color: #ffab00;
+
+  --button-background: #62cb97;
+  --button-border-color: #4ec58a;
+
+  --link-color: #518169;
+  --link-color-visited: #c54e8a;
+
+  --code-background: #f5f6f8;
+  --code-accent-color: #e3e7eb;
+  --code-accent-color-lite: #eff1f3;
+  --code-font-color: #5f5f5f;
+
+  --code-copy-background: #f5f6f8;
+  --code-copy-font-color: #6b7784;
+  --code-copy-border-color: #adb4bc;
+  --code-copy-success-color: #00c853;
+
+  --accent-color: #e9ecef;
+  --accent-color-lite: #f8f9fa;
+
+  --control-icons: #b2bac1;
+
+  --footer-background: #112b3c;
+  --footer-font-color: #ffffff;
+  --footer-link-color: #ffcc5c;
+  --footer-link-color-visited: #ffcc5c;
+}
+@media (prefers-color-scheme: light) {
+  :root {
+    --header-background: #4ec58a;
+    --header-font-color: #ffffff;
+
+    --body-background: #ffffff;
+    --body-font-color: #343a40;
+
+    --mark-color: #ffab00;
+
+    --button-background: #62cb97;
+    --button-border-color: #4ec58a;
+
+    --link-color: #518169;
+    --link-color-visited: #c54e8a;
+
+    --code-background: #f5f6f8;
+    --code-accent-color: #e3e7eb;
+    --code-accent-color-lite: #eff1f3;
+    --code-font-color: #5f5f5f;
+
+    --code-copy-background: #f5f6f8;
+    --code-copy-font-color: #6b7784;
+    --code-copy-border-color: #adb4bc;
+    --code-copy-success-color: #00c853;
+
+    --accent-color: #e9ecef;
+    --accent-color-lite: #f8f9fa;
+
+    --control-icons: #b2bac1;
+
+    --footer-background: #112b3c;
+    --footer-font-color: #ffffff;
+    --footer-link-color: #ffcc5c;
+    --footer-link-color-visited: #ffcc5c;
+  }
+}
+
+/* Dark mode theming */
+:root[color-theme="dark"] {
+  --header-background: #4ec58a;
+  --header-font-color: #ffffff;
+
+  --body-background: #343a40;
+  --body-font-color: #ced3d8;
+
+  --mark-color: #ffab00;
+
+  --button-background: #62cb97;
+  --button-border-color: #4ec58a;
+
+  --link-color: #7ac29e;
+  --link-color-visited: #c27a9e;
+
+  --code-background: #2f353a;
+  --code-accent-color: #262b2f;
+  --code-accent-color-lite: #2b3035;
+  --code-font-color: #b9b9b9;
+
+  --code-copy-background: #343a40;
+  --code-copy-font-color: #6b7784;
+  --code-copy-border-color: #6b7784;
+  --code-copy-success-color: #37905c;
+
+  --accent-color: #2b3035;
+  --accent-color-lite: #2f353a;
+
+  --control-icons: #b2bac1;
+
+  --footer-background: #112b3c;
+  --footer-font-color: #ffffff;
+  --footer-link-color: #ffcc5c;
+  --footer-link-color-visited: #ffcc5c;
+}
+@media (prefers-color-scheme: dark) {
+  :root {
+    --header-background: #4ec58a;
+    --header-font-color: #ffffff;
+
+    --body-background: #343a40;
+    --body-font-color: #ced3d8;
+
+    --mark-color: #ffab00;
+
+    --button-background: #62cb97;
+    --button-border-color: #4ec58a;
+
+    --link-color: #7ac29e;
+    --link-color-visited: #c27a9e;
+
+    --code-background: #2f353a;
+    --code-accent-color: #262b2f;
+    --code-accent-color-lite: #2b3035;
+    --code-font-color: #b9b9b9;
+
+    --code-copy-background: #343a40;
+    --code-copy-font-color: #6b7784;
+    --code-copy-border-color: #6b7784;
+    --code-copy-success-color: #37905c;
+
+    --accent-color: #2b3035;
+    --accent-color-lite: #2f353a;
+
+    --control-icons: #b2bac1;
+
+    --footer-background: #112b3c;
+    --footer-font-color: #ffffff;
+    --footer-link-color: #ffcc5c;
+    --footer-link-color-visited: #ffcc5c;
+  }
+}
+

Favicons

The Theme is shipped with a set of default Favicons in various formats generated by the Favicon Generator. All files can be found in the static/favicon folder of the release tarball. To make the replacement of the default Favicons as simple as possible, the theme loads only a very small subset of the Favicon formats.

<link rel="icon" type="image/svg+xml" href="{{ "favicon/favicon.svg" | relURL }}">
+<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon/favicon-32x32.png" | relURL }}">
+<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon/favicon-16x16.png" | relURL }}">
+

Simple replacement

The minimal steps to load a custom Favicon is to overwrite the three default Favicon files. Therefor place these files into your projects root folder:

  • static/favicon/favicon.svg
  • static/favicon/favicon-32x32.png
  • static/favicon/favicon-16x16.png

Full replacement

If you want to add more Favicon formats you have to overwrite the default partial that is used to load the files. In the next step you have to place the required files in the static folder of your project as well.

Example:

<!-- layouts/partials/head/favicons.html -->
+<link rel="icon" type="image/svg+xml" href="{{ "favicon/favicon.svg" | relURL }}">
+<link rel="apple-touch-icon" sizes="180x180" href="{{ "favicon/apple-touch-icon.png" | relURL }}">
+<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon/favicon-32x32.png" | relURL }}">
+<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon/favicon-16x16.png" | relURL }}">
+<link rel="manifest" href="{{ "favicon/site.webmanifest" | relURL }}">
+<link rel="mask-icon" href="{{ "favicon/safari-pinned-tab.svg" | relURL }}" color="#efefef">
+<meta name="msapplication-TileColor" content="#efefef">
+<meta name="theme-color" content="#efefef">
+

Happy customizing!

\ No newline at end of file diff --git a/fonts/GeekdocIcons.woff b/fonts/GeekdocIcons.woff index cd7f9de..70beb47 100644 Binary files a/fonts/GeekdocIcons.woff and b/fonts/GeekdocIcons.woff differ diff --git a/fonts/GeekdocIcons.woff2 b/fonts/GeekdocIcons.woff2 index 68338d2..36656fd 100644 Binary files a/fonts/GeekdocIcons.woff2 and b/fonts/GeekdocIcons.woff2 differ diff --git a/includes/table.md.part b/includes/table.md.part deleted file mode 100644 index 4bf79a3..0000000 --- a/includes/table.md.part +++ /dev/null @@ -1,5 +0,0 @@ -#### Test Table - -| Head 1 | Head 2 | Head 3 | -|---|---|---| -| 1 | 2 | 3 | \ No newline at end of file diff --git a/index.html b/index.html index 0f65f0f..e40eb71 100644 --- a/index.html +++ b/index.html @@ -1,47 +1,19 @@ -Hugo Geekdoc Example -
-
Toggle Dark/Light/Auto mode +Hugo Geekdoc Example +
+
GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Documentation

Build Status -Hugo Version +

Welcome to the documentation

Build Status +Hugo Version GitHub release GitHub contributors -License: MIT

Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme and may not fit the requirements of complex projects. If a more feature-complete theme is required there are a lot of got alternatives out there. You can find a demo and the full documentation at https://geekdocs.de.

Features

  • Clean and simple design
  • Light and mobile-friendly
  • Easy customization
  • Zero initial configuration
  • Handy shortcodes
\ No newline at end of file diff --git a/index.xml b/index.xml deleted file mode 100644 index 352a139..0000000 --- a/index.xml +++ /dev/null @@ -1,25 +0,0 @@ -Documentation on Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/Recent content in Documentation on Hugo Geekdoc ExampleHugoenGetting Startedhttps://jlumbroso.github.io/hugo-geekdoc-github-example/usage/getting-started/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/getting-started/This page tells you how to get started with the Geekdoc theme, including installation and basic configuration. -Install requirements Using the theme Option 1: Download pre-build release bundle Option 2: Clone the GitHub repository Install requirements You need a recent version of Hugo for local builds and previews of sites that use Geekdoc. As we are using gulp as pre-processor the normal version of Hugo is sufficient. If you prefer the extended version of Hugo anyway this will work as well.Configurationhttps://jlumbroso.github.io/hugo-geekdoc-github-example/usage/configuration/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/configuration/Site configuration Page configuration Site configuration TOML baseURL = &#34;http://localhost&#34; title = &#34;Geekdocs&#34; theme = &#34;hugo-geekdoc&#34; # Required to get well formatted code blocks pygmentsUseClasses = true pygmentsCodeFences = true disablePathToLower = true enableGitInfo = true [markup] [markup.goldmark.renderer] # Needed for mermaid shortcode unsafe = true [markup.tableOfContents] startLevel = 1 endLevel = 9 [params] # (Optional, default 6) Set how many table of contents levels to be showed on page.Initial releasehttps://jlumbroso.github.io/hugo-geekdoc-github-example/posts/initial-release/Wed, 08 Jan 2020 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/posts/initial-release/This is the first release of the Geekdoc theme. -Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.Hello Geekdochttps://jlumbroso.github.io/hugo-geekdoc-github-example/posts/hello_geekdoc/Mon, 06 Jan 2020 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/posts/hello_geekdoc/This is the first release of the Geekdoc theme. -Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo. -Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim.<link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/buttons/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/buttons/</guid><description>Buttons are styled links that can lead to local page or external link. -{{&lt; button relref=&#34;/&#34; [class=&#34;...&#34;] &gt;}}Get Home{{&lt; /button &gt;}} {{&lt; button href=&#34;https://github.com/thegeeklab/hugo-geekdoc&#34; &gt;}}Contribute{{&lt; /button &gt;}} Example Get Home Contribute</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/columns/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/columns/</guid><description>Columns help organize shorter pieces of content horizontally for readability. -{{&lt; columns &gt;}} &lt;!-- begin columns block --&gt; # Left Content Dolor sit, sumo unique argument um no ... &lt;---&gt; &lt;!-- magic sparator, between columns --&gt; # Mid Content Dolor sit, sumo unique argument um no ... &lt;---&gt; &lt;!-- magic sparator, between columns --&gt; # Right Content Dolor sit, sumo unique argument um no ... {{&lt; /columns &gt;}} Example Left Dolor sit, sumo unique argument um no.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/expand/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/expand/</guid><description>Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it. -Example Default {{&lt; expand &gt;}} ## Markdown content Dolor sit, sumo unique ... {{&lt; /expand &gt;}} Expand ↕ Markdown content Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. -With Custom Label {{&lt; expand &#34;Custom Label&#34; &#34;.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/hints/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/hints/</guid><description>Hint shortcode can be used as hint/alerts/notification block. There are four colors to choose: info, ok, warning and danger. -{{&lt; hint [info|warning|danger] &gt;}} **Markdown content**\ Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. {{&lt; /hint &gt;}} Example Markdown content -Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/includes/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/includes/</guid><description>Include shortcode can include files of different types. By specifying a language, the included file will have syntax highlighting. -Shortcode {{&lt; include file=&#34;relative/path/from/hugo/root&#34; language=&#34;go&#34; markdown=[false|true] &gt;}} Attributes: -Name Usage default file path to the included file relative to the hugo root empty value language* language for syntax highlighting empty value markdown included file is markdown false options highlighting options linenos=table * if not set, the content will be rendered as plain HTML</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/mermaid/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/mermaid/</guid><description>Mermaid is library for generating SVG charts and diagrams from text. -Example sequenceDiagram Alice->>Bob: Hello Bob, how are you? alt is sick Bob->>Alice: Not so good :( else is well Bob->>Alice: Feeling fresh like a daisy end opt Extra response Bob->>Alice: Thanks for asking end sequenceDiagram Alice->>Bob: Hello Bob, how are you? alt is sick Bob->>Alice: Not so good :( else is well Bob->>Alice: Feeling fresh like a daisy end opt Extra response Bob->>Alice: Thanks for asking end</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/tabs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/tabs/</guid><description>Tabs let you organize content by context, for example installation instructions for each supported platform. -{{&lt; tabs &#34;uniqueid&#34; &gt;}} {{&lt; tab &#34;macOS&#34; &gt;}} # macOS Content {{&lt; /tab &gt;}} {{&lt; tab &#34;Linux&#34; &gt;}} # Linux Content {{&lt; /tab &gt;}} {{&lt; tab &#34;Windows&#34; &gt;}} # Windows Content {{&lt; /tab &gt;}} {{&lt; /tabs &gt;}} Example macOS macOS This is tab macOS content. -Dolor sit, sumo unique argument um no. Gracie nominal id xiv.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc-tree/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc-tree/</guid><description>The toc-tree shortcode will generate a Table of Content from a section file tree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode. -{{&lt; toc-tree &gt;}} Example As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the ToC Tree section.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc/</guid><description>Simple wrapper to generate a page Table of Content from a shortcode. -{{&lt; toc &gt;}} Level 1 Level 2 Level 2.1 Level 2.1.1 Level 2.1.1.1 Level 2.1.1.1.1 Level 2.2 Level 1 Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/code-blocks/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/code-blocks/</guid><description>There are multiple ways to add code blocks. Most of them works out of the box only the Hugo shortcode &lt;highlight&gt; need some configuration to work properly. -Inline code Code blocks Highlight shortcode Inline code To display an inline shortcode use single quotes: -`some code` Example: some code -Code blocks Code blocks can be uses without language specification: -``` some code ``` Example: -some code &hellip; or if you need language specific syntax highlighting:</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/color-schemes/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/color-schemes/</guid><description>If you want to customize the color scheme of the theme to give it your individual touch you are just a few lines CSS away. In general, you have to override the defaults, the easiest way to do so is to create a static/custom.css file right in your site root. -All necessary class names are listed below. If you miss some classes required for a color scheme you are very welcome to create an Issue or Pull Request.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/menus/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/menus/</guid><description>The theme supports two different kinds of menus. File-tree menu is the default one and does not require further configuration to work. If you want full control about your menu the bundle menu is a powerful option to accomplish it. -File-tree menu Bundle menu More menu File-tree menu As the name already suggests, the file tree menu builds a menu from the file system structure of the content folder. By default, areas and subareas are sorted alphabetically by the title of the pages.</description></item><item><title>Level 1.1https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-1/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-1/Level 1.1Level 1.1https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-1/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-1/Level 1.1Level 1.2https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-2/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-2/Level 1.2Level 1.2https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-2/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-2/Level 1.2Level 1.3.1https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/level-1-3-1/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/level-1-3-1/Level 1.3.1Level 2.1https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-1/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-1/Level 2.1Level 2.1https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-1/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-1/Level 2.1Level 2.2https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-2/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-2/Level 2.2Level 2.2https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-2/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-2/Level 2.2 \ No newline at end of file diff --git a/media/bundle-menu.png b/media/bundle-menu.png deleted file mode 100644 index 180d739..0000000 Binary files a/media/bundle-menu.png and /dev/null differ diff --git a/media/colorscheme-example.png b/media/colorscheme-example.png deleted file mode 100644 index 2ad1cb1..0000000 Binary files a/media/colorscheme-example.png and /dev/null differ diff --git a/media/file-tree.png b/media/file-tree.png deleted file mode 100644 index ae170db..0000000 Binary files a/media/file-tree.png and /dev/null differ diff --git a/media/more-menu.png b/media/more-menu.png deleted file mode 100644 index a1746db..0000000 Binary files a/media/more-menu.png and /dev/null differ diff --git a/posts/hello_geekdoc/index.html b/posts/hello_geekdoc/index.html index 80e4379..4ce724f 100644 --- a/posts/hello_geekdoc/index.html +++ b/posts/hello_geekdoc/index.html @@ -1,13 +1,14 @@ Hello Geekdoc | Hugo Geekdoc Example -
+Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim."/>
Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -17,19 +18,32 @@
  • +
  • +
  • +
  • +
  • More

    Tags

    More

    Hello Geekdoc

    This is the first release of the Geekdoc theme.

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.

    Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram. Que no rota alters, ad sea sues exercise main rum, cu diam mas facility sea.

  • This is the first release of the Geekdoc theme.

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.

    Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram. Que no rota alters, ad sea sues exercise main rum, cu diam mas facility sea.

    \ No newline at end of file diff --git a/posts/index.html b/posts/index.html index b43c317..9ae6a71 100644 --- a/posts/index.html +++ b/posts/index.html @@ -1,7 +1,8 @@ -News | Hugo Geekdoc Example -
    +News | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -11,19 +12,32 @@
  • +
  • +
  • +
  • +
  • More

    Tags

    More

    Initial release

    This is the first release of the Geekdoc theme. Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.

    Hello Geekdoc

    This is the first release of the Geekdoc theme. Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo. Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim.
    Read full post gdoc_arrow_right_alt
  • \ No newline at end of file diff --git a/posts/index.xml b/posts/index.xml deleted file mode 100644 index 5701338..0000000 --- a/posts/index.xml +++ /dev/null @@ -1,4 +0,0 @@ -News on Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/posts/Recent content in News on Hugo Geekdoc ExampleHugoenInitial releasehttps://jlumbroso.github.io/hugo-geekdoc-github-example/posts/initial-release/Wed, 08 Jan 2020 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/posts/initial-release/This is the first release of the Geekdoc theme. -Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.Hello Geekdochttps://jlumbroso.github.io/hugo-geekdoc-github-example/posts/hello_geekdoc/Mon, 06 Jan 2020 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/posts/hello_geekdoc/This is the first release of the Geekdoc theme. -Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo. -Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. \ No newline at end of file diff --git a/posts/initial-release/index.html b/posts/initial-release/index.html index 6b4dd02..98a3300 100644 --- a/posts/initial-release/index.html +++ b/posts/initial-release/index.html @@ -1,10 +1,11 @@ Initial release | Hugo Geekdoc Example -
    +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -14,19 +15,32 @@
  • +
  • +
  • +
  • +
  • More

    Tags

    More

    Initial release

    This is the first release of the Geekdoc theme.

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.

  • This is the first release of the Geekdoc theme.

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.

    \ No newline at end of file diff --git a/robots.txt b/robots.txt index 03ed307..ea4f4c4 100644 --- a/robots.txt +++ b/robots.txt @@ -1,4 +1,4 @@ User-agent: * -Disallow: /categories/* Disallow: /tags/* -Sitemap: https://geekdocs.de/sitemap.xml + +Sitemap: https://jlumbroso.github.io/hugo-geekdoc-github-example/sitemap.xml diff --git a/search/en.config.min.json b/search/en.config.min.json index 463d829..ec985af 100644 --- a/search/en.config.min.json +++ b/search/en.config.min.json @@ -1 +1 @@ -{"dataFile":"/hugo-geekdoc-github-example/search/en.data.min.json","indexConfig":null,"showParent":true,"showDescription":false} \ No newline at end of file +{"dataFile":"/hugo-geekdoc-github-example/search/en.data.min.json","indexConfig":null,"showParent":true,"showDescription":true} \ No newline at end of file diff --git a/search/en.data.min.json b/search/en.data.min.json index c5591c7..f243794 100644 --- a/search/en.data.min.json +++ b/search/en.data.min.json @@ -1 +1 @@ -[{"id":0,"href":"/hugo-geekdoc-github-example/usage/getting-started/","title":"Getting Started","parent":"Usage","content":"This page tells you how to get started with the Geekdoc theme, including installation and basic configuration.\nInstall requirements Using the theme Option 1: Download pre-build release bundle Option 2: Clone the GitHub repository Install requirements You need a recent version of Hugo for local builds and previews of sites that use Geekdoc. As we are using gulp as pre-processor the normal version of Hugo is sufficient. If you prefer the extended version of Hugo anyway this will work as well. For comprehensive Hugo documentation, see gohugo.io.\nIf you want to use the theme from a cloned branch instead of a release tarball you\u0026rsquo;ll need to install gulp locally and run the default pipeline once to create all required assets.\n# install required packages from package.json npm install # run gulp pipeline to build required assets npx gulp default Using the theme To prepare your new site environment just a few steps are required:\nCreate a new empty Hugo site.\nhugo new site demosite Switch to the root of the new site.\ncd demosite Install the Geekdoc theme from a release bundle (recommended) or from Git branch.\nCreate the minimal required Hugo configuration config.toml. For all configuration options see here.\nbaseURL = \u0026#34;http://localhost\u0026#34; title = \u0026#34;Geekdocs\u0026#34; theme = \u0026#34;hugo-geekdoc\u0026#34; # Geekdoc required configuration pygmentsUseClasses = true pygmentsCodeFences = true disablePathToLower = true # Needed for mermaid shortcodes [markup] [markup.goldmark.renderer] # Needed for mermaid shortcode unsafe = true [markup.tableOfContents] startLevel = 1 endLevel = 9 Test your site.\nhugo server -D Option 1: Download pre-build release bundle Download and extract the latest release bundle into the theme directory.\nmkdir -p themes/hugo-geekdoc/ curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C themes/hugo-geekdoc/ --strip-components=1 Option 2: Clone the GitHub repository Info\nKeep in mind this method is not recommended and needs some extra steps to get it working. If you want to use the Theme as submodule keep in mind that your build process need to run the described steps as well. Clone the Geekdoc git repository.\ngit clone https://github.com/thegeeklab/hugo-geekdoc.git themes/geekdoc Build required theme assets e.g. CSS files and SVG sprites with gulp.\nnpx gulp default ","description":"This page tells you how to get started with the Geekdoc theme, including installation and basic configuration.\nInstall requirements Using the theme Option 1: Download pre-build release bundle Option 2: Clone the GitHub repository Install requirements You need a recent version of Hugo for local builds and previews of sites that use Geekdoc. As we are using gulp as pre-processor the normal version of Hugo is sufficient. If you prefer the extended version of Hugo anyway this will work as well."},{"id":1,"href":"/hugo-geekdoc-github-example/usage/","title":"Usage","parent":"Documentation","content":"","description":""},{"id":2,"href":"/hugo-geekdoc-github-example/usage/configuration/","title":"Configuration","parent":"Usage","content":" Site configuration Page configuration Site configuration TOML baseURL = \u0026#34;http://localhost\u0026#34; title = \u0026#34;Geekdocs\u0026#34; theme = \u0026#34;hugo-geekdoc\u0026#34; # Required to get well formatted code blocks pygmentsUseClasses = true pygmentsCodeFences = true disablePathToLower = true enableGitInfo = true [markup] [markup.goldmark.renderer] # Needed for mermaid shortcode unsafe = true [markup.tableOfContents] startLevel = 1 endLevel = 9 [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/) # You can also specify this parameter per page in front matter. geekdocToC = 3 # (Optional, default static/brand.svg) Set the path to a logo for the Geekdoc # relative to your \u0026#39;static/\u0026#39; folder. geekdocLogo = \u0026#34;logo.png\u0026#34; # (Optional, default false) Render menu from data file im \u0026#39;data/menu/main.yaml\u0026#39;. geekdocMenuBundle = true # (Optional, default true) Show page navigation links at the bottom of each # docs page (bundle menu only). geekdocNextPrev = false # (Optional, default true) Show a breadcrumb navigation bar at the top of each docs page. # You can also specify this parameter per page in front matter. geekdocBreadcrumb = false # (Optional, default none) Set source repository location. Used for \u0026#39;Edit this page\u0026#39; links. # You can also specify this parameter per page in front matter. geekdocRepo = \u0026#34;https://github.com/thegeeklab/hugo\u0026#34; # (Optional, default none) Enable \u0026#39;Edit this page\u0026#39; links. Requires \u0026#39;GeekdocRepo\u0026#39; param # and path must point to \u0026#39;content\u0026#39; directory of repo. # You can also specify this parameter per page in front matter. geekdocEditPath = \u0026#34;edit/master/exampleSite/content\u0026#34; # (Optional, default true) Enables search function with flexsearch. # Index is built on the fly and might slowdown your website. geekdocSearch = false # (Optional, default false) Display search results with the parent folder as prefix. This # option allows you to distinguish between files with the same name in different folders. # NOTE: This parameter only applies when \u0026#39;geekdocSearch = true\u0026#39;. geekdocSearchShowParent = true # (Optional, default none) Add a link to your Legal Notice page to the site footer. # It can be either a remote url or a local file path relative to your content directory. geekdocLegalNotice = \u0026#34;https://blog.example.com/legal\u0026#34; # (Optional, default none) Add a link to your Privacy Policy page to the site footer. # It can be either a remote url or a local file path relative to your content directory. geekdocPrivacyPolicy = \u0026#34;/privacy\u0026#34; # (Optional, default true) Add an anchor link to headlines. geekdocAnchor = true # (Optional, default true) Copy anchor url to clipboard on click. geekdocAnchorCopy = true YAML --- baseURL: \u0026#34;http://localhost\u0026#34; title: \u0026#34;Geekdocs\u0026#34; theme: \u0026#34;hugo-geekdoc\u0026#34; # Required to get well formatted code blocks pygmentsUseClasses: true pygmentsCodeFences: true disablePathToLower: true enableGitInfo: true markup: goldmark: # Needed for mermaid shortcode renderer: unsafe: true tableOfContents: startLevel: 1 endLevel: 9 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/) # You can also specify this parameter per page in front matter. geekdocToC: 3 # (Optional, default static/brand.svg) Set the path to a logo for the Geekdoc # relative to your \u0026#39;static/\u0026#39; folder. geekdocLogo: logo.png # (Optional, default false) Render menu from data file im \u0026#39;data/menu/main.yaml\u0026#39;. # See also https://geekdocs.de/usage/menus/#bundle-menu geekdocMenuBundle: true # (Optional, default true) Show page navigation links at the bottom of each # docs page (bundle menu only). geekdocNextPrev: false # (Optional, default true) Show a breadcrumb navigation bar at the top of each docs page. # You can also specify this parameter per page in front matter. geekdocBreadcrumb: false # (Optional, default none) Set source repository location. Used for \u0026#39;Edit this page\u0026#39; links. # You can also specify this parameter per page in front matter. geekdocRepo: \u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; # (Optional, default none) Enable \u0026#34;Edit this page\u0026#34; links. Requires \u0026#39;GeekdocRepo\u0026#39; param # and path must point to \u0026#39;content\u0026#39; directory of repo. # You can also specify this parameter per page in front matter. geekdocEditPath: edit/master/exampleSite/content # (Optional, default true) Enables search function with flexsearch. # Index is built on the fly and might slowdown your website. geekdocSearch: false # (Optional, default false) Display search results with the parent folder as prefix. This # option allows you to distinguish between files with the same name in different folders. # NOTE: This parameter only applies when \u0026#39;geekdocSearch: true\u0026#39;. geekdocSearchShowParent: true # (Optional, default none) Add a link to your Legal Notice page to the site footer. # It can be either a remote url or a local file path relative to your content directory. geekdocLegalNotice: \u0026#34;https://blog.example.com/legal\u0026#34; # (Optional, default none) Add a link to your Privacy Policy page to the site footer. # It can be either a remote url or a local file path relative to your content directory. geekdocPrivacyPolicy: \u0026#34;/privacy\u0026#34; # (Optional, default true) Add an anchor link to headlines. geekdocAnchor: true # (Optional, default true) Copy anchor url to clipboard on click. geekdocAnchorCopy: true Page configuration TOML # Set type to \u0026#39;posts\u0026#39; if you want to render page as blogpost type = \u0026#34;posts\u0026#34; # Set page weight to re-arrange items in file-tree menu. weight = 10 # Set how many table of contents levels to be showed on page. geekdocToC = 3 # Set a description for the current page. This will be shown in toc-trees objects. geekdocDescription = # Show a breadcrumb navigation bar at the top of each docs page. geekdocBreadcrumb = false # Set source repository location. geekdocRepo = \u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; # Enable \u0026#34;Edit this page\u0026#34; links. Requires \u0026#39;GeekdocRepo\u0026#39; param and path must point # to \u0026#39;content\u0026#39; directory of repo. geekdocEditPath = \u0026#34;edit/master/exampleSite/content\u0026#34; # Used for \u0026#39;Edit this page\u0026#39; link, set to \u0026#39;.File.Path\u0026#39; by default. # Can be overwritten by a path relative to \u0026#39;geekdocEditPath\u0026#39; geekdocFilePath = # Set to mark page as flat section (file-tree menu only). geekdocFlatSection = true # Set true to hide page or section from side menu (file-tree menu only). geekdocHidden = true # Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar. # NOTE: Only applies when \u0026#39;geekdocHidden = true\u0026#39;. geekdocHiddenTocTree = true # Set to true to make a section foldable in side menu. geekdocCollapseSection = true # Add an anchor link to headlines. geekdocAnchor = true YAML # Set type to \u0026#39;posts\u0026#39; if you want to render page as blogpost. type: \u0026#34;posts\u0026#34; # Set page weight to re-arrange items in file-tree menu. weight: 10 # Set how many table of contents levels to be showed on page. geekdocToC: 3 # Set a description for the current page. This will be shown in toc-trees objects. geekdocDescription: # Show a breadcrumb navigation bar at the top of each docs page. geekdocBreadcrumb: false # Set source repository location. geekdocRepo: \u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; # Enable \u0026#34;Edit this page\u0026#34; links. Requires \u0026#39;GeekdocRepo\u0026#39; param and path must point # to \u0026#39;content\u0026#39; directory of repo. geekdocEditPath: \u0026#34;edit/master/exampleSite/content\u0026#34; # Used for \u0026#39;Edit this page\u0026#39; link, set to \u0026#39;.File.Path\u0026#39; by default. # Can be overwritten by a path relative to \u0026#39;geekdocEditPath\u0026#39; geekdocFilePath: # Set to mark page as flat section (file-tree menu only). geekdocFlatSection: true # Set true to hide page or section from side menu (file-tree menu only). geekdocHidden: true # Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar. # NOTE: Only applies when \u0026#39;geekdocHidden: true\u0026#39;. geekdocHiddenTocTree: true # Set to true to make a section foldable in side menu. geekdocCollapseSection: true # Add an anchor link to headlines. geekdocAnchor: true ","description":"Site configuration Page configuration Site configuration TOML baseURL = \u0026#34;http://localhost\u0026#34; title = \u0026#34;Geekdocs\u0026#34; theme = \u0026#34;hugo-geekdoc\u0026#34; # Required to get well formatted code blocks pygmentsUseClasses = true pygmentsCodeFences = true disablePathToLower = true enableGitInfo = true [markup] [markup.goldmark.renderer] # Needed for mermaid shortcode unsafe = true [markup.tableOfContents] startLevel = 1 endLevel = 9 [params] # (Optional, default 6) Set how many table of contents levels to be showed on page."},{"id":3,"href":"/hugo-geekdoc-github-example/shortcodes/","title":"Shortcodes","parent":"Documentation","content":"","description":""},{"id":4,"href":"/hugo-geekdoc-github-example/posts/","title":"News","parent":"Documentation","content":"","description":""},{"id":5,"href":"/hugo-geekdoc-github-example/posts/initial-release/","title":"Initial release","parent":"News","content":"This is the first release of the Geekdoc theme.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\n","description":"This is the first release of the Geekdoc theme.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo."},{"id":6,"href":"/hugo-geekdoc-github-example/posts/hello_geekdoc/","title":"Hello Geekdoc","parent":"News","content":"This is the first release of the Geekdoc theme.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nAmalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram. Que no rota alters, ad sea sues exercise main rum, cu diam mas facility sea.\n","description":"This is the first release of the Geekdoc theme.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nAmalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim."},{"id":7,"href":"/hugo-geekdoc-github-example/collapse/level-1/","title":"Level 1","parent":"Collapse","content":"Level 1\nLevel 1.1 Level 1.2 ","description":"Level 1\nLevel 1.1 Level 1.2 "},{"id":8,"href":"/hugo-geekdoc-github-example/collapse/level-2/","title":"Level 2","parent":"Collapse","content":"Level-2\n","description":"Level-2"},{"id":9,"href":"/hugo-geekdoc-github-example/shortcodes/buttons/","title":"Buttons","parent":"Shortcodes","content":"Buttons are styled links that can lead to local page or external link.\n{{\u0026lt; button relref=\u0026#34;/\u0026#34; [class=\u0026#34;...\u0026#34;] \u0026gt;}}Get Home{{\u0026lt; /button \u0026gt;}} {{\u0026lt; button href=\u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; \u0026gt;}}Contribute{{\u0026lt; /button \u0026gt;}} Example Get Home Contribute ","description":"Buttons are styled links that can lead to local page or external link.\n{{\u0026lt; button relref=\u0026#34;/\u0026#34; [class=\u0026#34;...\u0026#34;] \u0026gt;}}Get Home{{\u0026lt; /button \u0026gt;}} {{\u0026lt; button href=\u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; \u0026gt;}}Contribute{{\u0026lt; /button \u0026gt;}} Example Get Home Contribute "},{"id":10,"href":"/hugo-geekdoc-github-example/shortcodes/columns/","title":"Columns","parent":"Shortcodes","content":"Columns help organize shorter pieces of content horizontally for readability.\n{{\u0026lt; columns \u0026gt;}} \u0026lt;!-- begin columns block --\u0026gt; # Left Content Dolor sit, sumo unique argument um no ... \u0026lt;---\u0026gt; \u0026lt;!-- magic sparator, between columns --\u0026gt; # Mid Content Dolor sit, sumo unique argument um no ... \u0026lt;---\u0026gt; \u0026lt;!-- magic sparator, between columns --\u0026gt; # Right Content Dolor sit, sumo unique argument um no ... {{\u0026lt; /columns \u0026gt;}} Example Left Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nMid Content Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.\nRight Content Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\n","description":"Columns help organize shorter pieces of content horizontally for readability.\n{{\u0026lt; columns \u0026gt;}} \u0026lt;!-- begin columns block --\u0026gt; # Left Content Dolor sit, sumo unique argument um no ... \u0026lt;---\u0026gt; \u0026lt;!-- magic sparator, between columns --\u0026gt; # Mid Content Dolor sit, sumo unique argument um no ... \u0026lt;---\u0026gt; \u0026lt;!-- magic sparator, between columns --\u0026gt; # Right Content Dolor sit, sumo unique argument um no ... {{\u0026lt; /columns \u0026gt;}} Example Left Dolor sit, sumo unique argument um no."},{"id":11,"href":"/hugo-geekdoc-github-example/shortcodes/expand/","title":"Expand","parent":"Shortcodes","content":"Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it.\nExample Default {{\u0026lt; expand \u0026gt;}} ## Markdown content Dolor sit, sumo unique ... {{\u0026lt; /expand \u0026gt;}} Expand ↕ Markdown content Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.\nWith Custom Label {{\u0026lt; expand \u0026#34;Custom Label\u0026#34; \u0026#34;...\u0026#34; \u0026gt;}} ## Markdown content Dolor sit, sumo unique ... {{\u0026lt; /expand \u0026gt;}} Custom Label ... More markdown Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\n","description":"Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it.\nExample Default {{\u0026lt; expand \u0026gt;}} ## Markdown content Dolor sit, sumo unique ... {{\u0026lt; /expand \u0026gt;}} Expand ↕ Markdown content Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.\nWith Custom Label {{\u0026lt; expand \u0026#34;Custom Label\u0026#34; \u0026#34;."},{"id":12,"href":"/hugo-geekdoc-github-example/shortcodes/hints/","title":"Hints","parent":"Shortcodes","content":"Hint shortcode can be used as hint/alerts/notification block. There are four colors to choose: info, ok, warning and danger.\n{{\u0026lt; hint [info|warning|danger] \u0026gt;}} **Markdown content**\\ Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. {{\u0026lt; /hint \u0026gt;}} Example Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. ","description":"Hint shortcode can be used as hint/alerts/notification block. There are four colors to choose: info, ok, warning and danger.\n{{\u0026lt; hint [info|warning|danger] \u0026gt;}} **Markdown content**\\ Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. {{\u0026lt; /hint \u0026gt;}} Example Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re."},{"id":13,"href":"/hugo-geekdoc-github-example/shortcodes/includes/","title":"Includes","parent":"Shortcodes","content":"Include shortcode can include files of different types. By specifying a language, the included file will have syntax highlighting.\nShortcode {{\u0026lt; include file=\u0026#34;relative/path/from/hugo/root\u0026#34; language=\u0026#34;go\u0026#34; markdown=[false|true] \u0026gt;}} Attributes:\nName Usage default file path to the included file relative to the hugo root empty value language* language for syntax highlighting empty value markdown included file is markdown false options highlighting options linenos=table * if not set, the content will be rendered as plain HTML\nInclude *.yml file with options {{\u0026lt; include file=\u0026#34;config.yaml\u0026#34; language=\u0026#34;yaml\u0026#34; options=\u0026#34;linenos=table,hl_lines=5-6,linenostart=100\u0026#34; \u0026gt;}} 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 # See https://geekdocs.de/usage/configuration/ # for more information on how to configure this file --- baseURL: https://jlumbroso.github.io/hugo-geekdoc-github-example title: Hugo Geekdoc Example theme: hugo-geekdoc pygmentsUseClasses: true pygmentsCodeFences: true timeout: 180000 # Geekdoc configuration disablePathToLower: true enableGitInfo: true # Needed for mermaid shortcodes markup: goldmark: renderer: unsafe: true tableOfContents: startLevel: 1 endLevel: 9 params: # geekdocMenuBundle: true geekdocToC: 3 geekdocRepo: https://github.com/jlumbroso/hugo-geekdoc-github-example geekdocEditPath: edit/main/content geekdocSearch: true geekdocSearchShowParent: true Include *.md file Included markdown files will be rendered using the markdownify filter.\nLocation of markdown files\nIf you include markdown files that should not get a menu entry, place them outside the content folder or exclude them otherwise. {{\u0026lt; include file=\u0026#34;static/includes/table.md.part\u0026#34; markdown=\u0026#34;true\u0026#34; \u0026gt;}} Test Table Head 1 Head 2 Head 3 1 2 3 Include *.html file HTML content will be filtered by the safeHTML filter and added to the rendered page output.\n{{\u0026lt; include file=\u0026#34;static/includes/example.html.part\u0026#34; \u0026gt;}} This is heading 1 This is heading 2 This is heading 3 This is heading 4 This is heading 5 This is heading 6 ","description":"Include shortcode can include files of different types. By specifying a language, the included file will have syntax highlighting.\nShortcode {{\u0026lt; include file=\u0026#34;relative/path/from/hugo/root\u0026#34; language=\u0026#34;go\u0026#34; markdown=[false|true] \u0026gt;}} Attributes:\nName Usage default file path to the included file relative to the hugo root empty value language* language for syntax highlighting empty value markdown included file is markdown false options highlighting options linenos=table * if not set, the content will be rendered as plain HTML"},{"id":14,"href":"/hugo-geekdoc-github-example/shortcodes/mermaid/","title":"Mermaid","parent":"Shortcodes","content":"Mermaid is library for generating SVG charts and diagrams from text.\nExample sequenceDiagram Alice-\u003e\u003eBob: Hello Bob, how are you? alt is sick Bob-\u003e\u003eAlice: Not so good :( else is well Bob-\u003e\u003eAlice: Feeling fresh like a daisy end opt Extra response Bob-\u003e\u003eAlice: Thanks for asking end sequenceDiagram Alice-\u003e\u003eBob: Hello Bob, how are you? alt is sick Bob-\u003e\u003eAlice: Not so good :( else is well Bob-\u003e\u003eAlice: Feeling fresh like a daisy end opt Extra response Bob-\u003e\u003eAlice: Thanks for asking end ","description":"Mermaid is library for generating SVG charts and diagrams from text. Example sequenceDiagram Alice-\u003e\u003eBob: Hello Bob, how are you? alt is sick Bob-\u003e\u003eAlice: Not so good :( else is well Bob-\u003e\u003eAlice: Feeling fresh like a daisy end opt Extra response Bob-\u003e\u003eAlice: Thanks for asking end sequenceDiagram Alice-\u003e\u003eBob: Hello Bob, how are you? alt is sick Bob-\u003e\u003eAlice: Not so good :( else is well Bob-\u003e\u003eAlice: Feeling fresh like a daisy end opt Extra response Bob-\u003e\u003eAlice: Thanks for asking end "},{"id":15,"href":"/hugo-geekdoc-github-example/shortcodes/tabs/","title":"Tabs","parent":"Shortcodes","content":"Tabs let you organize content by context, for example installation instructions for each supported platform.\n{{\u0026lt; tabs \u0026#34;uniqueid\u0026#34; \u0026gt;}} {{\u0026lt; tab \u0026#34;macOS\u0026#34; \u0026gt;}} # macOS Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; tab \u0026#34;Linux\u0026#34; \u0026gt;}} # Linux Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; tab \u0026#34;Windows\u0026#34; \u0026gt;}} # Windows Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; /tabs \u0026gt;}} Example macOS macOS This is tab macOS content.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nLinux Linux This is tab Linux content.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nWindows Windows This is tab Windows content.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent.\n","description":"Tabs let you organize content by context, for example installation instructions for each supported platform.\n{{\u0026lt; tabs \u0026#34;uniqueid\u0026#34; \u0026gt;}} {{\u0026lt; tab \u0026#34;macOS\u0026#34; \u0026gt;}} # macOS Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; tab \u0026#34;Linux\u0026#34; \u0026gt;}} # Linux Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; tab \u0026#34;Windows\u0026#34; \u0026gt;}} # Windows Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; /tabs \u0026gt;}} Example macOS macOS This is tab macOS content.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv."},{"id":16,"href":"/hugo-geekdoc-github-example/shortcodes/toc-tree/","title":"Toc Tree","parent":"Shortcodes","content":"The toc-tree shortcode will generate a Table of Content from a section file tree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode.\n{{\u0026lt; toc-tree \u0026gt;}} Example As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the ToC Tree section.\n","description":"The toc-tree shortcode will generate a Table of Content from a section file tree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode.\n{{\u0026lt; toc-tree \u0026gt;}} Example As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the ToC Tree section."},{"id":17,"href":"/hugo-geekdoc-github-example/shortcodes/toc/","title":"Toc","parent":"Shortcodes","content":"Simple wrapper to generate a page Table of Content from a shortcode.\n{{\u0026lt; toc \u0026gt;}} Level 1 Level 2 Level 2.1 Level 2.1.1 Level 2.1.1.1 Level 2.1.1.1.1 Level 2.2 Level 1 Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nLevel 2 Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram.\nLevel 2.1 Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram.\nLevel 2.1.1 Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim.\nLevel 2.1.1.1 In pro quints consequent, denim fastidious copious quo ad.\nLevel 2.1.1.1.1 In pro quints consequent, denim fastidious copious quo ad.\nLevel 2.2 Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e.\nAmalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram.\n","description":"Simple wrapper to generate a page Table of Content from a shortcode.\n{{\u0026lt; toc \u0026gt;}} Level 1 Level 2 Level 2.1 Level 2.1.1 Level 2.1.1.1 Level 2.1.1.1.1 Level 2.2 Level 1 Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad."},{"id":18,"href":"/hugo-geekdoc-github-example/toc-tree/level-1/","title":"Level 1","parent":"ToC Tree","content":"Level 1\nLevel 1.1 Level 1.2 Level 1.3 Level 1.3.1 ","description":"Level 1\nLevel 1.1 Level 1.2 Level 1.3 Level 1.3.1 "},{"id":19,"href":"/hugo-geekdoc-github-example/toc-tree/level-2/","title":"Level 2","parent":"ToC Tree","content":"Level-2\n","description":"Level-2"},{"id":20,"href":"/hugo-geekdoc-github-example/usage/code-blocks/","title":"Code Blocks","parent":"Usage","content":"There are multiple ways to add code blocks. Most of them works out of the box only the Hugo shortcode \u0026lt;highlight\u0026gt; need some configuration to work properly.\nInline code Code blocks Highlight shortcode Inline code To display an inline shortcode use single quotes:\n`some code` Example: some code\nCode blocks Code blocks can be uses without language specification:\n``` some code ``` Example:\nsome code \u0026hellip; or if you need language specific syntax highlighting:\n```Shell # some code echo \u0026#34;Hello world\u0026#34; ``` Example:\n# some code echo \u0026#34;Hello World\u0026#34; Highlight shortcode Hugo has a build-in shortcode for syntax highlighting. To work properly with this theme, you have to set following options in your site configuration:\nTOML pygmentsUseClasses=true pygmentsCodeFences=true YAML pygmentsUseClasses: true pygmentsCodeFences: true You can use it like every other shortcode:\n{{\u0026lt; highlight Shell \u0026#34;linenos=table\u0026#34; \u0026gt;}} # some code echo \u0026#34;Hello World\u0026#34; {{\u0026lt; /highlight \u0026gt;}} Example:\n1 2 # some code echo \u0026#34;Hello World\u0026#34; ","description":"There are multiple ways to add code blocks. Most of them works out of the box only the Hugo shortcode \u0026lt;highlight\u0026gt; need some configuration to work properly.\nInline code Code blocks Highlight shortcode Inline code To display an inline shortcode use single quotes:\n`some code` Example: some code\nCode blocks Code blocks can be uses without language specification:\n``` some code ``` Example:\nsome code \u0026hellip; or if you need language specific syntax highlighting:"},{"id":21,"href":"/hugo-geekdoc-github-example/usage/color-schemes/","title":"Color Schemes","parent":"Usage","content":"If you want to customize the color scheme of the theme to give it your individual touch you are just a few lines CSS away. In general, you have to override the defaults, the easiest way to do so is to create a static/custom.css file right in your site root.\nAll necessary class names are listed below. If you miss some classes required for a color scheme you are very welcome to create an Issue or Pull Request. For some inspiration you can have a look at https://www.color-hex.com/color-palettes/. The following listing use the HC-primary color palette as an example:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 /* default link color */ a { color: #1c388e; } a:visited { color: #73bfb8 } /* site header */ .gdoc-header { background: #e66a4e; border-color: #404040; } .gdoc-header__link, .gdoc-header__link:visited { color: #ffffff; } /* page links */ .gdoc-page__footer a, .gdoc-page__footer a:visited { color: #1c388e; } .gdoc-page__header a, .gdoc-page__header a:visited { color: #1c388e; } /* site footer */ .gdoc-footer { background: #404040; color: #ffffff; } .gdoc-footer__link{ color: #fecf50; } .gdoc-footer__link:visited, .gdoc-footer__link:hover { color: #fecf50; } /* custom shortcodes */ /* button */ .gdoc-button { color: #495057; } .gdoc-button:hover { background-color: #eb8771; border-color: #e66a4e; color: #ffffff; } /* hint */ .gdoc-hint.info { background: #d1d7e8; border-color: #324b99; color: black; } .gdoc-hint.warning { background: #fef5dc; border-color: #e4ba48; color: black; } .gdoc-hint.danger { background: #fae1db; border-color: #cf5f46; color: black; } And that is how the result will looks like. Happy customizing!\n","description":"If you want to customize the color scheme of the theme to give it your individual touch you are just a few lines CSS away. In general, you have to override the defaults, the easiest way to do so is to create a static/custom.css file right in your site root.\nAll necessary class names are listed below. If you miss some classes required for a color scheme you are very welcome to create an Issue or Pull Request."},{"id":22,"href":"/hugo-geekdoc-github-example/usage/menus/","title":"Menus","parent":"Usage","content":"The theme supports two different kinds of menus. File-tree menu is the default one and does not require further configuration to work. If you want full control about your menu the bundle menu is a powerful option to accomplish it.\nFile-tree menu Bundle menu More menu File-tree menu As the name already suggests, the file tree menu builds a menu from the file system structure of the content folder. By default, areas and subareas are sorted alphabetically by the title of the pages. To manipulate the order the weight parameter in a page front matter can be used. To structure your content folder you have to use page bundles, single files are not supported. Hugo will render build single files in the content folder just fine but it will not be added to the menu.\nExample:\nFile system structure:\ncontent/ ├── level-1 │ ├── _index.md │ ├── level-1-1.md │ ├── level-1-2.md │ └── level-1-3 │ ├── _index.md │ └── level-1-3-1.md └── level-2 ├── _index.md ├── level-2-1.md └── level-2-2.md Bundle menu This type of navigation needs to be enabled first by setting geekdocMenuBundle to true in your site configuration. After you have activated the bundle menu, you start with an empty navigation. This is intentional because bundle menus have to be defined manually in a data file. While this increases the effort it also offers maximum flexibility in the design. The data file needs to be written in YAML and placed at data/menu/main.yml.\nExample:\n--- main: - name: Level 1 ref: \u0026#34;/level-1\u0026#34; icon: \u0026#34;notification\u0026#34; sub: - name: Level 1.1 ref: \u0026#34;/level-1/level-1-1\u0026#34; - name: Level 1.2 ref: \u0026#34;/level-1/level-1-2\u0026#34; - name: Level 1.3 ref: \u0026#34;/level-1/level-1-3\u0026#34; sub: - name: Level 1.3.1 ref: \u0026#34;/level-1/level-1-3/level-1-3-1\u0026#34; - name: Level 2 ref: \u0026#34;/level-2\u0026#34; sub: - name: Level 2.1 ref: \u0026#34;/level-2/level-2-1\u0026#34; - name: Level 2.2 ref: \u0026#34;/level-2/level-2-2\u0026#34; As an advantage you can add icons to your menu entries e.g. icon: \u0026quot;notification\u0026quot;.\nMore menu Tip\nThe more menu is special type of the bundle menu and can be combined with the default file-tree menu. As this is a special type of the bundle menu it is basically working in the same way. To enable it just add a data file to data/menu/more.yml. The more menu will also work with the file-tree menu and therefor don\u0026rsquo;t need to be enabled by the geekdocMenuBundle parameter.\nExample:\n--- more: - name: News ref: \u0026#34;/#\u0026#34; icon: \u0026#34;notification\u0026#34; - name: Releases ref: \u0026#34;https://github.com/thegeeklab/hugo-geekdoc/releases\u0026#34; external: true icon: \u0026#34;download\u0026#34; - name: \u0026#34;View Source\u0026#34; ref: \u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; external: true icon: \u0026#34;github\u0026#34; ","description":"The theme supports two different kinds of menus. File-tree menu is the default one and does not require further configuration to work. If you want full control about your menu the bundle menu is a powerful option to accomplish it.\nFile-tree menu Bundle menu More menu File-tree menu As the name already suggests, the file tree menu builds a menu from the file system structure of the content folder. By default, areas and subareas are sorted alphabetically by the title of the pages."},{"id":23,"href":"/hugo-geekdoc-github-example/categories/","title":"Categories","parent":"Documentation","content":"","description":""},{"id":24,"href":"/hugo-geekdoc-github-example/collapse/","title":"Collapse","parent":"Documentation","content":"Demo collapsible menu entries.\n","description":"Demo collapsible menu entries."},{"id":25,"href":"/hugo-geekdoc-github-example/","title":"Documentation","parent":"","content":" Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme and may not fit the requirements of complex projects. If a more feature-complete theme is required there are a lot of got alternatives out there. You can find a demo and the full documentation at https://geekdocs.de.\nFeatures Clean and simple design Light and mobile-friendly Easy customization Zero initial configuration Handy shortcodes ","description":" Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme and may not fit the requirements of complex projects. If a more feature-complete theme is required there are a lot of got alternatives out there. You can find a demo and the full documentation at https://geekdocs.de.\nFeatures Clean and simple design Light and mobile-friendly Easy customization Zero initial configuration Handy shortcodes "},{"id":26,"href":"/hugo-geekdoc-github-example/collapse/level-1/level-1-1/","title":"Level 1.1","parent":"Level 1","content":"Level 1.1\n","description":"Level 1.1"},{"id":27,"href":"/hugo-geekdoc-github-example/toc-tree/level-1/level-1-1/","title":"Level 1.1","parent":"Level 1","content":"Level 1.1\n","description":"Level 1.1"},{"id":28,"href":"/hugo-geekdoc-github-example/collapse/level-1/level-1-2/","title":"Level 1.2","parent":"Level 1","content":"Level 1.2\n","description":"Level 1.2"},{"id":29,"href":"/hugo-geekdoc-github-example/toc-tree/level-1/level-1-2/","title":"Level 1.2","parent":"Level 1","content":"Level 1.2\n","description":"Level 1.2"},{"id":30,"href":"/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/","title":"Level 1.3","parent":"Level 1","content":"Level 1.3\nLevel 1.3.1 ","description":"Level 1.3\nLevel 1.3.1 "},{"id":31,"href":"/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/level-1-3-1/","title":"Level 1.3.1","parent":"Level 1.3","content":"Level 1.3.1\n","description":"Level 1.3.1"},{"id":32,"href":"/hugo-geekdoc-github-example/collapse/level-2/level-2-1/","title":"Level 2.1","parent":"Level 2","content":"Level 2.1\n","description":"Level 2.1"},{"id":33,"href":"/hugo-geekdoc-github-example/toc-tree/level-2/level-2-1/","title":"Level 2.1","parent":"Level 2","content":"Level 2.1\n","description":"Level 2.1"},{"id":34,"href":"/hugo-geekdoc-github-example/collapse/level-2/level-2-2/","title":"Level 2.2","parent":"Level 2","content":"Level 2.2\n","description":"Level 2.2"},{"id":35,"href":"/hugo-geekdoc-github-example/toc-tree/level-2/level-2-2/","title":"Level 2.2","parent":"Level 2","content":"Level 2.2\n","description":"Level 2.2"},{"id":36,"href":"/hugo-geekdoc-github-example/tags/","title":"Tags","parent":"Documentation","content":"","description":""},{"id":37,"href":"/hugo-geekdoc-github-example/toc-tree/","title":"ToC Tree","parent":"Documentation","content":"This is just a demo section for the toc-tree shortcode.\nLevel 1 Level 1.1 Level 1.2 Level 1.3 Level 1.3.1 Level 2 Level 2.1 Level 2.2 ","description":"This is just a demo section for the toc-tree shortcode.\nLevel 1 Level 1.1 Level 1.2 Level 1.3 Level 1.3.1 Level 2 Level 2.1 Level 2.2 "}] \ No newline at end of file +[{"id":0,"href":"/hugo-geekdoc-github-example/usage/getting-started/","title":"Getting Started","parent":"Usage","content":"This page tells you how to get started with the Geekdoc theme, including installation and basic configuration.\nInstall requirements Using the theme Option 1: Download pre-build release bundle Option 2: Clone the GitHub repository Deployments Netlify Use a Makefile Chain required commands Subdirectories Known Limitations Minify HTML results in spacing issues Install requirements You need a recent version of Hugo for local builds and previews of sites that use Geekdoc. As we are using webpack as pre-processor, the normal version of Hugo is sufficient. If you prefer the extended version of Hugo anyway this will work as well. For comprehensive Hugo documentation, see gohugo.io.\nIf you want to use the theme from a cloned branch instead of a release tarball you\u0026rsquo;ll need to install webpack locally and run the build script once to create all required assets.\n# install required packages from package.json npm install # run the build script to build required assets npm run build # build release tarball npm run pack Using the theme To prepare your new site environment just a few steps are required:\nCreate a new empty Hugo site.\nhugo new site demosite Switch to the root of the new site.\ncd demosite Install the Geekdoc theme from a release bundle (recommended) or from Git branch.\nCreate the minimal required Hugo configuration config.toml. For all configuration options take a look at the configuration page.\nbaseURL = \u0026#34;http://localhost\u0026#34; title = \u0026#34;Geekdocs\u0026#34; theme = \u0026#34;hugo-geekdoc\u0026#34; pluralizeListTitles = false # Geekdoc required configuration pygmentsUseClasses = true pygmentsCodeFences = true disablePathToLower = true # Required if you want to render robots.txt template enableRobotsTXT = true # Needed for mermaid shortcodes [markup] [markup.goldmark.renderer] # Needed for mermaid shortcode or when nesting shortcodes (e.g. img within # columns or tabs) unsafe = true [markup.tableOfContents] startLevel = 1 endLevel = 9 [taxonomies] tag = \u0026#34;tags\u0026#34; Test your site.\nhugo server -D The -D or --buildDrafts option is used to include content marked as draft during the build. It is used because content pages created with the hugo new content command have the draft flag set by default and this can lead to build errors in newly created projects. For projects with a production-ready content structure, this flag is not required in most cases and can be omitted.\nOption 1: Download pre-build release bundle Download and extract the latest release bundle into the theme directory.\nmkdir -p themes/hugo-geekdoc/ curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C themes/hugo-geekdoc/ --strip-components=1 Option 2: Clone the GitHub repository Keep in mind this method is not recommended and needs some extra steps to get it working. If you want to use the Theme as submodule keep in mind that your build process need to run the described steps as well. Clone the Geekdoc git repository.\ngit clone https://github.com/thegeeklab/hugo-geekdoc.git themes/hugo-geekdoc Build required theme assets e.g. CSS files and SVG sprites.\nnpm install npm run build Deployments Netlify There are several ways to deploy your site with this theme on Netlify. Regardless of which solution you choose, the main goal is to ensure that the prebuilt theme release tarball is used or to run the required commands to prepare the theme assets before running the Hugo build command.\nHere are some possible solutions:\nUse a Makefile Add a Makefile to your repository to bundle the required steps.\nThe Makefile is only an example. Depending on your project structure, BASEDIR or THEMEDIR may need to be adapted. # Please change the theme version to the latest release version. THEME_VERSION := v0.44.1 THEME := hugo-geekdoc BASEDIR := docs THEMEDIR := $(BASEDIR)/themes .PHONY: doc doc: doc-assets doc-build .PHONY: doc-assets doc-assets: mkdir -p $(THEMEDIR)/$(THEME)/ ; \\ curl -sSL \u0026#34;https://github.com/thegeeklab/$(THEME)/releases/download/${THEME_VERSION}/$(THEME).tar.gz\u0026#34; | tar -xz -C $(THEMEDIR)/$(THEME)/ --strip-components=1 .PHONY: doc-build doc-build: cd $(BASEDIR); hugo .PHONY: clean clean: rm -rf $(THEMEDIR) \u0026amp;\u0026amp; \\ rm -rf $(BASEDIR)/public This Makefile can be used in your netlify.toml, take a look at the Netlify example for more information:\n[build] publish = \u0026#34;docs/public\u0026#34; command = \u0026#34;make doc\u0026#34; Chain required commands Chain all required commands to prepare the theme and build your site on the command option in your netlify.toml like this:\n[build] publish = \u0026#34;docs/public\u0026#34; command = \u0026#34;command1 \u0026amp;\u0026amp; command 2 \u0026amp;\u0026amp; command3 \u0026amp;\u0026amp; hugo\u0026#34; Subdirectories As deploying Hugo sites on subdirectories is not as robust as on subdomains, we do not recommend this. If you have a choice, using a domain/subdomain should always be the preferred solution! If you want to deploy your site to a subdirectory of your domain, some extra steps are required:\nConfigure your Hugo base URL e.g. baseURL = http://localhost/demo/. Don\u0026rsquo;t use relativeURLs: false nor canonifyURLs: true as is can cause unwanted side effects! There are two ways to get Markdown links or images working:\nUse the absolute path including your subdirectory e.g. [testlink](/demo/example-site) Overwrite the HTML base in your site configuration with geekdocOverwriteHTMLBase = true and use the relative path e.g. [testlink](example-site) But there is another special case if you use geekdocOverwriteHTMLBase = true. If you use anchors in your Markdown links you have to ensure to always include the page path. As an example [testlink](#some-anchor) will resolve to http://localhost/demo/#some-anchor and not automatically include the current page!\nKnown Limitations Minify HTML results in spacing issues Using hugo --minify without further configuration or using other minify tools that also minify HTML files might result in spacing issues in the theme and is not supported.\nAfter some testing we decided to not spend effort to fix this issue for now as the benefit is very low. There are some parts of the theme where spaces between HTML elements matters but were stripped by minify tools. Some of these issues are related to gohugoio/hugo#6892. While recommendation like \u0026ldquo;don\u0026rsquo;t depend on whitespace in your layout\u0026rdquo; sounds reasonable, it seems to be not that straight forward especially for something like embedded icons into the text flow.\nIf you still want to use Hugo\u0026rsquo;s minify flag you should at least exclude HTML files in your site configuration as described in the Hugo documentation:\n[minify] disableHTML = true ","description":"This page tells you how to get started with the Geekdoc theme, including installation and basic configuration.\n"},{"id":1,"href":"/hugo-geekdoc-github-example/usage/","title":"Usage","parent":"Welcome to the documentation","content":"","description":""},{"id":2,"href":"/hugo-geekdoc-github-example/features/","title":"Features","parent":"Welcome to the documentation","content":"","description":""},{"id":3,"href":"/hugo-geekdoc-github-example/usage/configuration/","title":"Configuration","parent":"Usage","content":" Site configuration Page configuration Site configuration TOML baseURL = \u0026#34;http://localhost\u0026#34; title = \u0026#34;Geekdocs\u0026#34; theme = \u0026#34;hugo-geekdoc\u0026#34; # Required to get well formatted code blocks pygmentsUseClasses = true 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 or when nesting shortcodes (e.g. img within # columns or tabs) unsafe = true [markup.tableOfContents] startLevel = 1 endLevel = 9 [taxonomies] tag = \u0026#34;tags\u0026#34; [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/) # You can also specify this parameter per page in front matter. geekdocToC = 3 # (Optional, default static/brand.svg) Set the path to a logo for the Geekdoc # relative to your \u0026#39;static/\u0026#39; folder. geekdocLogo = \u0026#34;logo.png\u0026#34; # (Optional, default false) Render menu from data file in \u0026#39;data/menu/main.yaml\u0026#39;. # See also https://geekdocs.de/usage/menus/#bundle-menu. geekdocMenuBundle = true # (Optional, default false) Collapse all menu entries, can not be overwritten # per page if enabled. Can be enabled per page via \u0026#39;geekdocCollapseSection\u0026#39;. geekdocCollapseAllSections = true # (Optional, default true) Show page navigation links at the bottom of each docs page. geekdocNextPrev = false # (Optional, default true) Show a breadcrumb navigation bar at the top of each docs page. # You can also specify this parameter per page in front matter. geekdocBreadcrumb = false # (Optional, default none) Set source repository location. Used for \u0026#39;Edit page\u0026#39; links. # You can also specify this parameter per page in front matter. geekdocRepo = \u0026#34;https://github.com/thegeeklab/hugo\u0026#34; # (Optional, default none) Enable \u0026#39;Edit page\u0026#39; links. Requires \u0026#39;geekdocRepo\u0026#39; param # and the path must point to the parent directory of the \u0026#39;content\u0026#39; folder. # You can also specify this parameter per page in front matter. geekdocEditPath = \u0026#34;edit/main/exampleSite\u0026#34; # (Optional, default true) Enables search function with flexsearch. # Index is built on the fly and might slow down your website. geekdocSearch = false # (Optional, default false) Display search results with the parent folder as prefix. This # option allows you to distinguish between files with the same name in different folders. # NOTE: This parameter only applies when \u0026#39;geekdocSearch = true\u0026#39;. geekdocSearchShowParent = true # (Optional, default none) Add a link to your Legal Notice page to the site footer. # It can be either a remote url or a local file path relative to your content directory. geekdocLegalNotice = \u0026#34;https://blog.example.com/legal\u0026#34; # (Optional, default none) Add a link to your Privacy Policy page to the site footer. # It can be either a remote url or a local file path relative to your content directory. geekdocPrivacyPolicy = \u0026#34;/privacy\u0026#34; # (Optional, default true) Add an anchor link to headlines. geekdocAnchor = true # (Optional, default true) Copy anchor url to clipboard on click. geekdocAnchorCopy = true # (Optional, default true) Enable or disable image lazy loading for images rendered # by the \u0026#39;img\u0026#39; shortcode. geekdocImageLazyLoading = true # (Optional, default false) Set HTMl \u0026lt;base\u0026gt; to .Site.Home.Permalink if enabled. It might be required # if a subdirectory is used within Hugos BaseURL. # See https://developer.mozilla.org/de/docs/Web/HTML/Element/base. geekdocOverwriteHTMLBase = false # (Optional, default true) Enable or disable the JavaScript based color theme toggle switch. The CSS based # user preference mode still works. geekdocDarkModeToggle = false # (Optional, default false) Auto-decrease brightness of images and add a slightly grayscale to avoid # bright spots while using the dark mode. geekdocDarkModeDim = false # (Optional, default false) Enforce code blocks to always use the dark color theme. geekdocDarkModeCode = false # (Optional, default true) Display a \u0026#34;Back to top\u0026#34; 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 # (Optional, default \u0026#39;title\u0026#39;) Configure how to sort file-tree menu entries. Possible options are \u0026#39;title\u0026#39;, \u0026#39;linktitle\u0026#39;, # \u0026#39;date\u0026#39;, \u0026#39;publishdate\u0026#39;, \u0026#39;expirydate\u0026#39; or \u0026#39;lastmod\u0026#39;. Every option can be used with a reverse modifier as well # e.g. \u0026#39;title_reverse\u0026#39;. geekdocFileTreeSortBy = \u0026#34;title\u0026#34; # (Optional, default none) Adds a \u0026#34;Content licensed under \u0026lt;license\u0026gt;\u0026#34; line to the footer. # Could be used if you want to define a default license for your content. [params.geekdocContentLicense] name = \u0026#34;CC BY-SA 4.0\u0026#34; link = \u0026#34;https://creativecommons.org/licenses/by-sa/4.0/\u0026#34; YAML --- baseURL: \u0026#34;http://localhost\u0026#34; title: \u0026#34;Geekdocs\u0026#34; theme: \u0026#34;hugo-geekdoc\u0026#34; # Required to get well formatted code blocks pygmentsUseClasses: true pygmentsCodeFences: true disablePathToLower: true enableGitInfo: true # Required if you want to render robots.txt template enableRobotsTXT: true markup: goldmark: # Needed for mermaid shortcode or when nesting shortcodes (e.g. img within # columns or tabs) renderer: unsafe: true tableOfContents: 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/) # You can also specify this parameter per page in front matter. geekdocToC: 3 # (Optional, default static/brand.svg) Set the path to a logo for the Geekdoc # relative to your \u0026#39;static/\u0026#39; folder. geekdocLogo: logo.png # (Optional, default false) Render menu from data file in \u0026#39;data/menu/main.yaml\u0026#39;. # See also https://geekdocs.de/usage/menus/#bundle-menu. geekdocMenuBundle: true # (Optional, default false) Collapse all menu entries, can not be overwritten # per page if enabled. Can be enabled per page via \u0026#39;geekdocCollapseSection\u0026#39;. geekdocCollapseAllSections: true # (Optional, default true) Show page navigation links at the bottom of each docs page. geekdocNextPrev: false # (Optional, default true) Show a breadcrumb navigation bar at the top of each docs page. # You can also specify this parameter per page in front matter. geekdocBreadcrumb: false # (Optional, default none) Set source repository location. Used for \u0026#39;Edit page\u0026#39; links. # You can also specify this parameter per page in front matter. geekdocRepo: \u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; # (Optional, default none) Enable \u0026#39;Edit page\u0026#39; links. Requires \u0026#39;geekdocRepo\u0026#39; param # and the path must point to the parent directory of the \u0026#39;content\u0026#39; folder. # You can also specify this parameter per page in front matter. geekdocEditPath: edit/main/exampleSite # (Optional, default true) Enables search function with flexsearch. # Index is built on the fly and might slow down your website. geekdocSearch: false # (Optional, default false) Display search results with the parent folder as prefix. This # option allows you to distinguish between files with the same name in different folders. # NOTE: This parameter only applies when \u0026#39;geekdocSearch: true\u0026#39;. geekdocSearchShowParent: true # (Optional, default none) Add a link to your Legal Notice page to the site footer. # It can be either a remote url or a local file path relative to your content directory. geekdocLegalNotice: \u0026#34;https://blog.example.com/legal\u0026#34; # (Optional, default none) Add a link to your Privacy Policy page to the site footer. # It can be either a remote url or a local file path relative to your content directory. geekdocPrivacyPolicy: \u0026#34;/privacy\u0026#34; # (Optional, default true) Add an anchor link to headlines. geekdocAnchor: true # (Optional, default true) Copy anchor url to clipboard on click. geekdocAnchorCopy: true # (Optional, default true) Enable or disable image lazy loading for images rendered # by the \u0026#39;img\u0026#39; shortcode. geekdocImageLazyLoading: true # (Optional, default false) Set HTMl \u0026lt;base\u0026gt; to .Site.Home.Permalink if enabled. It might be required # if a subdirectory is used within Hugos BaseURL. # See https://developer.mozilla.org/de/docs/Web/HTML/Element/base. geekdocOverwriteHTMLBase: false # (Optional, default true) Enable or disable the JavaScript based color theme toggle switch. The CSS based # user preference mode still works. geekdocDarkModeToggle: false # (Optional, default false) Auto-decrease brightness of images and add a slightly grayscale to avoid # bright spots while using the dark mode. geekdocDarkModeDim: false # (Optional, default false) Enforce code blocks to always use the dark color theme. geekdocDarkModeCode: false # (Optional, default true) Display a \u0026#34;Back to top\u0026#34; 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 # (Optional, default \u0026#39;title\u0026#39;) Configure how to sort file-tree menu entries. Possible options are \u0026#39;title\u0026#39;, \u0026#39;linktitle\u0026#39;, # \u0026#39;date\u0026#39;, \u0026#39;publishdate\u0026#39;, \u0026#39;expirydate\u0026#39; or \u0026#39;lastmod\u0026#39;. Every option can be used with a reverse modifier as well # e.g. \u0026#39;title_reverse\u0026#39;. geekdocFileTreeSortBy: \u0026#34;title\u0026#34; # (Optional, default none) Adds a \u0026#34;Content licensed under \u0026lt;license\u0026gt;\u0026#34; line to the footer. # Could be used if you want to define a default license for your content. geekdocContentLicense: name: CC BY-SA 4.0 link: https://creativecommons.org/licenses/by-sa/4.0/ Page configuration TOML # Set type to \u0026#39;posts\u0026#39; if you want to render page as blogpost type = \u0026#34;posts\u0026#34; # Hugo predefined front matter variable, to re-arrange items in file-tree menu # See weights section of # https://gohugo.io/content-management/front-matter/#predefined weight = 10 # Set how many table of contents levels to be showed on page. geekdocToC = 3 # Set a description for the current page. This will be shown in toc-trees objects. geekdocDescription = # Set false to hide the whole left navigation sidebar. Beware that it will make # navigation pretty hard without adding some kind of on-page navigation. geekdocNav = true # Show a breadcrumb navigation bar at the top of each docs page. geekdocBreadcrumb = false # Set source repository location. geekdocRepo = \u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; # Enable \u0026#39;Edit page\u0026#39; links. Requires \u0026#39;geekdocRepo\u0026#39; param and the path must point to # the parent directory of the \u0026#39;content\u0026#39; folder. geekdocEditPath = \u0026#34;edit/main/exampleSite\u0026#34; # Used for \u0026#39;Edit page\u0026#39; link, set to \u0026#39;.File.Path\u0026#39; by default. # Can be overwritten by a path relative to \u0026#39;geekdocEditPath\u0026#39; geekdocFilePath = # Set to mark page as flat section (file-tree menu only). geekdocFlatSection = true # Set true to hide page or section from side menu (file-tree menu only). geekdocHidden = true # Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar. # NOTE: Only applies when \u0026#39;geekdocHidden = true\u0026#39;. geekdocHiddenTocTree = true # Set to true to make a section foldable in side menu. geekdocCollapseSection = true # Add an anchor link to headlines. geekdocAnchor = true # If you have protected some pages with e.g. basic authentication you may want to exclude these pages # from data file, otherwise information may be leaked. Setting this parameter to \u0026#39;true\u0026#39; will exclude the # page from search data, feeds, etc. # WARNING: Consider hosting a standalone, fully auth-protected static page for secret information instead! geekdocProtected = false # Set \u0026#39;left\u0026#39; (default), \u0026#39;center\u0026#39; or \u0026#39;right\u0026#39; to configure the text align of a page. geekdocAlign = \u0026#34;left\u0026#34; YAML # Set type to \u0026#39;posts\u0026#39; if you want to render page as blogpost. type: \u0026#34;posts\u0026#34; # Set page weight to re-arrange items in file-tree menu. weight: 10 # Set how many table of contents levels to be showed on page. geekdocToC: 3 # Set a description for the current page. This will be shown in toc-trees objects. geekdocDescription: # Set false to hide the whole left navigation sidebar. Beware that it will make # navigation pretty hard without adding some kind of on-page navigation. geekdocNav: true # Show a breadcrumb navigation bar at the top of each docs page. geekdocBreadcrumb: false # Set source repository location. geekdocRepo: \u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; # Enable \u0026#39;Edit page\u0026#39; links. Requires \u0026#39;geekdocRepo\u0026#39; param and the path must point to # the parent directory of the \u0026#39;content\u0026#39; folder. geekdocEditPath: \u0026#34;edit/main/exampleSite\u0026#34; # Used for \u0026#39;Edit page\u0026#39; link, set to \u0026#39;.File.Path\u0026#39; by default. # Can be overwritten by a path relative to \u0026#39;geekdocEditPath\u0026#39; geekdocFilePath: # Set to mark page as flat section (file-tree menu only). geekdocFlatSection: true # Set true to hide page or section from side menu (file-tree menu only). geekdocHidden: true # Set false to show this page as a file-tree menu entry when you want it to be hidden in the sidebar. # NOTE: Only applies when \u0026#39;geekdocHidden: true\u0026#39;. geekdocHiddenTocTree: true # Set to true to make a section foldable in side menu. geekdocCollapseSection: true # Add an anchor link to headlines. geekdocAnchor: true # If you have protected some pages with e.g. basic authentication you may want to exclude these pages # from data file, otherwise information may be leaked. Setting this parameter to \u0026#39;true\u0026#39; will exclude the # page from search data, feeds, etc. # WARNING: Consider hosting a standalone, fully auth-protected static page for secret information instead! geekdocProtected: false # Set \u0026#39;left\u0026#39; (default), \u0026#39;center\u0026#39; or \u0026#39;right\u0026#39; to configure the text align of a page. geekdocAlign: \u0026#34;left\u0026#34; ","description":"Site configuration Page configuration Site configuration TOML baseURL = \u0026#34;http://localhost\u0026#34; title = \u0026#34;Geekdocs\u0026#34; theme = \u0026#34;hugo-geekdoc\u0026#34; # Required to get well formatted code blocks pygmentsUseClasses = true 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 or when nesting shortcodes (e.g. img within # columns or tabs) unsafe = true [markup."},{"id":4,"href":"/hugo-geekdoc-github-example/shortcodes/","title":"Shortcodes","parent":"Welcome to the documentation","content":"","description":""},{"id":5,"href":"/hugo-geekdoc-github-example/posts/","title":"News","parent":"Welcome to the documentation","content":"","description":""},{"id":6,"href":"/hugo-geekdoc-github-example/posts/initial-release/","title":"Initial release","parent":"News","content":"This is the first release of the Geekdoc theme.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\n","description":"This is the first release of the Geekdoc theme.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo."},{"id":7,"href":"/hugo-geekdoc-github-example/tags/Documentation/","title":"Documentation","parent":"Tags","content":"","description":""},{"id":8,"href":"/hugo-geekdoc-github-example/posts/hello_geekdoc/","title":"Hello Geekdoc","parent":"News","content":"This is the first release of the Geekdoc theme.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nAmalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram. Que no rota alters, ad sea sues exercise main rum, cu diam mas facility sea.\n","description":"This is the first release of the Geekdoc theme.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nAmalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim."},{"id":9,"href":"/hugo-geekdoc-github-example/tags/","title":"Tags","parent":"Welcome to the documentation","content":"","description":""},{"id":10,"href":"/hugo-geekdoc-github-example/tags/Updates/","title":"Updates","parent":"Tags","content":"","description":""},{"id":11,"href":"/hugo-geekdoc-github-example/_includes/","title":"Includes","parent":"Welcome to the documentation","content":"","description":""},{"id":12,"href":"/hugo-geekdoc-github-example/_includes/include-page/","title":"Include Page","parent":"Includes","content":"Example page include\nExample Shortcode\nShortcode used in an include page. Head 1 Head 2 Head 3 1 2 3 ","description":"Example page include\nExample Shortcode\nShortcode used in an include page. Head 1 Head 2 Head 3 1 2 3 "},{"id":13,"href":"/hugo-geekdoc-github-example/collapse/level-1/","title":"Level 1","parent":"Collapse","content":"Level 1\nLevel 1.1 Level 1.2 ","description":"Level 1\nLevel 1.1 Level 1.2 "},{"id":14,"href":"/hugo-geekdoc-github-example/collapse/level-2/","title":"Level 2","parent":"Collapse","content":"Level-2\n","description":"Level-2"},{"id":15,"href":"/hugo-geekdoc-github-example/toc-tree/level-1/","title":"Level 1","parent":"ToC-Tree","content":"Level 1\nLevel 1.1 Level 1.2 Level 1.3 Level 1.3.1 ","description":"Level 1\nLevel 1.1 Level 1.2 Level 1.3 Level 1.3.1 "},{"id":16,"href":"/hugo-geekdoc-github-example/toc-tree/level-2/","title":"Level 2","parent":"ToC-Tree","content":"Level-2\n","description":"Level-2"},{"id":17,"href":"/hugo-geekdoc-github-example/asciidoc/admonition-icons/","title":"Admonition Icons","parent":"Asciidoc","content":" By default, the admonition is rendered with a plain text label. To enable font icons the document attribute :icons: font need to be set.\nExample Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. ","description":"By default, the admonition is rendered with a plain text label. To enable font icons the document attribute :icons: font need to be set.\nExample Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re."},{"id":18,"href":"/hugo-geekdoc-github-example/asciidoc/admonitions/","title":"Admonitions","parent":"Asciidoc","content":" Admonition types Example Admonition icons Example Admonition types There are certain statements you may want to draw attention to by taking them out of the content’s flow and labeling them with a priority. These are called admonitions.\n[NOTE|TIP|IMPORTANT|CAUTION|WARNING] Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Example Note Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Tip Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Important Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Caution Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Warning Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.\nRomanesque acclimates investiture.\nAdmonition icons Icons can be added by setting a unicode glyph or a character reference to the tip-caption attribute:\n:tip-caption: 💡 [TIP] It\u0026#39;s possible to use Unicode glyphs as admonition icons. :tip-caption: pass:[\u0026amp;#128293;] [TIP] It\u0026#39;s possible to use Unicode glyphs as admonition icons. Example 💡 It’s possible to use Unicode glyphs as admonition icons. 🔥 It’s possible to use Unicode glyphs as admonition icons. ","description":"Admonition types Example Admonition icons Example Admonition types There are certain statements you may want to draw attention to by taking them out of the content’s flow and labeling them with a priority. These are called admonitions.\n[NOTE|TIP|IMPORTANT|CAUTION|WARNING] Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Example Note Dolor sit, sumo unique argument um no."},{"id":19,"href":"/hugo-geekdoc-github-example/asciidoc/","title":"Asciidoc","parent":"Welcome to the documentation","content":"","description":""},{"id":20,"href":"/hugo-geekdoc-github-example/shortcodes/avatar/","title":"Avatar","parent":"Shortcodes","content":"The avatar shortcode is another custom image shortcode.\nUsage Define a resource in the page front matter.\n--- resources: - name: avatar src: \u0026#34;images/avatar.jpg\u0026#34; title: \u0026#34;Avatar\u0026#34; --- {{\u0026lt; avatar name=\u0026#34;avatar\u0026#34; \u0026gt;}} Attributes alt optional string Description text for the image. Default: none anchor optional string Anchor to determine the placement of the crop box. Default: none name required string Name of the image resource defined in page front matter. Default: none size optional string Thumbnail size. Supported values are origin|tiny|small|medium|large. Default: none Example ","description":"The avatar shortcode is another custom image shortcode.\n"},{"id":21,"href":"/hugo-geekdoc-github-example/shortcodes/buttons/","title":"Buttons","parent":"Shortcodes","content":"Buttons are styled links that can lead to local page or external link.\nUsage {{\u0026lt; button relref=\u0026#34;/\u0026#34; [class=\u0026#34;...\u0026#34;, size=\u0026#34;large|regular\u0026#34;] \u0026gt;}}Get Home{{\u0026lt; /button \u0026gt;}} {{\u0026lt; button href=\u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; \u0026gt;}}Contribute{{\u0026lt; /button \u0026gt;}} Attributes class optional list List of space-separated CSS class names to apply. Default: none href optional string The URL to use as target of the button. Default: none relref optional string Executes the relref Hugo function to resolve the relative permalink of the specified page. The result is set as the target of the button. Default: none size optional string Preset of different button sizes. Supported values are regular|large. Default: none Example Get Home Contribute ","description":"Buttons are styled links that can lead to local page or external link.\nUsage {{\u0026lt; button relref=\u0026#34;/\u0026#34; [class=\u0026#34;...\u0026#34;, size=\u0026#34;large|regular\u0026#34;] \u0026gt;}}Get Home{{\u0026lt; /button \u0026gt;}} {{\u0026lt; button href=\u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; \u0026gt;}}Contribute{{\u0026lt; /button \u0026gt;}} Attributes class optional list List of space-separated CSS class names to apply. Default: none href optional string The URL to use as target of the button. Default: none relref optional string Executes the relref Hugo function to resolve the relative permalink of the specified page."},{"id":22,"href":"/hugo-geekdoc-github-example/features/code-blocks/","title":"Code Blocks","parent":"Features","content":"There are several ways to add code blocks. Most of them work out of the box, only the Hugo shortcode \u0026lt;highlight\u0026gt; needs to be configured to work properly. The theme also provides some additional features like a copy button and an option to set the maximum length of code blocks. Both of these functions and the dependent formatting rely on the .highlight CSS class. You must ensure that you always assign a language to your code blocks if you want to use these functions. If you do not want to apply syntax highlighting, you can also specify plain or text as the language.\nInline code Code blocks Highlight shortcode Gist Shortcode Inline code To display an inline shortcode use single quotes:\n`some code` Example: some code with a link\nCode blocks Code blocks can be uses without language specification:\n```plain some code ``` Example:\nsome code \u0026hellip; or if you need language specific syntax highlighting:\n```shell # some code echo \u0026#34;Hello world\u0026#34; ``` Example:\n# some code echo \u0026#34;Hello World\u0026#34; Highlight shortcode Hugo has a build-in shortcode for syntax highlighting. To work properly with this theme, you have to set following options in your site configuration:\nTOML pygmentsUseClasses=true pygmentsCodeFences=true YAML pygmentsUseClasses: true pygmentsCodeFences: true You can use it like every other shortcode:\n{{\u0026lt; highlight Shell \u0026#34;linenos=table\u0026#34; \u0026gt;}} # some code echo \u0026#34;Hello World\u0026#34; {{\u0026lt; /highlight \u0026gt;}} Example:\n1 2 # some code echo \u0026#34;Hello World\u0026#34; Gist Shortcode The Gist shortcode is a built-in Hugo shortcode to load GitHub gists. For details usage information please check the Hugo documentation.\n{{\u0026lt; gist spf13 7896402 \u0026gt;}} Example:\n","description":"There are several ways to add code blocks. Most of them work out of the box, only the Hugo shortcode \u0026lt;highlight\u0026gt; needs to be configured to work properly. The theme also provides some additional features like a copy button and an option to set the maximum length of code blocks. Both of these functions and the dependent formatting rely on the .highlight CSS class. You must ensure that you always assign a language to your code blocks if you want to use these functions."},{"id":23,"href":"/hugo-geekdoc-github-example/collapse/","title":"Collapse","parent":"Welcome to the documentation","content":"Demo collapsible menu entries.\n","description":"Demo collapsible menu entries."},{"id":24,"href":"/hugo-geekdoc-github-example/shortcodes/columns/","title":"Columns","parent":"Shortcodes","content":"The Columns shortcode can be used to organize content side-by-side (horizontally) for better readability.\nUsage {{\u0026lt; columns \u0026gt;}} \u0026lt;!-- begin columns block --\u0026gt; ## Left Content Dolor sit, sumo unique argument um no ... \u0026lt;---\u0026gt; \u0026lt;!-- magic separator, between columns --\u0026gt; ## Mid Content Dolor sit, sumo unique argument um no ... \u0026lt;---\u0026gt; \u0026lt;!-- magic separator, between columns --\u0026gt; ## Right Content Dolor sit, sumo unique argument um no ... {{\u0026lt; /columns \u0026gt;}} Attributes size optional string Preset of different sizes for the first column. Supported values are small|regular|large. Default: regular Example Left Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nMid Content Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.\nRight Content Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\n","description":"The Columns shortcode can be used to organize content side-by-side (horizontally) for better readability.\nUsage {{\u0026lt; columns \u0026gt;}} \u0026lt;!-- begin columns block --\u0026gt; ## Left Content Dolor sit, sumo unique argument um no ... \u0026lt;---\u0026gt; \u0026lt;!-- magic separator, between columns --\u0026gt; ## Mid Content Dolor sit, sumo unique argument um no ... \u0026lt;---\u0026gt; \u0026lt;!-- magic separator, between columns --\u0026gt; ## Right Content Dolor sit, sumo unique argument um no ... {{\u0026lt; /columns \u0026gt;}} Attributes size optional string Preset of different sizes for the first column."},{"id":25,"href":"/hugo-geekdoc-github-example/features/dark-mode/","title":"Dark Mode","parent":"Features","content":"Say hello to the dark mode of the Geekdoc theme!\nThe dark mode can be used in two different ways. If you have JavaScript disabled in your browser, the dark mode automatically detects the preferred system settings via the prefers-color-scheme parameter. Depending on the value, the theme will automatically switch between dark and light mode if this feature is supported by your operating system and browser.\nThe second mode requires JavaScript and is controlled by a dark mode switch in the upper right corner. You can switch between three modes: Auto, Dark and Light. Auto mode works the same as the first method mentioned above and automatically detects the system setting. Dark and Light modes allow you to force one of them for your Geekdoc page only, regardless of the system setting. This works even if your browser or operating system does not support the system setting. The current selection is stored locally via the Web Storage API.\nTo avoid very bright spots often caused by images while using the dark mode we have added an optional auto-dim feature that can be enabled with the site parameter geekdocDarkModeDim (see Configuration). As this may have an impact on the quality of the images it is disabled by default.\n","description":"Say hello to the dark mode of the Geekdoc theme!\nThe dark mode can be used in two different ways. If you have JavaScript disabled in your browser, the dark mode automatically detects the preferred system settings via the prefers-color-scheme parameter. Depending on the value, the theme will automatically switch between dark and light mode if this feature is supported by your operating system and browser.\nThe second mode requires JavaScript and is controlled by a dark mode switch in the upper right corner."},{"id":26,"href":"/hugo-geekdoc-github-example/shortcodes/expand/","title":"Expand","parent":"Shortcodes","content":"Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it.\nUsage {{\u0026lt; expand \u0026gt;}} ### Markdown content Dolor sit, sumo unique ... {{\u0026lt; /expand \u0026gt;}} It is also possible to use a custom label and symbol.\n{{\u0026lt; expand \u0026#34;Custom Label\u0026#34; \u0026#34;...\u0026#34; \u0026gt;}} ### More markdown Dolor sit, sumo unique ... {{\u0026lt; /expand \u0026gt;}} Example Expand ↕ Markdown content Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.\nCustom Label ... More markdown Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\n","description":"Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it.\nUsage {{\u0026lt; expand \u0026gt;}} ### Markdown content Dolor sit, sumo unique ... {{\u0026lt; /expand \u0026gt;}} It is also possible to use a custom label and symbol.\n{{\u0026lt; expand \u0026#34;Custom Label\u0026#34; \u0026#34;...\u0026#34; \u0026gt;}} ### More markdown Dolor sit, sumo unique ... {{\u0026lt; /expand \u0026gt;}} Example Expand ↕ Markdown content Dolor sit, sumo unique argument um no."},{"id":27,"href":"/hugo-geekdoc-github-example/shortcodes/hints/","title":"Hints","parent":"Shortcodes","content":"Hint shortcode can be used as hint/alerts/notification block.\nUsage {{\u0026lt; hint type=[note|tip|important|caution|warning] (icon=gdoc_github) (title=GitHub) \u0026gt;}} **Markdown content**\\ Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. {{\u0026lt; /hint \u0026gt;}} Attributes icon optional string Icon to use. The value need to be an icon from an SVG sprite. Default: none title optional string Title text of the hint. Default: none type optional string Type of the hint. Supported values are note|tip|important|caution|warning. Default: note Example Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.\nRomanesque acclimates investiture.\nExample with a custom icon and title:\nGitHub Markdown content\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. ","description":"Hint shortcode can be used as hint/alerts/notification block.\nUsage {{\u0026lt; hint type=[note|tip|important|caution|warning] (icon=gdoc_github) (title=GitHub) \u0026gt;}} **Markdown content**\\ Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. {{\u0026lt; /hint \u0026gt;}} Attributes icon optional string Icon to use. The value need to be an icon from an SVG sprite. Default: none title optional string Title text of the hint."},{"id":28,"href":"/hugo-geekdoc-github-example/features/icon-sets/","title":"Icon Sets","parent":"Features","content":" Custom icon sets Build-in icons Custom icon sets The only supported source for custom icons are SVG sprites. Some icon frameworks provides ready to use sprites e.g. FontAwesome. If the framework don\u0026rsquo;t provide sprites, you can create your own from raw SVG icons. There are a lot of tools available to create sprites, please choose one that fits your need. One solution could be svgsprit.es.\nRegardless of which tool (or existing sprite) you choose, there are a few requirements that must be met:\nThe sprite must be a valid SVG file. You have to ensure to hide the sprite. Apply the predefined class svg-sprite or hidden to the root element of your sprite or add a small piece of inline CSS e.g. style=\u0026quot;display: none;\u0026quot;. Save the sprite to the folder assets/sprites right beside your content folder. The result of a valid minimal SVG sprite file could look like this:\n\u0026lt;svg class=\u0026#34;svg-sprite\u0026#34; xmlns=\u0026#34;http://www.w3.org/2000/svg\u0026#34; xmlns:xlink=\u0026#34;http://www.w3.org/1999/xlink\u0026#34;\u0026gt; \u0026lt;symbol viewBox=\u0026#34;-2.29 -2.29 28.57 28.57\u0026#34; id=\u0026#34;arrow_back\u0026#34; xmlns=\u0026#34;http://www.w3.org/2000/svg\u0026#34;\u0026gt; \u0026lt;path d=\u0026#34;M24 10.526v2.947H5.755l8.351 8.421-2.105 2.105-12-12 12-12 2.105 2.105-8.351 8.421H24z\u0026#34;/\u0026gt; \u0026lt;/symbol\u0026gt; \u0026lt;/svg\u0026gt; Example:\nFontAwesome provides three pre-build sprites included in the regular Web download pack, sprites/brands.svg, sprites/regular.svg and sprites/solid.svg. Choose your sprite to use and copy it to your projects root directory into assets/sprites, right beside your content folder:\nmy_projcet/ ├── assets │ └── sprites │ └── regular.svg ├── config.yaml ├── content │ ├── _index.md │ ├── ... That\u0026rsquo;s it! The theme will auto-load all available SVG sprites provided in the assets folder. To use the icons e.g. in the bundle menu, you need to lookup the id of the icon. An example would be thumbs-up . There is also a shortcode available.\nBuild-in icons The theme bundles just a small set of hand crafted icons.\n","description":"Custom icon sets Build-in icons Custom icon sets The only supported source for custom icons are SVG sprites. Some icon frameworks provides ready to use sprites e.g. FontAwesome. If the framework don\u0026rsquo;t provide sprites, you can create your own from raw SVG icons. There are a lot of tools available to create sprites, please choose one that fits your need. One solution could be svgsprit.es.\nRegardless of which tool (or existing sprite) you choose, there are a few requirements that must be met:"},{"id":29,"href":"/hugo-geekdoc-github-example/shortcodes/icons/","title":"Icons","parent":"Shortcodes","content":"Simple shortcode to include icons from SVG sprites outside of menus.\nUsage {{\u0026lt; icon \u0026#34;thumbs-up\u0026#34; \u0026gt;}} Example Output Code {{\u0026lt; icon \u0026quot;thumbs-up\u0026quot; \u0026gt;}} {{\u0026lt; icon \u0026quot;thumbs-down\u0026quot; \u0026gt;}} {{\u0026lt; icon \u0026quot;laugh\u0026quot; \u0026gt;}} {{\u0026lt; icon \u0026quot;lemon\u0026quot; \u0026gt;}} {{\u0026lt; icon \u0026quot;moon\u0026quot; \u0026gt;}} ","description":"Simple shortcode to include icons from SVG sprites outside of menus.\nUsage {{\u0026lt; icon \u0026#34;thumbs-up\u0026#34; \u0026gt;}} Example Output Code {{\u0026lt; icon \u0026quot;thumbs-up\u0026quot; \u0026gt;}} {{\u0026lt; icon \u0026quot;thumbs-down\u0026quot; \u0026gt;}} {{\u0026lt; icon \u0026quot;laugh\u0026quot; \u0026gt;}} {{\u0026lt; icon \u0026quot;lemon\u0026quot; \u0026gt;}} {{\u0026lt; icon \u0026quot;moon\u0026quot; \u0026gt;}} "},{"id":30,"href":"/hugo-geekdoc-github-example/shortcodes/images/","title":"Images","parent":"Shortcodes","content":"If you need more flexibility for your embedded images, you could use the img shortcode. It is using Hugo\u0026rsquo;s page resources and supports lazy loading of your images.\nUsage Define your resources in the page front matter, custom parameter params.credits is optional.\n--- resources: - name: forest-1 src: \u0026#34;forest-1.jpg\u0026#34; title: Forest (1) params: credits: \u0026#34;[Jay Mantri](https://unsplash.com/@jaymantri) on [Unsplash](https://unsplash.com/s/photos/forest)\u0026#34; --- {{\u0026lt; img name=\u0026#34;forest-1\u0026#34; size=\u0026#34;large\u0026#34; lazy=false \u0026gt;}} Attributes alt optional string Description text for the image. Default: none lazy optional bool Enable/disable lazy loading for the image. Default: true name required string Name of the image resource defined in page front matter. Default: none size optional string Thumbnail size. Supported values are origin|tiny|small|medium|large. Default: none Example Forest (1) (Jay Mantri on Unsplash) Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nForest (2) (Jay Mantri on Unsplash) Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nForest (3) (Jay Mantri on Unsplash) Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nForest (4) (Jay Mantri on Unsplash) Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nForest (5) (Jay Mantri on Unsplash) Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nForest (6) (Asher Ward on Unsplash) Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nForest (7) (Asher Ward on Unsplash) Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nForest (8) (SVG Repo on SVGRepo) ","description":"If you need more flexibility for your embedded images, you could use the img shortcode. It is using Hugo\u0026rsquo;s page resources and supports lazy loading of your images.\nUsage Define your resources in the page front matter, custom parameter params.credits is optional.\n--- resources: - name: forest-1 src: \u0026#34;forest-1.jpg\u0026#34; title: Forest (1) params: credits: \u0026#34;[Jay Mantri](https://unsplash.com/@jaymantri) on [Unsplash](https://unsplash.com/s/photos/forest)\u0026#34; --- {{\u0026lt; img name=\u0026#34;forest-1\u0026#34; size=\u0026#34;large\u0026#34; lazy=false \u0026gt;}} Attributes alt optional string Description text for the image."},{"id":31,"href":"/hugo-geekdoc-github-example/shortcodes/includes/","title":"Includes","parent":"Shortcodes","content":"Include shortcode can include files of different types. By specifying a language, the included file will have syntax highlighting.\nUsage {{\u0026lt; include file=\u0026#34;relative/path/from/hugo/root\u0026#34; language=\u0026#34;go\u0026#34; \u0026gt;}} Attributes file required string Path of the file (relative to the Hugo root) to include. Default: none language optional string Language for syntax highlighting. Default: none options optional bool highlighting options. Default: linenos=table type optional string Special include type. Supported values are html|page. If not set the included file is rendered as markdown. Default: none Example Example 1: Markdown file (default) If no other options are specified, files will be rendered as Markdown using the RenderString function.\nLocation of markdown files\nIf you include markdown files that should not get a menu entry, place them outside the content folder or exclude them otherwise. {{\u0026lt; include file=\u0026#34;/static/_includes/example.md.part\u0026#34; \u0026gt;}} Example Mardown include\nFile including a simple Markdown table.\nHead 1 Head 2 Head 3 1 2 3 Example 2: Language files This method can be used to include source code files and keep them automatically up to date.\n{{\u0026lt; include file=\u0026#34;config/_default/config.yaml\u0026#34; language=\u0026#34;yaml\u0026#34; options=\u0026#34;linenos=table,hl_lines=5-6,linenostart=100\u0026#34; \u0026gt;}} Result:\n100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 --- baseURL: https://jlumbroso.github.io/hugo-geekdoc-github-example title: Hugo Geekdoc Example theme: hugo-geekdoc pygmentsUseClasses: true pygmentsCodeFences: true timeout: 180000 pluralizeListTitles: false defaultContentLanguage: en disablePathToLower: true enableGitInfo: true enableRobotsTXT: true markup: goldmark: renderer: unsafe: true tableOfContents: startLevel: 1 endLevel: 9 taxonomies: tag: tags outputs: home: - HTML page: - HTML section: - HTML taxonomy: - HTML term: - HTML security: exec: allow: - \u0026#34;^asciidoctor$\u0026#34; - \u0026#34;^git$\u0026#34; Example 3: HTML HTML content will be filtered by the safeHTML filter and added to the rendered page output.\n{{\u0026lt; include file=\u0026#34;/static/_includes/example.html.part\u0026#34; type=\u0026#34;html\u0026#34; \u0026gt;}} Example HTML include This is heading 4 This is heading 5 This is heading 6 Example 4: Hugo Pages In some situations, it can be helpful to include Markdown files that also contain shortcodes. While the default method works fine to render plain Markdown, shortcodes are not parsed. The only way to get this to work is to use Hugo pages. There are several ways to structure these include pages, so whatever you do, keep in mind that Hugo needs to be able to render and serve these files as regular pages! How it works:\nFirst you need to create a directory within your content directory. For this example site _includes is used. To prevent the theme from embedding the page in the navigation, create a file _includes/_index.md and add geekdocHidden: true to the front matter. Place your Markdown files within the _includes folder e.g. /_includes/include-page.md. Make sure to name it *.md. Include the page using {{\u0026lt; include file=\u0026quot;/_includes/include-page.md\u0026quot; type=\u0026quot;page\u0026quot; \u0026gt;}}. Resulting structure should look like this:\n_includes/ ├── include-page.md └── _index.md Example page include\nExample Shortcode\nShortcode used in an include page. Head 1 Head 2 Head 3 1 2 3 ","description":"Include shortcode can include files of different types. By specifying a language, the included file will have syntax highlighting.\nUsage {{\u0026lt; include file=\u0026#34;relative/path/from/hugo/root\u0026#34; language=\u0026#34;go\u0026#34; \u0026gt;}} Attributes file required string Path of the file (relative to the Hugo root) to include. Default: none language optional string Language for syntax highlighting. Default: none options optional bool highlighting options. Default: linenos=table type optional string Special include type. Supported values are html|page. If not set the included file is rendered as markdown."},{"id":32,"href":"/hugo-geekdoc-github-example/shortcodes/katex/","title":"KaTeX","parent":"Shortcodes","content":"KaTeX shortcode let you render math typesetting in markdown document.\nUsage {{\u0026lt; katex [display] [class=\u0026#34;text-center\u0026#34;] \u0026gt;}} f(x) = \\int_{-\\infty}^\\infty\\hat f(\\xi)\\,e^{2 \\pi i \\xi x}\\,d\\xi {{\u0026lt; /katex \u0026gt;}} Attributes class optional list List of space-separated CSS class names to apply. Default: none Example \\[f(x) = \\int_{-\\infty}^\\infty\\hat f(\\xi)\\,e^{2 \\pi i \\xi x}\\,d\\xi\\] KaTeX can be used inline, for example \\(\\pi(x)\\) or used with the display parameter as above.\n","description":"KaTeX shortcode let you render math typesetting in markdown document.\nUsage {{\u0026lt; katex [display] [class=\u0026#34;text-center\u0026#34;] \u0026gt;}} f(x) = \\int_{-\\infty}^\\infty\\hat f(\\xi)\\,e^{2 \\pi i \\xi x}\\,d\\xi {{\u0026lt; /katex \u0026gt;}} Attributes class optional list List of space-separated CSS class names to apply. Default: none Example \\[f(x) = \\int_{-\\infty}^\\infty\\hat f(\\xi)\\,e^{2 \\pi i \\xi x}\\,d\\xi\\] KaTeX can be used inline, for example \\(\\pi(x)\\) or used with the display parameter as above."},{"id":33,"href":"/hugo-geekdoc-github-example/collapse/level-1/level-1-1/","title":"Level 1.1","parent":"Level 1","content":"Level 1.1\n","description":"Level 1.1"},{"id":34,"href":"/hugo-geekdoc-github-example/toc-tree/level-1/level-1-1/","title":"Level 1.1","parent":"Level 1","content":"Level 1.1\n","description":"Level 1.1"},{"id":35,"href":"/hugo-geekdoc-github-example/collapse/level-1/level-1-2/","title":"Level 1.2","parent":"Level 1","content":"Level 1.2\n","description":"Level 1.2"},{"id":36,"href":"/hugo-geekdoc-github-example/toc-tree/level-1/level-1-2/","title":"Level 1.2","parent":"Level 1","content":"Level 1.2\n","description":"Level 1.2"},{"id":37,"href":"/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/","title":"Level 1.3","parent":"Level 1","content":"Level 1.3\nLevel 1.3.1 ","description":"Level 1.3\nLevel 1.3.1 "},{"id":38,"href":"/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/level-1-3-1/","title":"Level 1.3.1","parent":"Level 1.3","content":"Level 1.3.1\n","description":"Level 1.3.1"},{"id":39,"href":"/hugo-geekdoc-github-example/collapse/level-2/level-2-1/","title":"Level 2.1","parent":"Level 2","content":"Level 2.1\n","description":"Level 2.1"},{"id":40,"href":"/hugo-geekdoc-github-example/toc-tree/level-2/level-2-1/","title":"Level 2.1","parent":"Level 2","content":"Level 2.1\n","description":"Level 2.1"},{"id":41,"href":"/hugo-geekdoc-github-example/collapse/level-2/level-2-2/","title":"Level 2.2","parent":"Level 2","content":"Level 2.2\n","description":"Level 2.2"},{"id":42,"href":"/hugo-geekdoc-github-example/toc-tree/level-2/level-2-2/","title":"Level 2.2","parent":"Level 2","content":"Level 2.2\n","description":"Level 2.2"},{"id":43,"href":"/hugo-geekdoc-github-example/usage/menus/","title":"Menus","parent":"Usage","content":"The theme supports two different kinds of menus. File-tree menu is the default one and does not require further configuration to work. If you want full control about your menu the bundle menu is a powerful option to accomplish it.\nFile-tree menu Bundle menu More menu Extra Header Menu File-tree menu As the name already suggests, the file tree menu builds a menu from the file system structure of the content folder. By default, areas and subareas are sorted alphabetically by the title of the pages. To manipulate the order the weight parameter in a page front matter can be used. To structure your content folder you have to use page bundles, single files are not supported. Hugo will render build single files in the content folder just fine but it will not be added to the menu.\nExample:\nFile system structure:\ncontent/ ├── level-1 │ ├── _index.md │ ├── level-1-1.md │ ├── level-1-2.md │ └── level-1-3 │ ├── _index.md │ └── level-1-3-1.md └── level-2 ├── _index.md ├── level-2-1.md └── level-2-2.md Bundle menu This type of navigation needs to be enabled first by setting geekdocMenuBundle to true in your site configuration. After you have activated the bundle menu, you start with an empty navigation. This is intentional because bundle menus have to be defined manually in a data file. While this increases the effort it also offers maximum flexibility in the design. The data file needs to be written in YAML and placed at data/menu/main.yaml.\nExample:\n--- main: - name: Level 1 ref: \u0026#34;/level-1\u0026#34; icon: \u0026#34;gdoc_notification\u0026#34; sub: - name: Level 1.1 ref: \u0026#34;/level-1/level-1-1\u0026#34; - name: Level 1.2 ref: \u0026#34;/level-1/level-1-2\u0026#34; - name: Level 1.3 ref: \u0026#34;/level-1/level-1-3\u0026#34; sub: - name: Level 1.3.1 ref: \u0026#34;/level-1/level-1-3/level-1-3-1\u0026#34; - name: Level 2 ref: \u0026#34;/level-2\u0026#34; sub: - name: Level 2.1 ref: \u0026#34;/level-2/level-2-1\u0026#34; - name: Level 2.2 ref: \u0026#34;/level-2/level-2-2\u0026#34; - name: Level 2.2 Anchor ref: /level-2/level-2-2 # Anchor to add to the entry. This example will result in `/level-2/level-2-2/#anchor` anchor: anchor As an advantage you can add icons to your menu entries e.g. icon: \u0026quot;gdoc_notification\u0026quot;.\nMore menu Tip\nThe more menu is special type of the bundle menu and can be combined with the default file-tree menu. As this is a special type of the bundle menu it is basically working in the same way. To enable it just add a data file to data/menu/more.yaml. The more menu will also work with the file-tree menu and therefor don\u0026rsquo;t need to be enabled by the geekdocMenuBundle parameter.\nExample:\n--- more: - name: News ref: \u0026#34;/#\u0026#34; icon: \u0026#34;gdoc_notification\u0026#34; - name: Releases ref: \u0026#34;https://github.com/thegeeklab/hugo-geekdoc/releases\u0026#34; external: true icon: \u0026#34;gdoc_download\u0026#34; - name: \u0026#34;View Source\u0026#34; ref: \u0026#34;https://github.com/thegeeklab/hugo-geekdoc\u0026#34; external: true icon: \u0026#34;gdoc_github\u0026#34; Extra Header Menu If you want to customize the header menu, this can be achieved by using a data file written in YAML and placed at data/menu/extra.yaml.\nExample:\n--- header: - name: GitHub ref: https://github.com/thegeeklab/hugo-geekdoc icon: gdoc_github external: true ","description":"The theme supports two different kinds of menus. File-tree menu is the default one and does not require further configuration to work. If you want full control about your menu the bundle menu is a powerful option to accomplish it.\nFile-tree menu Bundle menu More menu Extra Header Menu File-tree menu As the name already suggests, the file tree menu builds a menu from the file system structure of the content folder."},{"id":44,"href":"/hugo-geekdoc-github-example/shortcodes/mermaid/","title":"Mermaid","parent":"Shortcodes","content":"Mermaid is library for generating SVG charts and diagrams from text.\nUsage {{\u0026lt; mermaid class=\u0026#34;text-center\u0026#34; \u0026gt;}} sequenceDiagram Alice-\u0026gt;\u0026gt;Bob: Hello Bob, how are you? alt is sick Bob-\u0026gt;\u0026gt;Alice: Not so good :( else is well Bob-\u0026gt;\u0026gt;Alice: Feeling fresh like a daisy end opt Extra response Bob-\u0026gt;\u0026gt;Alice: Thanks for asking end {{\u0026lt; /mermaid \u0026gt;}} Attributes class optional list List of space-separated CSS class names to apply. Default: none Example sequenceDiagram Alice-\u003e\u003eBob: Hello Bob, how are you? alt is sick Bob-\u003e\u003eAlice: Not so good :( else is well Bob-\u003e\u003eAlice: Feeling fresh like a daisy end opt Extra response Bob-\u003e\u003eAlice: Thanks for asking end As an alternative to shortcodes, code blocks can be used for markdown as well.\n```mermaid flowchart LR A[Hard] --\u0026gt;|Text| B(Round) B --\u0026gt; C{Decision} C --\u0026gt;|One| D[Result 1] C --\u0026gt;|Two| E[Result 2] ``` flowchart LR A[Hard] --\u0026gt;|Text| B(Round) B --\u0026gt; C{Decision} C --\u0026gt;|One| D[Result 1] C --\u0026gt;|Two| E[Result 2] ","description":"Mermaid is library for generating SVG charts and diagrams from text. Usage {{\u0026lt; mermaid class=\u0026#34;text-center\u0026#34; \u0026gt;}} sequenceDiagram Alice-\u0026gt;\u0026gt;Bob: Hello Bob, how are you? alt is sick Bob-\u0026gt;\u0026gt;Alice: Not so good :( else is well Bob-\u0026gt;\u0026gt;Alice: Feeling fresh like a daisy end opt Extra response Bob-\u0026gt;\u0026gt;Alice: Thanks for asking end {{\u0026lt; /mermaid \u0026gt;}} Attributes class optional list List of space-separated CSS class names to apply. Default: none Example sequenceDiagram Alice-\u003e\u003eBob: Hello Bob, how are you?"},{"id":45,"href":"/hugo-geekdoc-github-example/features/multilingual/","title":"Multilingual","parent":"Features","content":" Configuration Languages Translation Strings Menus Add Content Switch Content Hugo supports the creation of websites with multiple languages. In this post we will explain how to get configure Multilingual Mode with this theme.\nConfiguration Languages You need to set a default language and configure at least two different languages used by your site to your configuration file at config.toml:\ndefaultContentLanguage = \u0026#34;en\u0026#34; [languages.en] languageName = \u0026#34;English\u0026#34; contentDir = \u0026#34;content/en\u0026#34; weight = 10 [languages.de] languageName = \u0026#34;German\u0026#34; contentDir = \u0026#34;content/de\u0026#34; weight = 20 Translation Strings To customize translation strings used by the theme you can create a file i18n/\u0026lt;languagecode\u0026gt;.toml for every language you want to use e.g. i18n/en.toml. You can lookup all used strings in the default translation file.\nMenus For the Bundle Menu as well as for the Extra Header Menu you can translate the name within the data file of the menu:\n--- more: # If `name` is a text, this text will be used as name for each language. - name: News ref: \u0026#34;/#\u0026#34; icon: \u0026#34;gdoc_notification\u0026#34; # To translate the name you can add a sub-item per language. Important: If you miss a language key # that is configured in the languages list of your `config.toml` the name will be empty for this language! - name: en: Releases de: Veröffentlichung ref: \u0026#34;https://github.com/thegeeklab/hugo-geekdoc/releases\u0026#34; external: true icon: \u0026#34;gdoc_download\u0026#34; Add Content To translate your content you need to create a directory content/\u0026lt;languagecode\u0026gt;/ for each language you want to use e.g. content/en/. This language directories will hold the translated pages for the particular language.\nSwitch Content If you have configured at least two different languages, the language switcher will be enabled in the UI automatically. The switcher is as part of the header menu and displayed on all pages.\nOn pages for which a translation is available it will be displayed in the selection list and links to the translated page.\nPages without a translation will be displayed in the selection list as well but are marked with an asterisk and link to the start page of the respective language.\n","description":"Configuration Languages Translation Strings Menus Add Content Switch Content Hugo supports the creation of websites with multiple languages. In this post we will explain how to get configure Multilingual Mode with this theme.\nConfiguration Languages You need to set a default language and configure at least two different languages used by your site to your configuration file at config.toml:\ndefaultContentLanguage = \u0026#34;en\u0026#34; [languages.en] languageName = \u0026#34;English\u0026#34; contentDir = \u0026#34;content/en\u0026#34; weight = 10 [languages."},{"id":46,"href":"/hugo-geekdoc-github-example/shortcodes/progress/","title":"Progress","parent":"Shortcodes","content":"A progress bar shows how far a process has progressed.\nUsage {{\u0026lt; progress title=Eating value=65 icon=gdoc_heart \u0026gt;}} Attributes icon optional string Icon to use. The value need to be an icon from an SVG sprite. Default: none title optional string Title text of the progress bar. Default: none value optional integer Progress value. Default: 0 Example Eating 65% ","description":"A progress bar shows how far a process has progressed.\nUsage {{\u0026lt; progress title=Eating value=65 icon=gdoc_heart \u0026gt;}} Attributes icon optional string Icon to use. The value need to be an icon from an SVG sprite. Default: none title optional string Title text of the progress bar. Default: none value optional integer Progress value. Default: 0 Example Eating 65% "},{"id":47,"href":"/hugo-geekdoc-github-example/shortcodes/propertylist/","title":"Properties","parent":"Shortcodes","content":"The property list shortcode creates a custom HTML description list that can be used to display properties or variables and general dependent information. The shortcode requires a data file in data/properties/, e.g. data/properties/demo.yaml.\nUsage {{\u0026lt; propertylist name=demo (sort=name) (order=[asc|desc]) \u0026gt;}} The supported attributes can be taken from the following example:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 --- properties: - name: prop1 type: string description: Dummy description of the prop1 string property. required: true - name: prop2 type: int defaultValue: 10 description: en: Another description for the integer property called prop2. required: false tags: en: - tag1 - tag2 - name: prop3 type: bool defaultValue: false description: | A `bool` property with a complex multiline description and embedded Markdown: - List item 1 - List item 2 More description how to use this property. required: false - name: a-prop type: string description: Property to demonstrate sorting. required: true Attributes class optional list List of space-separated CSS class names to apply. Default: none href optional string The URL to use as target of the button. Default: none relref optional string Executes the relref Hugo function to resolve the relative permalink of the specified page. The result is set as the target of the button. Default: none size optional string Preset of different button sizes. Supported values are regular|large. Default: none Example a-prop required string Property to demonstrate sorting. Default: none prop1 required string Dummy description of the prop1 string property. Default: none prop2 optional int tag1 tag2 Another description for the integer property called prop2. Default: 10 prop3 optional bool A bool property with a complex multiline description and embedded Markdown:\nList item 1 List item 2 More description how to use this property.\nDefault: false ","description":"The property list shortcode creates a custom HTML description list that can be used to display properties or variables and general dependent information. The shortcode requires a data file in data/properties/, e.g. data/properties/demo.yaml.\nUsage {{\u0026lt; propertylist name=demo (sort=name) (order=[asc|desc]) \u0026gt;}} The supported attributes can be taken from the following example:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 --- properties: - name: prop1 type: string description: Dummy description of the prop1 string property."},{"id":48,"href":"/hugo-geekdoc-github-example/shortcodes/tabs/","title":"Tabs","parent":"Shortcodes","content":"Tabs let you organize content by context, for example installation instructions for each supported platform.\nUsage {{\u0026lt; tabs \u0026#34;uniqueid\u0026#34; \u0026gt;}} {{\u0026lt; tab \u0026#34;macOS\u0026#34; \u0026gt;}} # macOS Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; tab \u0026#34;Linux\u0026#34; \u0026gt;}} # Linux Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; tab \u0026#34;Windows\u0026#34; \u0026gt;}} # Windows Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; /tabs \u0026gt;}} Example macOS macOS This is tab macOS content.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nLinux Linux This is tab Linux content.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nWindows Windows This is tab Windows content.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent.\n","description":"Tabs let you organize content by context, for example installation instructions for each supported platform.\nUsage {{\u0026lt; tabs \u0026#34;uniqueid\u0026#34; \u0026gt;}} {{\u0026lt; tab \u0026#34;macOS\u0026#34; \u0026gt;}} # macOS Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; tab \u0026#34;Linux\u0026#34; \u0026gt;}} # Linux Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; tab \u0026#34;Windows\u0026#34; \u0026gt;}} # Windows Content {{\u0026lt; /tab \u0026gt;}} {{\u0026lt; /tabs \u0026gt;}} Example macOS macOS This is tab macOS content.\nDolor sit, sumo unique argument um no. Gracie nominal id xiv."},{"id":49,"href":"/hugo-geekdoc-github-example/features/theming/","title":"Theming","parent":"Features","content":" Color Scheme Favicons Simple replacement Full replacement Color Scheme If you want to customize the theme\u0026rsquo;s color scheme to give it your individual touch, you are only a few lines of CSS away. Generally, you need to override the default settings. The easiest way to do this is to create a file named static/custom.css right at the root of your site.\nAll the necessary CSS customization properties are listed below. If you want to customize elements that don\u0026rsquo;t use these properties, you can always look up the class name and override it directly. For inspiration, you can also take a look at https://www.color-hex.com. In this simple example, we\u0026rsquo;ll use the Beach color palette.\nCustom CSS:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 /* Global customization */ :root { --code-max-height: 60rem; } /* Light mode theming */ :root, :root[color-theme=\u0026#34;light\u0026#34;] { --header-background: #4ec58a; --header-font-color: #ffffff; --body-background: #ffffff; --body-font-color: #343a40; --mark-color: #ffab00; --button-background: #62cb97; --button-border-color: #4ec58a; --link-color: #518169; --link-color-visited: #c54e8a; --code-background: #f5f6f8; --code-accent-color: #e3e7eb; --code-accent-color-lite: #eff1f3; --code-font-color: #5f5f5f; --code-copy-background: #f5f6f8; --code-copy-font-color: #6b7784; --code-copy-border-color: #adb4bc; --code-copy-success-color: #00c853; --accent-color: #e9ecef; --accent-color-lite: #f8f9fa; --control-icons: #b2bac1; --footer-background: #112b3c; --footer-font-color: #ffffff; --footer-link-color: #ffcc5c; --footer-link-color-visited: #ffcc5c; } @media (prefers-color-scheme: light) { :root { --header-background: #4ec58a; --header-font-color: #ffffff; --body-background: #ffffff; --body-font-color: #343a40; --mark-color: #ffab00; --button-background: #62cb97; --button-border-color: #4ec58a; --link-color: #518169; --link-color-visited: #c54e8a; --code-background: #f5f6f8; --code-accent-color: #e3e7eb; --code-accent-color-lite: #eff1f3; --code-font-color: #5f5f5f; --code-copy-background: #f5f6f8; --code-copy-font-color: #6b7784; --code-copy-border-color: #adb4bc; --code-copy-success-color: #00c853; --accent-color: #e9ecef; --accent-color-lite: #f8f9fa; --control-icons: #b2bac1; --footer-background: #112b3c; --footer-font-color: #ffffff; --footer-link-color: #ffcc5c; --footer-link-color-visited: #ffcc5c; } } /* Dark mode theming */ :root[color-theme=\u0026#34;dark\u0026#34;] { --header-background: #4ec58a; --header-font-color: #ffffff; --body-background: #343a40; --body-font-color: #ced3d8; --mark-color: #ffab00; --button-background: #62cb97; --button-border-color: #4ec58a; --link-color: #7ac29e; --link-color-visited: #c27a9e; --code-background: #2f353a; --code-accent-color: #262b2f; --code-accent-color-lite: #2b3035; --code-font-color: #b9b9b9; --code-copy-background: #343a40; --code-copy-font-color: #6b7784; --code-copy-border-color: #6b7784; --code-copy-success-color: #37905c; --accent-color: #2b3035; --accent-color-lite: #2f353a; --control-icons: #b2bac1; --footer-background: #112b3c; --footer-font-color: #ffffff; --footer-link-color: #ffcc5c; --footer-link-color-visited: #ffcc5c; } @media (prefers-color-scheme: dark) { :root { --header-background: #4ec58a; --header-font-color: #ffffff; --body-background: #343a40; --body-font-color: #ced3d8; --mark-color: #ffab00; --button-background: #62cb97; --button-border-color: #4ec58a; --link-color: #7ac29e; --link-color-visited: #c27a9e; --code-background: #2f353a; --code-accent-color: #262b2f; --code-accent-color-lite: #2b3035; --code-font-color: #b9b9b9; --code-copy-background: #343a40; --code-copy-font-color: #6b7784; --code-copy-border-color: #6b7784; --code-copy-success-color: #37905c; --accent-color: #2b3035; --accent-color-lite: #2f353a; --control-icons: #b2bac1; --footer-background: #112b3c; --footer-font-color: #ffffff; --footer-link-color: #ffcc5c; --footer-link-color-visited: #ffcc5c; } } Favicons The Theme is shipped with a set of default Favicons in various formats generated by the Favicon Generator. All files can be found in the static/favicon folder of the release tarball. To make the replacement of the default Favicons as simple as possible, the theme loads only a very small subset of the Favicon formats.\n\u0026lt;link rel=\u0026#34;icon\u0026#34; type=\u0026#34;image/svg+xml\u0026#34; href=\u0026#34;{{ \u0026#34;favicon/favicon.svg\u0026#34; | relURL }}\u0026#34;\u0026gt; \u0026lt;link rel=\u0026#34;icon\u0026#34; type=\u0026#34;image/png\u0026#34; sizes=\u0026#34;32x32\u0026#34; href=\u0026#34;{{ \u0026#34;favicon/favicon-32x32.png\u0026#34; | relURL }}\u0026#34;\u0026gt; \u0026lt;link rel=\u0026#34;icon\u0026#34; type=\u0026#34;image/png\u0026#34; sizes=\u0026#34;16x16\u0026#34; href=\u0026#34;{{ \u0026#34;favicon/favicon-16x16.png\u0026#34; | relURL }}\u0026#34;\u0026gt; Simple replacement The minimal steps to load a custom Favicon is to overwrite the three default Favicon files. Therefor place these files into your projects root folder:\nstatic/favicon/favicon.svg static/favicon/favicon-32x32.png static/favicon/favicon-16x16.png Full replacement If you want to add more Favicon formats you have to overwrite the default partial that is used to load the files. In the next step you have to place the required files in the static folder of your project as well.\nExample:\n\u0026lt;!-- layouts/partials/head/favicons.html --\u0026gt; \u0026lt;link rel=\u0026#34;icon\u0026#34; type=\u0026#34;image/svg+xml\u0026#34; href=\u0026#34;{{ \u0026#34;favicon/favicon.svg\u0026#34; | relURL }}\u0026#34;\u0026gt; \u0026lt;link rel=\u0026#34;apple-touch-icon\u0026#34; sizes=\u0026#34;180x180\u0026#34; href=\u0026#34;{{ \u0026#34;favicon/apple-touch-icon.png\u0026#34; | relURL }}\u0026#34;\u0026gt; \u0026lt;link rel=\u0026#34;icon\u0026#34; type=\u0026#34;image/png\u0026#34; sizes=\u0026#34;32x32\u0026#34; href=\u0026#34;{{ \u0026#34;favicon/favicon-32x32.png\u0026#34; | relURL }}\u0026#34;\u0026gt; \u0026lt;link rel=\u0026#34;icon\u0026#34; type=\u0026#34;image/png\u0026#34; sizes=\u0026#34;16x16\u0026#34; href=\u0026#34;{{ \u0026#34;favicon/favicon-16x16.png\u0026#34; | relURL }}\u0026#34;\u0026gt; \u0026lt;link rel=\u0026#34;manifest\u0026#34; href=\u0026#34;{{ \u0026#34;favicon/site.webmanifest\u0026#34; | relURL }}\u0026#34;\u0026gt; \u0026lt;link rel=\u0026#34;mask-icon\u0026#34; href=\u0026#34;{{ \u0026#34;favicon/safari-pinned-tab.svg\u0026#34; | relURL }}\u0026#34; color=\u0026#34;#efefef\u0026#34;\u0026gt; \u0026lt;meta name=\u0026#34;msapplication-TileColor\u0026#34; content=\u0026#34;#efefef\u0026#34;\u0026gt; \u0026lt;meta name=\u0026#34;theme-color\u0026#34; content=\u0026#34;#efefef\u0026#34;\u0026gt; Happy customizing!\n","description":"Color Scheme Favicons Simple replacement Full replacement Color Scheme If you want to customize the theme\u0026rsquo;s color scheme to give it your individual touch, you are only a few lines of CSS away. Generally, you need to override the default settings. The easiest way to do this is to create a file named static/custom.css right at the root of your site.\nAll the necessary CSS customization properties are listed below."},{"id":50,"href":"/hugo-geekdoc-github-example/shortcodes/toc/","title":"ToC","parent":"Shortcodes","content":"Simple wrapper to generate a page Table of Content from a shortcode.\nUsage {{\u0026lt; toc (format=[html|raw]) \u0026gt;}} Attributes format optional string Format of the returned ToC. The html format creates an HTML wrapper to enable the geekdocToC parameter that limits the maximum ToC level to be displayed. This variant also automatically inserts a horizontal line after the ToC. The raw format returns the unformatted ToC, the parameter geekdocToC does not work in this mode. Supported values are html|raw. Default: html Example Usage Attributes Example Level 1 Level 2 Level 2.1 Level 2.1.1 Level 2.1.1.1 Level 2.1.1.1.1 Level 2.2 Level 1 Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.\nLevel 2 Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram.\nLevel 2.1 Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram.\nLevel 2.1.1 Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim.\nLevel 2.1.1.1 In pro quints consequent, denim fastidious copious quo ad.\nLevel 2.1.1.1.1 In pro quints consequent, denim fastidious copious quo ad.\nLevel 2.2 Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e.\nAmalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram.\n","description":"Simple wrapper to generate a page Table of Content from a shortcode.\nUsage {{\u0026lt; toc (format=[html|raw]) \u0026gt;}} Attributes format optional string Format of the returned ToC. The html format creates an HTML wrapper to enable the geekdocToC parameter that limits the maximum ToC level to be displayed. This variant also automatically inserts a horizontal line after the ToC. The raw format returns the unformatted ToC, the parameter geekdocToC does not work in this mode."},{"id":51,"href":"/hugo-geekdoc-github-example/shortcodes/toc-tree/","title":"ToC-Tree","parent":"Shortcodes","content":"The toc-tree shortcode will generate a Table of Content from a section file tree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode.\nUsage {{\u0026lt; toc-tree [sortBy=\u0026#34;title\u0026#34;] \u0026gt;}} Attributes sortBy optional string Override the default sort parameter set by geekdocFileTreeSortBy. Default: .Site.Params.geekdocFileTreeSortBy Example As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the ToC Tree section.\n","description":"The toc-tree shortcode will generate a Table of Content from a section file tree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode.\nUsage {{\u0026lt; toc-tree [sortBy=\u0026#34;title\u0026#34;] \u0026gt;}} Attributes sortBy optional string Override the default sort parameter set by geekdocFileTreeSortBy. Default: .Site.Params.geekdocFileTreeSortBy Example As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the ToC Tree section."},{"id":52,"href":"/hugo-geekdoc-github-example/toc-tree/","title":"ToC-Tree","parent":"Welcome to the documentation","content":"This is just a demo section for the toc-tree shortcode.\nLevel 1 Level 1.1 Level 1.2 Level 1.3 Level 1.3.1 Level 2 Level 2.1 Level 2.2 ","description":"This is just a demo section for the toc-tree shortcode.\nLevel 1 Level 1.1 Level 1.2 Level 1.3 Level 1.3.1 Level 2 Level 2.1 Level 2.2 "},{"id":53,"href":"/hugo-geekdoc-github-example/","title":"Welcome to the documentation","parent":"","content":" Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme and may not fit the requirements of complex projects. If a more feature-complete theme is required there are a lot of got alternatives out there.\nGetting Started Feature overview Clean and simple design Stay focused on exploring the content and don\u0026rsquo;t get overwhelmed by a complex design.\nLight and mobile-friendly The theme is powered by less than 1 MB and looks impressive on mobile devices as well as on a regular Desktop.\nEasy customization The look and feel can be easily customized by CSS custom properties (variables), features can be adjusted by Hugo parameters.\nZero initial configuration Getting started in minutes. The theme is shipped with a default configuration and works out of the box.\nHandy shortcodes We included some (hopefully) useful custom shortcodes so you don\u0026rsquo;t have to and can focus on writing amazing docs.\nDark mode Powerful dark mode that detects your system preferences or can be controlled by a toggle switch.\n","description":"Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme and may not fit the requirements of complex projects. If a more feature-complete theme is required there are a lot of got alternatives out there.\nGetting Started Feature overview Clean and simple design Stay focused on exploring the content and don\u0026rsquo;t get overwhelmed by a complex design.\nLight and mobile-friendly The theme is powered by less than 1 MB and looks impressive on mobile devices as well as on a regular Desktop."}] \ No newline at end of file diff --git a/shortcodes/avatar/avatar.jpg b/shortcodes/avatar/avatar.jpg new file mode 100644 index 0000000..d0fc747 Binary files /dev/null and b/shortcodes/avatar/avatar.jpg differ diff --git a/shortcodes/avatar/avatar_hu2043819043117472857.jpg b/shortcodes/avatar/avatar_hu2043819043117472857.jpg new file mode 100644 index 0000000..58c9dad Binary files /dev/null and b/shortcodes/avatar/avatar_hu2043819043117472857.jpg differ diff --git a/shortcodes/avatar/avatar_hu7831901773224204244.jpg b/shortcodes/avatar/avatar_hu7831901773224204244.jpg new file mode 100644 index 0000000..29c28f9 Binary files /dev/null and b/shortcodes/avatar/avatar_hu7831901773224204244.jpg differ diff --git a/shortcodes/avatar/index.html b/shortcodes/avatar/index.html new file mode 100644 index 0000000..6673410 --- /dev/null +++ b/shortcodes/avatar/index.html @@ -0,0 +1,86 @@ +Avatar | Hugo Geekdoc Example +
    +
    GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

    Avatar

    The avatar shortcode is another custom image shortcode.

    Usage

    Define a resource in the page front matter.

    ---
    +resources:
    +  - name: avatar
    +    src: "images/avatar.jpg"
    +    title: "Avatar"
    +---
    +
    +{{< avatar name="avatar" >}}
    +

    Attributes

    alt +optional +string +
    Description text for the image.
    Default: +none
    anchor +optional +string +
    Anchor to determine the placement of the crop box.
    Default: +none
    name +required +string +
    Name of the image resource defined in page front matter.
    Default: +none
    size +optional +string +
    Thumbnail size. Supported values are origin|tiny|small|medium|large.
    Default: +none

    Example

    Avatar
    \ No newline at end of file diff --git a/shortcodes/buttons/index.html b/shortcodes/buttons/index.html index 7bf92ef..1374c12 100644 --- a/shortcodes/buttons/index.html +++ b/shortcodes/buttons/index.html @@ -1,10 +1,11 @@ Buttons | Hugo Geekdoc Example -
    +Usage {{< button relref="/" [class="...", size="large|regular"] >}}Get Home{{< /button >}} {{< button href="https://github.com/thegeeklab/hugo-geekdoc" >}}Contribute{{< /button >}} Attributes class optional list List of space-separated CSS class names to apply. Default: none href optional string The URL to use as target of the button. Default: none relref optional string Executes the relref Hugo function to resolve the relative permalink of the specified page."/>Buttons | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -14,19 +15,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Buttons

    Buttons are styled links that can lead to local page or external link.

    {{< button relref="/" [class="..."] >}}Get Home{{< /button >}}
    +justify-between" itemprop="breadcrumb">

    Buttons

    Buttons are styled links that can lead to local page or external link.

    Usage

    {{< button relref="/" [class="...", size="large|regular"] >}}Get Home{{< /button >}}
     {{< button href="https://github.com/thegeeklab/hugo-geekdoc" >}}Contribute{{< /button >}}
    -

    Example

    Get Home -Contribute

    class +optional +list +
    List of space-separated CSS class names to apply.
    Default: +none
    href +optional +string +
    The URL to use as target of the button.
    Default: +none
    relref +optional +string +
    Executes the relref Hugo function to resolve the relative permalink of the specified page. The result is set as the target of the button.
    Default: +none
    size +optional +string +
    Preset of different button sizes. Supported values are regular|large.
    Default: +none

    Example

    Get Home +Contribute

  • \ No newline at end of file diff --git a/shortcodes/columns/index.html b/shortcodes/columns/index.html index 6b1d6d9..2282918 100644 --- a/shortcodes/columns/index.html +++ b/shortcodes/columns/index.html @@ -1,10 +1,11 @@ -Columns | Hugo Geekdoc Example -
    +Columns | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -14,19 +15,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Columns

    Columns help organize shorter pieces of content horizontally for readability.

    {{< columns >}} <!-- begin columns block -->
    -# Left Content
    +justify-between" itemprop="breadcrumb">

    Columns

    The Columns shortcode can be used to organize content side-by-side (horizontally) for better readability.

    Usage

    {{< columns >}} <!-- begin columns block -->
    +## Left Content
     Dolor sit, sumo unique argument um no ...
     
    -<---> <!-- magic sparator, between columns -->
    +<---> <!-- magic separator, between columns -->
     
    -# Mid Content
    +## Mid Content
     Dolor sit, sumo unique argument um no ...
     
    -<---> <!-- magic sparator, between columns -->
    +<---> <!-- magic separator, between columns -->
     
    -# Right Content
    +## Right Content
     Dolor sit, sumo unique argument um no ...
     {{< /columns >}}
    -

    Example

    Left

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +

    Attributes

    size +optional +string +
    Preset of different sizes for the first column. Supported values are small|regular|large.
    Default: +regular

    Example

    Left

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious -copious quo ad. Stet probates in duo.

    Mid Content

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates -investiture. Ornateness bland it ex enc, est yeti am bongo detract re.

    Right Content

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +copious quo ad. Stet probates in duo.

    Mid Content

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re.

    Right Content

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.

  • \ No newline at end of file diff --git a/shortcodes/expand/index.html b/shortcodes/expand/index.html index 0b4937a..ef65458 100644 --- a/shortcodes/expand/index.html +++ b/shortcodes/expand/index.html @@ -1,13 +1,14 @@ Expand | Hugo Geekdoc Example -
    +Usage {{< expand >}} ### Markdown content Dolor sit, sumo unique ... {{< /expand >}} It is also possible to use a custom label and symbol. +{{< expand "Custom Label" "..." >}} ### More markdown Dolor sit, sumo unique ... {{< /expand >}} Example Expand ↕ Markdown content Dolor sit, sumo unique argument um no."/>Expand | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -17,19 +18,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Expand

    Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it.

    Example

    Default

    {{< expand >}}
    -## Markdown content
    +justify-between" itemprop="breadcrumb">

    Expand

    Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it.

    Usage

    {{< expand >}}
    +### Markdown content
     Dolor sit, sumo unique ...
     {{< /expand >}}
    -

    Markdown content

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.

    With Custom Label

    {{< expand "Custom Label" "..." >}}
    -## Markdown content
    +

    It is also possible to use a custom label and symbol.

    {{< expand "Custom Label" "..." >}}
    +### More markdown
     Dolor sit, sumo unique ...
     {{< /expand >}}
    -

    Example

    Markdown content

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.

    More markdown

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +

    More markdown

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.

  • \ No newline at end of file diff --git a/shortcodes/hints/index.html b/shortcodes/hints/index.html index 66ccbd0..3ca0f7b 100644 --- a/shortcodes/hints/index.html +++ b/shortcodes/hints/index.html @@ -1,13 +1,11 @@ -Hints | Hugo Geekdoc Example -
    +Hints | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -17,19 +15,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Hints

    Hint shortcode can be used as hint/alerts/notification block. -There are four colors to choose: info, ok, warning and danger.

    {{< hint [info|warning|danger] >}}
    +justify-between" itemprop="breadcrumb">

    Hints

    Hint shortcode can be used as hint/alerts/notification block.

    Usage

    {{< hint type=[note|tip|important|caution|warning] (icon=gdoc_github) (title=GitHub) >}}
     **Markdown content**\
     Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture.
      Ornateness bland it ex enc, est yeti am bongo detract re.
     {{< /hint >}}
    -

    Example

    Markdown content
    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. -Ornateness bland it ex enc, est yeti am bongo detract re.
    Markdown content
    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. -Ornateness bland it ex enc, est yeti am bongo detract re.
    Markdown content
    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. -Ornateness bland it ex enc, est yeti am bongo detract re.
    Markdown content
    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +

    Attributes

    icon +optional +string +
    Icon to use. The value need to be an icon from an SVG sprite.
    Default: +none
    title +optional +string +
    Title text of the hint.
    Default: +none
    type +optional +string +
    Type of the hint. Supported values are note|tip|important|caution|warning.
    Default: +note

    Example

    Markdown content
    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
    Markdown content
    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
    Markdown content
    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.
    Markdown content
    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.

    Markdown content
    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. +Ornateness bland it ex enc, est yeti am bongo detract re.

    Romanesque acclimates investiture.

    Example with a custom icon and title:

    +GitHub
    Markdown content
    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.
  • \ No newline at end of file diff --git a/shortcodes/icons/index.html b/shortcodes/icons/index.html new file mode 100644 index 0000000..cd83396 --- /dev/null +++ b/shortcodes/icons/index.html @@ -0,0 +1,66 @@ +Icons | Hugo Geekdoc Example +
    +
    GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

    Icons

    Simple shortcode to include icons from SVG sprites outside of menus.

    Usage

    {{< icon "thumbs-up" >}}
    +

    Example

    OutputCode
    {{< icon "thumbs-up" >}}
    {{< icon "thumbs-down" >}}
    {{< icon "laugh" >}}
    {{< icon "lemon" >}}
    {{< icon "moon" >}}
    \ No newline at end of file diff --git a/shortcodes/images/forest-1.jpg b/shortcodes/images/forest-1.jpg new file mode 100644 index 0000000..d6e4d47 Binary files /dev/null and b/shortcodes/images/forest-1.jpg differ diff --git a/shortcodes/images/forest-1_hu15914051365443809454.jpg b/shortcodes/images/forest-1_hu15914051365443809454.jpg new file mode 100644 index 0000000..f6502ee Binary files /dev/null and b/shortcodes/images/forest-1_hu15914051365443809454.jpg differ diff --git a/shortcodes/images/forest-1_hu6507492594111448344.jpg b/shortcodes/images/forest-1_hu6507492594111448344.jpg new file mode 100644 index 0000000..55a5ac9 Binary files /dev/null and b/shortcodes/images/forest-1_hu6507492594111448344.jpg differ diff --git a/shortcodes/images/forest-1_hu7029757701243747941.jpg b/shortcodes/images/forest-1_hu7029757701243747941.jpg new file mode 100644 index 0000000..6c7ae8b Binary files /dev/null and b/shortcodes/images/forest-1_hu7029757701243747941.jpg differ diff --git a/shortcodes/images/forest-2.jpg b/shortcodes/images/forest-2.jpg new file mode 100644 index 0000000..ba4b991 Binary files /dev/null and b/shortcodes/images/forest-2.jpg differ diff --git a/shortcodes/images/forest-2_hu11173967288844949325.jpg b/shortcodes/images/forest-2_hu11173967288844949325.jpg new file mode 100644 index 0000000..224b972 Binary files /dev/null and b/shortcodes/images/forest-2_hu11173967288844949325.jpg differ diff --git a/shortcodes/images/forest-2_hu6758276303678314854.jpg b/shortcodes/images/forest-2_hu6758276303678314854.jpg new file mode 100644 index 0000000..905930e Binary files /dev/null and b/shortcodes/images/forest-2_hu6758276303678314854.jpg differ diff --git a/shortcodes/images/forest-2_hu6981465465084842035.jpg b/shortcodes/images/forest-2_hu6981465465084842035.jpg new file mode 100644 index 0000000..b863513 Binary files /dev/null and b/shortcodes/images/forest-2_hu6981465465084842035.jpg differ diff --git a/shortcodes/images/forest-3.jpg b/shortcodes/images/forest-3.jpg new file mode 100644 index 0000000..e139da1 Binary files /dev/null and b/shortcodes/images/forest-3.jpg differ diff --git a/shortcodes/images/forest-3_hu13852889033579516638.jpg b/shortcodes/images/forest-3_hu13852889033579516638.jpg new file mode 100644 index 0000000..788b077 Binary files /dev/null and b/shortcodes/images/forest-3_hu13852889033579516638.jpg differ diff --git a/shortcodes/images/forest-3_hu15991266578019855286.jpg b/shortcodes/images/forest-3_hu15991266578019855286.jpg new file mode 100644 index 0000000..4ddb97e Binary files /dev/null and b/shortcodes/images/forest-3_hu15991266578019855286.jpg differ diff --git a/shortcodes/images/forest-3_hu18207788728913065059.jpg b/shortcodes/images/forest-3_hu18207788728913065059.jpg new file mode 100644 index 0000000..2593ed9 Binary files /dev/null and b/shortcodes/images/forest-3_hu18207788728913065059.jpg differ diff --git a/shortcodes/images/forest-4.jpg b/shortcodes/images/forest-4.jpg new file mode 100644 index 0000000..2cbb98d Binary files /dev/null and b/shortcodes/images/forest-4.jpg differ diff --git a/shortcodes/images/forest-4_hu12902587149922239838.jpg b/shortcodes/images/forest-4_hu12902587149922239838.jpg new file mode 100644 index 0000000..2167ad3 Binary files /dev/null and b/shortcodes/images/forest-4_hu12902587149922239838.jpg differ diff --git a/shortcodes/images/forest-4_hu16388739070562308087.jpg b/shortcodes/images/forest-4_hu16388739070562308087.jpg new file mode 100644 index 0000000..b39311c Binary files /dev/null and b/shortcodes/images/forest-4_hu16388739070562308087.jpg differ diff --git a/shortcodes/images/forest-4_hu9912431216549612946.jpg b/shortcodes/images/forest-4_hu9912431216549612946.jpg new file mode 100644 index 0000000..e22c25f Binary files /dev/null and b/shortcodes/images/forest-4_hu9912431216549612946.jpg differ diff --git a/shortcodes/images/forest-5.jpg b/shortcodes/images/forest-5.jpg new file mode 100644 index 0000000..fbaf31f Binary files /dev/null and b/shortcodes/images/forest-5.jpg differ diff --git a/shortcodes/images/forest-5_hu1189879367301781658.jpg b/shortcodes/images/forest-5_hu1189879367301781658.jpg new file mode 100644 index 0000000..ededc0f Binary files /dev/null and b/shortcodes/images/forest-5_hu1189879367301781658.jpg differ diff --git a/shortcodes/images/forest-5_hu2865350169450950537.jpg b/shortcodes/images/forest-5_hu2865350169450950537.jpg new file mode 100644 index 0000000..0b851a9 Binary files /dev/null and b/shortcodes/images/forest-5_hu2865350169450950537.jpg differ diff --git a/shortcodes/images/forest-5_hu816448022497141198.jpg b/shortcodes/images/forest-5_hu816448022497141198.jpg new file mode 100644 index 0000000..5a3c9d5 Binary files /dev/null and b/shortcodes/images/forest-5_hu816448022497141198.jpg differ diff --git a/shortcodes/images/forest-6.jpg b/shortcodes/images/forest-6.jpg new file mode 100644 index 0000000..46c166b Binary files /dev/null and b/shortcodes/images/forest-6.jpg differ diff --git a/shortcodes/images/forest-6_hu1020777797565367819.jpg b/shortcodes/images/forest-6_hu1020777797565367819.jpg new file mode 100644 index 0000000..8917e00 Binary files /dev/null and b/shortcodes/images/forest-6_hu1020777797565367819.jpg differ diff --git a/shortcodes/images/forest-6_hu11653264581095530354.jpg b/shortcodes/images/forest-6_hu11653264581095530354.jpg new file mode 100644 index 0000000..5aa37d9 Binary files /dev/null and b/shortcodes/images/forest-6_hu11653264581095530354.jpg differ diff --git a/shortcodes/images/forest-6_hu16413198364233708206.jpg b/shortcodes/images/forest-6_hu16413198364233708206.jpg new file mode 100644 index 0000000..0b77362 Binary files /dev/null and b/shortcodes/images/forest-6_hu16413198364233708206.jpg differ diff --git a/shortcodes/images/forest-7.jpg b/shortcodes/images/forest-7.jpg new file mode 100644 index 0000000..3b3ecdd Binary files /dev/null and b/shortcodes/images/forest-7.jpg differ diff --git a/shortcodes/images/forest-7_hu11585277151382779011.jpg b/shortcodes/images/forest-7_hu11585277151382779011.jpg new file mode 100644 index 0000000..59dda12 Binary files /dev/null and b/shortcodes/images/forest-7_hu11585277151382779011.jpg differ diff --git a/shortcodes/images/forest-7_hu13477059584385345991.jpg b/shortcodes/images/forest-7_hu13477059584385345991.jpg new file mode 100644 index 0000000..9b65462 Binary files /dev/null and b/shortcodes/images/forest-7_hu13477059584385345991.jpg differ diff --git a/shortcodes/images/forest-7_hu9708131667014795008.jpg b/shortcodes/images/forest-7_hu9708131667014795008.jpg new file mode 100644 index 0000000..cf40fa1 Binary files /dev/null and b/shortcodes/images/forest-7_hu9708131667014795008.jpg differ diff --git a/shortcodes/images/forest-8.svg b/shortcodes/images/forest-8.svg new file mode 100644 index 0000000..41a8957 --- /dev/null +++ b/shortcodes/images/forest-8.svg @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shortcodes/images/index.html b/shortcodes/images/index.html new file mode 100644 index 0000000..aa93900 --- /dev/null +++ b/shortcodes/images/index.html @@ -0,0 +1,124 @@ +Images | Hugo Geekdoc Example +
    +
    GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

    Images

    If you need more flexibility for your embedded images, you could use the img shortcode. It is using Hugo’s +page resources and supports lazy loading of your images.

    Usage

    Define your resources in the page front matter, custom parameter params.credits is optional.

    ---
    +resources:
    +  - name: forest-1
    +    src: "forest-1.jpg"
    +    title: Forest (1)
    +    params:
    +      credits: "[Jay Mantri](https://unsplash.com/@jaymantri) on [Unsplash](https://unsplash.com/s/photos/forest)"
    +---
    +
    +{{< img name="forest-1" size="large" lazy=false >}}
    +

    Attributes

    alt +optional +string +
    Description text for the image.
    Default: +none
    lazy +optional +bool +
    Enable/disable lazy loading for the image.
    Default: +true
    name +required +string +
    Name of the image resource defined in page front matter.
    Default: +none
    size +optional +string +
    Thumbnail size. Supported values are origin|tiny|small|medium|large.
    Default: +none

    Example

    Forest (1)
    Forest (1) +(Jay Mantri on Unsplash)

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts +feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious +copious quo ad. Stet probates in duo.

    Forest (2)
    Forest (2) +(Jay Mantri on Unsplash)

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts +feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious +copious quo ad. Stet probates in duo.

    Forest (3)
    Forest (3) +(Jay Mantri on Unsplash)

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts +feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious +copious quo ad. Stet probates in duo.

    Forest (4)
    Forest (4) +(Jay Mantri on Unsplash)

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts +feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious +copious quo ad. Stet probates in duo.

    Forest (5)
    Forest (5) +(Jay Mantri on Unsplash)

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts +feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious +copious quo ad. Stet probates in duo.

    Forest (6)
    Forest (6) +(Asher Ward on Unsplash)

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts +feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious +copious quo ad. Stet probates in duo.

    Forest (7)
    Forest (7) +(Asher Ward on Unsplash)

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts +feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious +copious quo ad. Stet probates in duo.

    Forest (8) +(SVG Repo on SVGRepo)
    \ No newline at end of file diff --git a/shortcodes/includes/index.html b/shortcodes/includes/index.html index c47dd4d..c095a7c 100644 --- a/shortcodes/includes/index.html +++ b/shortcodes/includes/index.html @@ -1,13 +1,11 @@ Includes | Hugo Geekdoc Example -
    +Usage {{< include file="relative/path/from/hugo/root" language="go" >}} Attributes file required string Path of the file (relative to the Hugo root) to include. Default: none language optional string Language for syntax highlighting. Default: none options optional bool highlighting options. Default: linenos=table type optional string Special include type. Supported values are html|page. If not set the included file is rendered as markdown."/>Includes | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -17,19 +15,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Includes

    Include shortcode can include files of different types. By specifying a language, the included file will have syntax highlighting.

    Shortcode

    {{< include file="relative/path/from/hugo/root" language="go" markdown=[false|true] >}}
    -

    Attributes:

    NameUsagedefault
    filepath to the included file relative to the hugo rootempty value
    language*language for syntax highlightingempty value
    markdownincluded file is markdownfalse
    optionshighlighting optionslinenos=table

    * if not set, the content will be rendered as plain HTML

    Include *.yml file with options

    {{< include file="config.yaml" language="yaml" options="linenos=table,hl_lines=5-6,linenostart=100" >}}
    -
    100
    +justify-between" itemprop="breadcrumb">

    Includes

    Include shortcode can include files of different types. By specifying a language, the included file will have syntax highlighting.

    Usage

    {{< include file="relative/path/from/hugo/root" language="go" >}}
    +

    Attributes

    file +required +string +
    Path of the file (relative to the Hugo root) to include.
    Default: +none
    language +optional +string +
    Language for syntax highlighting.
    Default: +none
    options +optional +bool +
    highlighting options.
    Default: +linenos=table
    type +optional +string +
    Special include type. Supported values are html|page. If not set the included file is rendered as markdown.
    Default: +none

    Example

    Example 1: Markdown file (default)

    If no other options are specified, files will be rendered as Markdown using the RenderString function.

    Location of markdown files
    If you include markdown files that should not get a menu entry, place them outside the content folder or exclude them otherwise.
    {{< include file="/static/_includes/example.md.part" >}}
    +

    Example Mardown include

    File including a simple Markdown table.

    Head 1Head 2Head 3
    123

    Example 2: Language files

    This method can be used to include source code files and keep them automatically up to date.

    {{< include file="config/_default/config.yaml" language="yaml" options="linenos=table,hl_lines=5-6,linenostart=100" >}}
    +

    Result:

    100
     101
     102
     103
    @@ -81,22 +109,34 @@
     131
     132
     133
    -
    # See https://geekdocs.de/usage/configuration/
    -# for more information on how to configure this file
    -
    ----
    -baseURL: https://jlumbroso.github.io/hugo-geekdoc-github-example
    -title: Hugo Geekdoc Example
    +134
    +135
    +136
    +137
    +138
    +139
    +140
    +141
    +142
    +143
    +144
    +
    ---
    +baseURL: https://jlumbroso.github.io/hugo-geekdoc-github-example
    +title: Hugo Geekdoc Example
     theme: hugo-geekdoc
    -pygmentsUseClasses: true
    +
    +pygmentsUseClasses: true
     pygmentsCodeFences: true
     timeout: 180000
    +pluralizeListTitles: false
    +
    +defaultContentLanguage: en
     
    -# Geekdoc configuration
     disablePathToLower: true
     enableGitInfo: true
     
    -# Needed for mermaid shortcodes
    +enableRobotsTXT: true
    +
     markup:
       goldmark:
         renderer:
    @@ -105,20 +145,34 @@
         startLevel: 1
         endLevel: 9
     
    -params:
    -#  geekdocMenuBundle: true
    -  geekdocToC: 3
    -
    -  geekdocRepo: https://github.com/jlumbroso/hugo-geekdoc-github-example
    -  geekdocEditPath: edit/main/content
    +taxonomies:
    +  tag: tags
     
    -  geekdocSearch: true
    -  geekdocSearchShowParent: true
    +outputs:
    +  home:
    +    - HTML
    +  page:
    +    - HTML
    +  section:
    +    - HTML
    +  taxonomy:
    +    - HTML
    +  term:
    +    - HTML
     
    -

    Include *.md file

    Included markdown files will be rendered using the markdownify filter.

    Location of markdown files
    If you include markdown files that should not get a menu entry, place them outside the content folder or exclude them otherwise.
    {{< include file="static/includes/table.md.part" markdown="true" >}}
    -

    Test Table

    Head 1Head 2Head 3
    123

    Include *.html file

    HTML content will be filtered by the safeHTML filter and added to the rendered page output.

    {{< include file="static/includes/example.html.part" >}}
    -

    This is heading 1

    This is heading 2

    This is heading 3

    This is heading 4

    This is heading 5
    This is heading 6

    Example 3: HTML

    HTML content will be filtered by the safeHTML filter and added to the rendered page output.

    {{< include file="/static/_includes/example.html.part" type="html" >}}
    +

    Example HTML include

    This is heading 4

    This is heading 5
    This is heading 6

    Example 4: Hugo Pages

    In some situations, it can be helpful to include Markdown files that also contain shortcodes. While the default method works fine to render plain Markdown, shortcodes are not parsed. The only way to get this to work is to use Hugo pages. There are several ways to structure these include pages, so whatever you do, keep in mind that Hugo needs to be able to render and serve these files as regular pages! How it works:

    1. First you need to create a directory within your content directory. For this example site _includes is used.
    2. To prevent the theme from embedding the page in the navigation, create a file _includes/_index.md and add geekdocHidden: true to the front matter.
    3. Place your Markdown files within the _includes folder e.g. /_includes/include-page.md. Make sure to name it *.md.
    4. Include the page using {{< include file="/_includes/include-page.md" type="page" >}}.

    Resulting structure should look like this:

    _includes/
    + ├── include-page.md
    + └── _index.md
    +

    Example page include

    Example Shortcode
    Shortcode used in an include page.
    Head 1Head 2Head 3
    123
  • \ No newline at end of file diff --git a/shortcodes/index.html b/shortcodes/index.html index f14843e..e32d9d7 100644 --- a/shortcodes/index.html +++ b/shortcodes/index.html @@ -1,7 +1,8 @@ Shortcodes | Hugo Geekdoc Example -
    +
    \ No newline at end of file diff --git a/shortcodes/index.xml b/shortcodes/index.xml deleted file mode 100644 index 44cebad..0000000 --- a/shortcodes/index.xml +++ /dev/null @@ -1,14 +0,0 @@ -Shortcodes on Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/Recent content in Shortcodes on Hugo Geekdoc ExampleHugoen<link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/buttons/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/buttons/</guid><description>Buttons are styled links that can lead to local page or external link. -{{&lt; button relref=&#34;/&#34; [class=&#34;...&#34;] &gt;}}Get Home{{&lt; /button &gt;}} {{&lt; button href=&#34;https://github.com/thegeeklab/hugo-geekdoc&#34; &gt;}}Contribute{{&lt; /button &gt;}} Example Get Home Contribute</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/columns/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/columns/</guid><description>Columns help organize shorter pieces of content horizontally for readability. -{{&lt; columns &gt;}} &lt;!-- begin columns block --&gt; # Left Content Dolor sit, sumo unique argument um no ... &lt;---&gt; &lt;!-- magic sparator, between columns --&gt; # Mid Content Dolor sit, sumo unique argument um no ... &lt;---&gt; &lt;!-- magic sparator, between columns --&gt; # Right Content Dolor sit, sumo unique argument um no ... {{&lt; /columns &gt;}} Example Left Dolor sit, sumo unique argument um no.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/expand/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/expand/</guid><description>Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it. -Example Default {{&lt; expand &gt;}} ## Markdown content Dolor sit, sumo unique ... {{&lt; /expand &gt;}} Expand ↕ Markdown content Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. -With Custom Label {{&lt; expand &#34;Custom Label&#34; &#34;.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/hints/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/hints/</guid><description>Hint shortcode can be used as hint/alerts/notification block. There are four colors to choose: info, ok, warning and danger. -{{&lt; hint [info|warning|danger] &gt;}} **Markdown content**\ Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. {{&lt; /hint &gt;}} Example Markdown content -Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/includes/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/includes/</guid><description>Include shortcode can include files of different types. By specifying a language, the included file will have syntax highlighting. -Shortcode {{&lt; include file=&#34;relative/path/from/hugo/root&#34; language=&#34;go&#34; markdown=[false|true] &gt;}} Attributes: -Name Usage default file path to the included file relative to the hugo root empty value language* language for syntax highlighting empty value markdown included file is markdown false options highlighting options linenos=table * if not set, the content will be rendered as plain HTML</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/mermaid/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/mermaid/</guid><description>Mermaid is library for generating SVG charts and diagrams from text. -Example sequenceDiagram Alice->>Bob: Hello Bob, how are you? alt is sick Bob->>Alice: Not so good :( else is well Bob->>Alice: Feeling fresh like a daisy end opt Extra response Bob->>Alice: Thanks for asking end sequenceDiagram Alice->>Bob: Hello Bob, how are you? alt is sick Bob->>Alice: Not so good :( else is well Bob->>Alice: Feeling fresh like a daisy end opt Extra response Bob->>Alice: Thanks for asking end</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/tabs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/tabs/</guid><description>Tabs let you organize content by context, for example installation instructions for each supported platform. -{{&lt; tabs &#34;uniqueid&#34; &gt;}} {{&lt; tab &#34;macOS&#34; &gt;}} # macOS Content {{&lt; /tab &gt;}} {{&lt; tab &#34;Linux&#34; &gt;}} # Linux Content {{&lt; /tab &gt;}} {{&lt; tab &#34;Windows&#34; &gt;}} # Windows Content {{&lt; /tab &gt;}} {{&lt; /tabs &gt;}} Example macOS macOS This is tab macOS content. -Dolor sit, sumo unique argument um no. Gracie nominal id xiv.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc-tree/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc-tree/</guid><description>The toc-tree shortcode will generate a Table of Content from a section file tree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode. -{{&lt; toc-tree &gt;}} Example As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the ToC Tree section.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc/</guid><description>Simple wrapper to generate a page Table of Content from a shortcode. -{{&lt; toc &gt;}} Level 1 Level 2 Level 2.1 Level 2.1.1 Level 2.1.1.1 Level 2.1.1.1.1 Level 2.2 Level 1 Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad.</description></item></channel></rss> \ No newline at end of file diff --git a/shortcodes/katex/index.html b/shortcodes/katex/index.html new file mode 100644 index 0000000..445e473 --- /dev/null +++ b/shortcodes/katex/index.html @@ -0,0 +1,73 @@ +<!DOCTYPE html><html lang="en" class="color-toggle-hidden"><head><meta charset="UTF-8"/><meta name="referrer" content="no-referrer"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="color-scheme" content="light dark"/><meta name="generator" content="Hugo 0.132.0"/><meta name="description" content="KaTeX shortcode let you render math typesetting in markdown document. +Usage {{< katex [display] [class="text-center"] >}} f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {{< /katex >}} Attributes class optional list List of space-separated CSS class names to apply. Default: none Example \[f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi\] KaTeX can be used inline, for example \(\pi(x)\) or used with the display parameter as above."/><title>KaTeX | Hugo Geekdoc Example +
    +
    GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

    KaTeX

    KaTeX shortcode let you render math typesetting in markdown document.

    Usage

    {{< katex [display] [class="text-center"] >}}
    +f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi
    +{{< /katex >}}
    +

    Attributes

    class +optional +list +
    List of space-separated CSS class names to apply.
    Default: +none

    Example

    \[f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi\]

    KaTeX can be used inline, for example +\(\pi(x)\) or used with the display parameter as above.

    \ No newline at end of file diff --git a/shortcodes/mermaid/index.html b/shortcodes/mermaid/index.html index b47a46b..420c5a2 100644 --- a/shortcodes/mermaid/index.html +++ b/shortcodes/mermaid/index.html @@ -1,7 +1,8 @@ -Mermaid | Hugo Geekdoc Example -
    +Mermaid | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -11,19 +12,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Mermaid

    Mermaid is library for generating SVG charts and diagrams from text.

    Example

    
    -
    -
    -
    -
    sequenceDiagram
    +justify-between" itemprop="breadcrumb">

    Mermaid

    Mermaid is library for generating SVG charts and diagrams from text.

    Usage

    {{< mermaid class="text-center" >}}
    +sequenceDiagram
    +    Alice->>Bob: Hello Bob, how are you?
    +    alt is sick
    +        Bob->>Alice: Not so good :(
    +    else is well
    +        Bob->>Alice: Feeling fresh like a daisy
    +    end
    +    opt Extra response
    +        Bob->>Alice: Thanks for asking
    +    end
    +{{< /mermaid >}}
    +

    Attributes

    class +optional +list +
    List of space-separated CSS class names to apply.
    Default: +none

    Example

    sequenceDiagram
         Alice->>Bob: Hello Bob, how are you?
         alt is sick
             Bob->>Alice: Not so good :(
    @@ -53,18 +79,21 @@
         opt Extra response
             Bob->>Alice: Thanks for asking
         end
    -
    sequenceDiagram
    -    Alice->>Bob: Hello Bob, how are you?
    -    alt is sick
    -        Bob->>Alice: Not so good :(
    -    else is well
    -        Bob->>Alice: Feeling fresh like a daisy
    -    end
    -    opt Extra response
    -        Bob->>Alice: Thanks for asking
    -    end
    -
  • \ No newline at end of file diff --git a/shortcodes/progress/index.html b/shortcodes/progress/index.html new file mode 100644 index 0000000..c346a3f --- /dev/null +++ b/shortcodes/progress/index.html @@ -0,0 +1,79 @@ +Progress | Hugo Geekdoc Example +
    +
    GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

    Progress

    A progress bar shows how far a process has progressed.

    Usage

    {{< progress title=Eating value=65 icon=gdoc_heart >}}
    +

    Attributes

    icon +optional +string +
    Icon to use. The value need to be an icon from an SVG sprite.
    Default: +none
    title +optional +string +
    Title text of the progress bar.
    Default: +none
    value +optional +integer +
    Progress value.
    Default: +0

    Example

    +Eating
    65%
    \ No newline at end of file diff --git a/shortcodes/propertylist/index.html b/shortcodes/propertylist/index.html new file mode 100644 index 0000000..2743fa5 --- /dev/null +++ b/shortcodes/propertylist/index.html @@ -0,0 +1,171 @@ +Properties | Hugo Geekdoc Example +
    +
    GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

    Properties

    The property list shortcode creates a custom HTML description list that can be used to display properties or variables and general dependent information. The shortcode requires a data file in data/properties/, e.g. data/properties/demo.yaml.

    Usage

    {{< propertylist name=demo (sort=name) (order=[asc|desc]) >}}
    +

    The supported attributes can be taken from the following example:

     1
    + 2
    + 3
    + 4
    + 5
    + 6
    + 7
    + 8
    + 9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +
    ---
    +properties:
    +  - name: prop1
    +    type: string
    +    description: Dummy description of the prop1 string property.
    +    required: true
    +
    +  - name: prop2
    +    type: int
    +    defaultValue: 10
    +    description:
    +      en: Another description for the integer property called prop2.
    +    required: false
    +    tags:
    +      en:
    +        - tag1
    +        - tag2
    +
    +  - name: prop3
    +    type: bool
    +    defaultValue: false
    +    description: |
    +      A `bool` property with a complex multiline description and embedded Markdown:
    +
    +      - List item 1
    +      - List item 2
    +
    +      More description how to use this property.      
    +    required: false
    +
    +  - name: a-prop
    +    type: string
    +    description: Property to demonstrate sorting.
    +    required: true
    +

    Attributes

    class +optional +list +
    List of space-separated CSS class names to apply.
    Default: +none
    href +optional +string +
    The URL to use as target of the button.
    Default: +none
    relref +optional +string +
    Executes the relref Hugo function to resolve the relative permalink of the specified page. The result is set as the target of the button.
    Default: +none
    size +optional +string +
    Preset of different button sizes. Supported values are regular|large.
    Default: +none

    Example

    a-prop +required +string +
    Property to demonstrate sorting.
    Default: +none
    prop1 +required +string +
    Dummy description of the prop1 string property.
    Default: +none
    prop2 +optional +int +tag1 +tag2 +
    Another description for the integer property called prop2.
    Default: +10
    prop3 +optional +bool +

    A bool property with a complex multiline description and embedded Markdown:

    • List item 1
    • List item 2

    More description how to use this property.

    Default: +false
    \ No newline at end of file diff --git a/shortcodes/tabs/index.html b/shortcodes/tabs/index.html index 4f7c454..75631e6 100644 --- a/shortcodes/tabs/index.html +++ b/shortcodes/tabs/index.html @@ -1,13 +1,14 @@ Tabs | Hugo Geekdoc Example -
    +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -17,19 +18,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Tabs

    Tabs let you organize content by context, for example installation instructions for each supported platform.

    {{< tabs "uniqueid" >}}
    +justify-between" itemprop="breadcrumb">

    Tabs

    Tabs let you organize content by context, for example installation instructions for each supported platform.

    Usage

    {{< tabs "uniqueid" >}}
     {{< tab "macOS" >}} # macOS Content {{< /tab >}}
     {{< tab "Linux" >}} # Linux Content {{< /tab >}}
     {{< tab "Windows" >}} # Windows Content {{< /tab >}}
     {{< /tabs >}}
     

    Example

    -

    macOS

    This is tab macOS content.

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +

    macOS

    This is tab macOS content.

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.

    -

    Linux

    This is tab Linux content.

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates -investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad +

    Linux

    This is tab Linux content.

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.

    -

    Windows

    This is tab Windows content.

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates +

    Windows

    This is tab Windows content.

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad -prompts feud gait, quid exercise emeritus bis e. In pro quints consequent.

  • \ No newline at end of file diff --git a/shortcodes/toc-tree/index.html b/shortcodes/toc-tree/index.html index 6864493..c6bc44d 100644 --- a/shortcodes/toc-tree/index.html +++ b/shortcodes/toc-tree/index.html @@ -1,10 +1,11 @@ Toc Tree | Hugo Geekdoc Example -
    +Usage {{< toc-tree [sortBy="title"] >}} Attributes sortBy optional string Override the default sort parameter set by geekdocFileTreeSortBy. Default: .Site.Params.geekdocFileTreeSortBy Example As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the ToC Tree section."/>ToC-Tree | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -14,19 +15,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Toc Tree

    The toc-tree shortcode will generate a Table of Content from a section file tree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode.

    {{< toc-tree >}}
    -

    Example

    As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the ToC Tree section.

  • \ No newline at end of file diff --git a/shortcodes/toc/index.html b/shortcodes/toc/index.html index 45d29bf..c23731d 100644 --- a/shortcodes/toc/index.html +++ b/shortcodes/toc/index.html @@ -1,10 +1,11 @@ Toc | Hugo Geekdoc Example -
    +Usage {{< toc (format=[html|raw]) >}} Attributes format optional string Format of the returned ToC. The html format creates an HTML wrapper to enable the geekdocToC parameter that limits the maximum ToC level to be displayed. This variant also automatically inserts a horizontal line after the ToC. The raw format returns the unformatted ToC, the parameter geekdocToC does not work in this mode."/>ToC | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -14,19 +15,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Toc

    Simple wrapper to generate a page Table of Content from a shortcode.

    {{< toc >}}
    -

    Level 1

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo.

    Level 2

    Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram.

    Level 2.1

    Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram.

    Level 2.1.1

    Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim.

    Level 2.1.1.1

    In pro quints consequent, denim fastidious copious quo ad.

    Level 2.1.1.1.1

    In pro quints consequent, denim fastidious copious quo ad.

    Level 2.2

    Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e.

    Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim. Per expendable foreordained interpretations cu, maxim sole pertinacity in ram.

  • \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index b906246..d7b8151 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/getting-started/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/configuration/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/posts/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/posts/initial-release/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/posts/hello_geekdoc/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/buttons/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/columns/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/expand/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/hints/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/includes/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/mermaid/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/tabs/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc-tree/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/code-blocks/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/color-schemes/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/menus/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/categories/https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-1/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-1/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-2/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-2/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/level-1-3-1/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-1/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-1/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-2/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-2/2021-01-30T22:53:45-05:00https://jlumbroso.github.io/hugo-geekdoc-github-example/tags/https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/2021-01-30T22:53:45-05:00 \ No newline at end of file +https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/getting-started/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/features/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/configuration/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/posts/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/posts/initial-release/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/tags/Documentation/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/posts/hello_geekdoc/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/tags/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/tags/Updates/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/_includes/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/_includes/include-page/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/asciidoc/admonition-icons/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/asciidoc/admonitions/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/asciidoc/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/avatar/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/buttons/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/features/code-blocks/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/columns/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/features/dark-mode/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/expand/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/hints/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/features/icon-sets/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/icons/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/images/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/includes/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/katex/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-1/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-1/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-1/level-1-2/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-2/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/level-1-3-1/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-1/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-1/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/collapse/level-2/level-2-2/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-2/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/menus/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/mermaid/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/features/multilingual/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/progress/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/propertylist/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/tabs/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/features/theming/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/shortcodes/toc-tree/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/2024-08-15T16:52:22-04:00https://jlumbroso.github.io/hugo-geekdoc-github-example/2024-08-15T16:52:22-04:00 \ No newline at end of file diff --git a/socialmedia.svg b/socialmedia.svg new file mode 100644 index 0000000..7379afb --- /dev/null +++ b/socialmedia.svg @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + hugo-geekdoc + DOCUMENTATION + + + + + + + + + diff --git a/socialmedia2.png b/socialmedia2.png new file mode 100644 index 0000000..e80fbf1 Binary files /dev/null and b/socialmedia2.png differ diff --git a/tags/Documentation/index.html b/tags/Documentation/index.html new file mode 100644 index 0000000..553c3d8 --- /dev/null +++ b/tags/Documentation/index.html @@ -0,0 +1,67 @@ +Documentation | Hugo Geekdoc Example +
    +
    GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

    Hello Geekdoc

    This is the first release of the Geekdoc theme. +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo. +Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim.
    Read full post +gdoc_arrow_right_alt
    \ No newline at end of file diff --git a/tags/Documentation/page/1/index.html b/tags/Documentation/page/1/index.html new file mode 100644 index 0000000..317c443 --- /dev/null +++ b/tags/Documentation/page/1/index.html @@ -0,0 +1,2 @@ +https://jlumbroso.github.io/hugo-geekdoc-github-example/tags/Documentation/ + \ No newline at end of file diff --git a/tags/Updates/index.html b/tags/Updates/index.html new file mode 100644 index 0000000..423640a --- /dev/null +++ b/tags/Updates/index.html @@ -0,0 +1,67 @@ +Updates | Hugo Geekdoc Example +
    +
    GitHub +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Toggle Dark/Light/Auto mode +Back to homepage +

    Hello Geekdoc

    This is the first release of the Geekdoc theme. +Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture. Ornateness bland it ex enc, est yeti am bongo detract re. Pro ad prompts feud gait, quid exercise emeritus bis e. In pro quints consequent, denim fastidious copious quo ad. Stet probates in duo. +Amalia id per in minimum facility, quid facet modifier ea ma. Ill um select ma ad, en ferric patine sentient vim.
    Read full post +gdoc_arrow_right_alt
    \ No newline at end of file diff --git a/tags/Updates/page/1/index.html b/tags/Updates/page/1/index.html new file mode 100644 index 0000000..39eadb1 --- /dev/null +++ b/tags/Updates/page/1/index.html @@ -0,0 +1,2 @@ +https://jlumbroso.github.io/hugo-geekdoc-github-example/tags/Updates/ + \ No newline at end of file diff --git a/tags/index.html b/tags/index.html index 034a452..90def58 100644 --- a/tags/index.html +++ b/tags/index.html @@ -1,7 +1,8 @@ -Tags | Hugo Geekdoc Example -
    +Tags | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    \ No newline at end of file diff --git a/tags/index.xml b/tags/index.xml deleted file mode 100644 index 86bea20..0000000 --- a/tags/index.xml +++ /dev/null @@ -1 +0,0 @@ -Tags on Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/tags/Recent content in Tags on Hugo Geekdoc ExampleHugoen \ No newline at end of file diff --git a/toc-tree/index.html b/toc-tree/index.html index a8c9659..fc9ce65 100644 --- a/toc-tree/index.html +++ b/toc-tree/index.html @@ -1,10 +1,11 @@ ToC Tree | Hugo Geekdoc Example -
    +Level 1 Level 1.1 Level 1.2 Level 1.3 Level 1.3.1 Level 2 Level 2.1 Level 2.2 "/>ToC-Tree | Hugo Geekdoc Example +
    \ No newline at end of file diff --git a/toc-tree/index.xml b/toc-tree/index.xml deleted file mode 100644 index 5d4d11e..0000000 --- a/toc-tree/index.xml +++ /dev/null @@ -1 +0,0 @@ -ToC Tree on Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/Recent content in ToC Tree on Hugo Geekdoc ExampleHugoen \ No newline at end of file diff --git a/toc-tree/level-1/index.html b/toc-tree/level-1/index.html index 8be2bd1..13d3dd3 100644 --- a/toc-tree/level-1/index.html +++ b/toc-tree/level-1/index.html @@ -1,10 +1,11 @@ Level 1 | Hugo Geekdoc Example -
    +
    \ No newline at end of file diff --git a/toc-tree/level-1/index.xml b/toc-tree/level-1/index.xml deleted file mode 100644 index 15835b7..0000000 --- a/toc-tree/level-1/index.xml +++ /dev/null @@ -1 +0,0 @@ -Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/Recent content on Hugo Geekdoc ExampleHugoenLevel 1.1https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-1/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-1/Level 1.1Level 1.2https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-2/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-2/Level 1.2 \ No newline at end of file diff --git a/toc-tree/level-1/level-1-1/index.html b/toc-tree/level-1/level-1-1/index.html index 72851e1..6c0d95d 100644 --- a/toc-tree/level-1/level-1-1/index.html +++ b/toc-tree/level-1/level-1-1/index.html @@ -1,7 +1,8 @@ Level 1.1 | Hugo Geekdoc Example -
    +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    \ No newline at end of file diff --git a/toc-tree/level-1/level-1-2/index.html b/toc-tree/level-1/level-1-2/index.html index 39ef352..03e610d 100644 --- a/toc-tree/level-1/level-1-2/index.html +++ b/toc-tree/level-1/level-1-2/index.html @@ -1,7 +1,8 @@ Level 1.2 | Hugo Geekdoc Example -
    +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    \ No newline at end of file diff --git a/toc-tree/level-1/level-1-3/index.html b/toc-tree/level-1/level-1-3/index.html index a88ab91..0ae425a 100644 --- a/toc-tree/level-1/level-1-3/index.html +++ b/toc-tree/level-1/level-1-3/index.html @@ -1,10 +1,11 @@ Level 1.3 | Hugo Geekdoc Example -
    +
    \ No newline at end of file diff --git a/toc-tree/level-1/level-1-3/index.xml b/toc-tree/level-1/level-1-3/index.xml deleted file mode 100644 index e53a024..0000000 --- a/toc-tree/level-1/level-1-3/index.xml +++ /dev/null @@ -1 +0,0 @@ -Level 1.3 on Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/Recent content in Level 1.3 on Hugo Geekdoc ExampleHugoenLevel 1.3.1https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/level-1-3-1/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-1/level-1-3/level-1-3-1/Level 1.3.1 \ No newline at end of file diff --git a/toc-tree/level-1/level-1-3/level-1-3-1/index.html b/toc-tree/level-1/level-1-3/level-1-3-1/index.html index b3c841a..ce32b7f 100644 --- a/toc-tree/level-1/level-1-3/level-1-3-1/index.html +++ b/toc-tree/level-1/level-1-3/level-1-3-1/index.html @@ -1,7 +1,8 @@ Level 1.3.1 | Hugo Geekdoc Example -
    +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    \ No newline at end of file diff --git a/toc-tree/level-2/index.html b/toc-tree/level-2/index.html index 5a5434f..5c5fb9a 100644 --- a/toc-tree/level-2/index.html +++ b/toc-tree/level-2/index.html @@ -1,7 +1,8 @@ Level 2 | Hugo Geekdoc Example -
    +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    \ No newline at end of file diff --git a/toc-tree/level-2/index.xml b/toc-tree/level-2/index.xml deleted file mode 100644 index 76bdcdb..0000000 --- a/toc-tree/level-2/index.xml +++ /dev/null @@ -1 +0,0 @@ -Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/Recent content on Hugo Geekdoc ExampleHugoenLevel 2.1https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-1/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-1/Level 2.1Level 2.2https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-2/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/toc-tree/level-2/level-2-2/Level 2.2 \ No newline at end of file diff --git a/toc-tree/level-2/level-2-1/index.html b/toc-tree/level-2/level-2-1/index.html index fd00668..b48d21c 100644 --- a/toc-tree/level-2/level-2-1/index.html +++ b/toc-tree/level-2/level-2-1/index.html @@ -1,7 +1,8 @@ Level 2.1 | Hugo Geekdoc Example -
    +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    \ No newline at end of file diff --git a/toc-tree/level-2/level-2-2/index.html b/toc-tree/level-2/level-2-2/index.html index dd3e62a..9f44be3 100644 --- a/toc-tree/level-2/level-2-2/index.html +++ b/toc-tree/level-2/level-2-2/index.html @@ -1,7 +1,8 @@ Level 2.2 | Hugo Geekdoc Example -
    +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    \ No newline at end of file diff --git a/usage/code-blocks/index.html b/usage/code-blocks/index.html deleted file mode 100644 index b12fc39..0000000 --- a/usage/code-blocks/index.html +++ /dev/null @@ -1,85 +0,0 @@ -Code Blocks | Hugo Geekdoc Example -
    -
    Toggle Dark/Light/Auto mode -Toggle Dark/Light/Auto mode -Toggle Dark/Light/Auto mode -Back to homepage -

    Code Blocks

    There are multiple ways to add code blocks. Most of them works out of the box only the Hugo shortcode <highlight> need some configuration to work properly.

    Inline code

    To display an inline shortcode use single quotes:

    `some code`
    -

    Example: some code

    Code blocks

    Code blocks can be uses without language specification:

    ```
    -some code
    -```
    -

    Example:

    some code
    -

    … or if you need language specific syntax highlighting:

    ```Shell
    -# some code
    -echo "Hello world"
    -```
    -

    Example:

    # some code
    -echo "Hello World"
    -

    Highlight shortcode

    Hugo has a build-in shortcode for syntax highlighting. To work properly with this theme, you have to set following options in your site configuration:

    -
    pygmentsUseClasses=true
    -pygmentsCodeFences=true
    -
    -
    pygmentsUseClasses: true
    -pygmentsCodeFences: true
    -

    You can use it like every other shortcode:

    {{< highlight Shell "linenos=table" >}}
    -# some code
    -echo "Hello World"
    -{{< /highlight >}}
    -

    Example:

    1
    -2
    -
    # some code
    -echo "Hello World"
    \ No newline at end of file diff --git a/usage/color-schemes/index.html b/usage/color-schemes/index.html deleted file mode 100644 index f01bc6b..0000000 --- a/usage/color-schemes/index.html +++ /dev/null @@ -1,100 +0,0 @@ -Color Schemes | Hugo Geekdoc Example -
    -
    Toggle Dark/Light/Auto mode -Toggle Dark/Light/Auto mode -Toggle Dark/Light/Auto mode -Back to homepage -

    Color Schemes

    If you want to customize the color scheme of the theme to give it your individual touch you are just a few lines CSS away. In general, you have to override the defaults, the easiest way to do so is to create a static/custom.css file right in your site root.

    All necessary class names are listed below. If you miss some classes required for a color scheme you are very welcome to create an Issue or Pull Request. For some inspiration you can have a look at https://www.color-hex.com/color-palettes/. The following listing use the HC-primary color palette as an example:

     1
    - 2
    - 3
    - 4
    - 5
    - 6
    - 7
    - 8
    - 9
    -10
    -11
    -12
    -13
    -14
    -15
    -16
    -17
    -18
    -19
    -20
    -21
    -22
    -23
    -24
    -25
    -26
    -
    /* default link color */
    -a { color: #1c388e; }
    -a:visited { color: #73bfb8 }
    -
    -/* site header */
    -.gdoc-header { background: #e66a4e; border-color: #404040; }
    -.gdoc-header__link, .gdoc-header__link:visited { color: #ffffff; }
    -
    -/* page links */
    -.gdoc-page__footer a, .gdoc-page__footer a:visited { color: #1c388e; }
    -.gdoc-page__header a, .gdoc-page__header a:visited { color: #1c388e; }
    -
    -/* site footer */
    -.gdoc-footer { background: #404040; color: #ffffff; }
    -.gdoc-footer__link{ color: #fecf50; }
    -.gdoc-footer__link:visited, .gdoc-footer__link:hover { color: #fecf50; }
    -
    -/* custom shortcodes */
    -/* button */
    -.gdoc-button { color: #495057; }
    -.gdoc-button:hover { background-color: #eb8771; border-color: #e66a4e; color: #ffffff; }
    -
    -/* hint */
    -.gdoc-hint.info { background: #d1d7e8; border-color: #324b99; color: black; }
    -.gdoc-hint.warning { background: #fef5dc; border-color: #e4ba48; color: black; }
    -.gdoc-hint.danger { background: #fae1db; border-color: #cf5f46; color: black; }

    And that is how the result will looks like. Happy customizing!

    HC-primary Color Scheme

    \ No newline at end of file diff --git a/usage/configuration/index.html b/usage/configuration/index.html index 6956aca..f065fc1 100644 --- a/usage/configuration/index.html +++ b/usage/configuration/index.html @@ -1,7 +1,8 @@ -Configuration | Hugo Geekdoc Example -
    +Configuration | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -11,19 +12,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Configuration

    Site configuration

    -
    baseURL = "http://localhost"
    +justify-between" itemprop="breadcrumb">

    Configuration

    Site configuration

    +
    baseURL = "http://localhost"
     title = "Geekdocs"
     theme = "hugo-geekdoc"
     
    @@ -50,14 +64,21 @@
     disablePathToLower = true
     enableGitInfo = true
     
    +# Required if you want to render robots.txt template
    +enableRobotsTXT = true
    +
     [markup]
       [markup.goldmark.renderer]
    -    # Needed for mermaid shortcode
    +    # Needed for mermaid shortcode or when nesting shortcodes (e.g. img within
    +    # columns or tabs)
         unsafe = true
       [markup.tableOfContents]
         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/)
    @@ -68,28 +89,32 @@
       # relative to your 'static/' folder.
       geekdocLogo = "logo.png"
     
    -  # (Optional, default false) Render menu from data file im 'data/menu/main.yaml'.
    +  # (Optional, default false) Render menu from data file in 'data/menu/main.yaml'.
    +  # See also https://geekdocs.de/usage/menus/#bundle-menu.
       geekdocMenuBundle = true
     
    -  # (Optional, default true) Show page navigation links at the bottom of each
    -  # docs page (bundle menu only).
    +  # (Optional, default false) Collapse all menu entries, can not be overwritten
    +  # per page if enabled. Can be enabled per page via 'geekdocCollapseSection'.
    +  geekdocCollapseAllSections = true
    +
    +  # (Optional, default true) Show page navigation links at the bottom of each docs page.
       geekdocNextPrev = false
     
       # (Optional, default true) Show a breadcrumb navigation bar at the top of each docs page.
       # You can also specify this parameter per page in front matter.
       geekdocBreadcrumb = false
     
    -  # (Optional, default none) Set source repository location. Used for 'Edit this page' links.
    +  # (Optional, default none) Set source repository location. Used for 'Edit page' links.
       # You can also specify this parameter per page in front matter.
       geekdocRepo = "https://github.com/thegeeklab/hugo"
     
    -  # (Optional, default none) Enable 'Edit this page' links. Requires 'GeekdocRepo' param
    -  # and path must point to 'content' directory of repo.
    +  # (Optional, default none) Enable 'Edit page' links. Requires 'geekdocRepo' param
    +  # and the path must point to the parent directory of the 'content' folder.
       # You can also specify this parameter per page in front matter.
    -  geekdocEditPath = "edit/master/exampleSite/content"
    +  geekdocEditPath = "edit/main/exampleSite"
     
       # (Optional, default true) Enables search function with flexsearch.
    -  # Index is built on the fly and might slowdown your website.
    +  # Index is built on the fly and might slow down your website.
       geekdocSearch = false
     
       # (Optional, default false) Display search results with the parent folder as prefix. This
    @@ -110,8 +135,45 @@
     
       # (Optional, default true) Copy anchor url to clipboard on click.
       geekdocAnchorCopy = true
    +
    +  # (Optional, default true) Enable or disable image lazy loading for images rendered
    +  # by the 'img' shortcode.
    +  geekdocImageLazyLoading = true
    +
    +  # (Optional, default false) Set HTMl <base> to .Site.Home.Permalink if enabled. It might be required
    +  # if a subdirectory is used within Hugos BaseURL.
    +  # See https://developer.mozilla.org/de/docs/Web/HTML/Element/base.
    +  geekdocOverwriteHTMLBase = false
    +
    +  # (Optional, default true) Enable or disable the JavaScript based color theme toggle switch. The CSS based
    +  # user preference mode still works.
    +  geekdocDarkModeToggle = false
    +
    +  # (Optional, default false) Auto-decrease brightness of images and add a slightly grayscale to avoid
    +  # bright spots while using the dark mode.
    +  geekdocDarkModeDim = false
    +
    +  # (Optional, default false) Enforce code blocks to always use the dark color theme.
    +  geekdocDarkModeCode = false
    +
    +  # (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
    +
    +  # (Optional, default 'title') Configure how to sort file-tree menu entries. Possible options are 'title', 'linktitle',
    +  # 'date', 'publishdate', 'expirydate' or 'lastmod'. Every option can be used with a reverse modifier as well
    +  # e.g. 'title_reverse'.
    +  geekdocFileTreeSortBy = "title"
    +
    +  # (Optional, default none) Adds a "Content licensed under <license>" line to the footer.
    +  # Could be used if you want to define a default license for your content.
    +  [params.geekdocContentLicense]
    +    name = "CC BY-SA 4.0"
    +    link = "https://creativecommons.org/licenses/by-sa/4.0/"
     
    -
    ---
    +
    ---
     baseURL: "http://localhost"
     title: "Geekdocs"
     theme: "hugo-geekdoc"
    @@ -122,15 +184,22 @@
     disablePathToLower: true
     enableGitInfo: true
     
    +# Required if you want to render robots.txt template
    +enableRobotsTXT: true
    +
     markup:
       goldmark:
    -    # Needed for mermaid shortcode
    +    # Needed for mermaid shortcode or when nesting shortcodes (e.g. img within
    +    # columns or tabs)
         renderer:
           unsafe: true
       tableOfContents:
         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/)
    @@ -141,29 +210,32 @@
       # relative to your 'static/' folder.
       geekdocLogo: logo.png
     
    -  # (Optional, default false) Render menu from data file im 'data/menu/main.yaml'.
    -  # See also https://geekdocs.de/usage/menus/#bundle-menu
    +  # (Optional, default false) Render menu from data file in 'data/menu/main.yaml'.
    +  # See also https://geekdocs.de/usage/menus/#bundle-menu.
       geekdocMenuBundle: true
     
    -  # (Optional, default true) Show page navigation links at the bottom of each
    -  # docs page (bundle menu only).
    +  # (Optional, default false) Collapse all menu entries, can not be overwritten
    +  # per page if enabled. Can be enabled per page via 'geekdocCollapseSection'.
    +  geekdocCollapseAllSections: true
    +
    +  # (Optional, default true) Show page navigation links at the bottom of each docs page.
       geekdocNextPrev: false
     
       # (Optional, default true) Show a breadcrumb navigation bar at the top of each docs page.
       # You can also specify this parameter per page in front matter.
       geekdocBreadcrumb: false
     
    -  # (Optional, default none) Set source repository location. Used for 'Edit this page' links.
    +  # (Optional, default none) Set source repository location. Used for 'Edit page' links.
       # You can also specify this parameter per page in front matter.
       geekdocRepo: "https://github.com/thegeeklab/hugo-geekdoc"
     
    -  # (Optional, default none) Enable "Edit this page" links. Requires 'GeekdocRepo' param
    -  # and path must point to 'content' directory of repo.
    +  # (Optional, default none) Enable 'Edit page' links. Requires 'geekdocRepo' param
    +  # and the path must point to the parent directory of the 'content' folder.
       # You can also specify this parameter per page in front matter.
    -  geekdocEditPath: edit/master/exampleSite/content
    +  geekdocEditPath: edit/main/exampleSite
     
       # (Optional, default true) Enables search function with flexsearch.
    -  # Index is built on the fly and might slowdown your website.
    +  # Index is built on the fly and might slow down your website.
       geekdocSearch: false
     
       # (Optional, default false) Display search results with the parent folder as prefix. This
    @@ -184,11 +256,50 @@
     
       # (Optional, default true) Copy anchor url to clipboard on click.
       geekdocAnchorCopy: true
    +
    +  # (Optional, default true) Enable or disable image lazy loading for images rendered
    +  # by the 'img' shortcode.
    +  geekdocImageLazyLoading: true
    +
    +  # (Optional, default false) Set HTMl <base> to .Site.Home.Permalink if enabled. It might be required
    +  # if a subdirectory is used within Hugos BaseURL.
    +  # See https://developer.mozilla.org/de/docs/Web/HTML/Element/base.
    +  geekdocOverwriteHTMLBase: false
    +
    +  # (Optional, default true) Enable or disable the JavaScript based color theme toggle switch. The CSS based
    +  # user preference mode still works.
    +  geekdocDarkModeToggle: false
    +
    +  # (Optional, default false) Auto-decrease brightness of images and add a slightly grayscale to avoid
    +  # bright spots while using the dark mode.
    +  geekdocDarkModeDim: false
    +
    +  # (Optional, default false) Enforce code blocks to always use the dark color theme.
    +  geekdocDarkModeCode: false
    +
    +  # (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
    +
    +  # (Optional, default 'title') Configure how to sort file-tree menu entries. Possible options are 'title', 'linktitle',
    +  # 'date', 'publishdate', 'expirydate' or 'lastmod'. Every option can be used with a reverse modifier as well
    +  # e.g. 'title_reverse'.
    +  geekdocFileTreeSortBy: "title"
    +
    +  # (Optional, default none) Adds a "Content licensed under <license>" line to the footer.
    +  # Could be used if you want to define a default license for your content.
    +  geekdocContentLicense:
    +    name: CC BY-SA 4.0
    +    link: https://creativecommons.org/licenses/by-sa/4.0/
     

    Page configuration

    -
    # Set type to 'posts' if you want to render page as blogpost
    +
    # Set type to 'posts' if you want to render page as blogpost
     type = "posts"
     
    -# Set page weight to re-arrange items in file-tree menu.
    +# Hugo predefined front matter variable, to re-arrange items in file-tree menu
    +# See weights section of
    +# https://gohugo.io/content-management/front-matter/#predefined
     weight = 10
     
     # Set how many table of contents levels to be showed on page.
    @@ -197,17 +308,21 @@
     # Set a description for the current page. This will be shown in toc-trees objects.
     geekdocDescription =
     
    +# Set false to hide the whole left navigation sidebar. Beware that it will make
    +# navigation pretty hard without adding some kind of on-page navigation.
    +geekdocNav = true
    +
     # Show a breadcrumb navigation bar at the top of each docs page.
     geekdocBreadcrumb = false
     
     # Set source repository location.
     geekdocRepo = "https://github.com/thegeeklab/hugo-geekdoc"
     
    -# Enable "Edit this page" links. Requires 'GeekdocRepo' param and path must point
    -# to 'content' directory of repo.
    -geekdocEditPath = "edit/master/exampleSite/content"
    +# Enable 'Edit page' links. Requires 'geekdocRepo' param and the path must point to
    +# the parent directory of the 'content' folder.
    +geekdocEditPath = "edit/main/exampleSite"
     
    -# Used for 'Edit this page' link, set to '.File.Path' by default.
    +# Used for 'Edit page' link, set to '.File.Path' by default.
     # Can be overwritten by a path relative to 'geekdocEditPath'
     geekdocFilePath =
     
    @@ -226,8 +341,17 @@
     
     # Add an anchor link to headlines.
     geekdocAnchor = true
    +
    +# If you have protected some pages with e.g. basic authentication you may want to exclude these pages
    +# from data file, otherwise information may be leaked. Setting this parameter to 'true' will exclude the
    +# page from search data, feeds, etc.
    +# WARNING: Consider hosting a standalone, fully auth-protected static page for secret information instead!
    +geekdocProtected = false
    +
    +# Set 'left' (default), 'center' or 'right' to configure the text align of a page.
    +geekdocAlign = "left"
     
    -
    # Set type to 'posts' if you want to render page as blogpost.
    +
    # Set type to 'posts' if you want to render page as blogpost.
     type: "posts"
     
     # Set page weight to re-arrange items in file-tree menu.
    @@ -239,17 +363,21 @@
     # Set a description for the current page. This will be shown in toc-trees objects.
     geekdocDescription:
     
    +# Set false to hide the whole left navigation sidebar. Beware that it will make
    +# navigation pretty hard without adding some kind of on-page navigation.
    +geekdocNav: true
    +
     # Show a breadcrumb navigation bar at the top of each docs page.
     geekdocBreadcrumb: false
     
     # Set source repository location.
     geekdocRepo: "https://github.com/thegeeklab/hugo-geekdoc"
     
    -# Enable "Edit this page" links. Requires 'GeekdocRepo' param and path must point
    -# to 'content' directory of repo.
    -geekdocEditPath: "edit/master/exampleSite/content"
    +# Enable 'Edit page' links. Requires 'geekdocRepo' param and the path must point to
    +# the parent directory of the 'content' folder.
    +geekdocEditPath: "edit/main/exampleSite"
     
    -# Used for 'Edit this page' link, set to '.File.Path' by default.
    +# Used for 'Edit page' link, set to '.File.Path' by default.
     # Can be overwritten by a path relative to 'geekdocEditPath'
     geekdocFilePath:
     
    @@ -268,8 +396,19 @@
     
     # Add an anchor link to headlines.
     geekdocAnchor: true
    +
    +# If you have protected some pages with e.g. basic authentication you may want to exclude these pages
    +# from data file, otherwise information may be leaked. Setting this parameter to 'true' will exclude the
    +# page from search data, feeds, etc.
    +# WARNING: Consider hosting a standalone, fully auth-protected static page for secret information instead!
    +geekdocProtected: false
    +
    +# Set 'left' (default), 'center' or 'right' to configure the text align of a page.
    +geekdocAlign: "left"
     
    \ No newline at end of file diff --git a/usage/getting-started/index.html b/usage/getting-started/index.html index 4b7bf9b..4493e03 100644 --- a/usage/getting-started/index.html +++ b/usage/getting-started/index.html @@ -1,10 +1,8 @@ -Getting Started | Hugo Geekdoc Example -
    +Getting Started | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -14,19 +12,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Getting Started

    This page tells you how to get started with the Geekdoc theme, including installation and basic configuration.

    Install requirements

    You need a recent version of Hugo for local builds and previews of sites that use Geekdoc. As we are using gulp as pre-processor the normal version of Hugo is sufficient. If you prefer the extended version of Hugo anyway this will work as well. For comprehensive Hugo documentation, see gohugo.io.

    If you want to use the theme from a cloned branch instead of a release tarball you’ll need to install gulp locally and run the default pipeline once to create all required assets.

    # install required packages from package.json
    +justify-between" itemprop="breadcrumb">

    Getting Started

    This page tells you how to get started with the Geekdoc theme, including installation and basic configuration.

    Install requirements

    You need a recent version of Hugo for local builds and previews of sites that use Geekdoc. As we are using webpack as pre-processor, the normal version of Hugo is sufficient. If you prefer the extended version of Hugo anyway this will work as well. For comprehensive Hugo documentation, see gohugo.io.

    If you want to use the theme from a cloned branch instead of a release tarball you’ll need to install webpack locally and run the build script once to create all required assets.

    # install required packages from package.json
     npm install
     
    -# run gulp pipeline to build required assets
    -npx gulp default
    -

    Using the theme

    To prepare your new site environment just a few steps are required:

    1. Create a new empty Hugo site.

      hugo new site demosite
      -
    2. Switch to the root of the new site.

      cd demosite
      -
    3. Install the Geekdoc theme from a release bundle (recommended) or from Git branch.

    4. Create the minimal required Hugo configuration config.toml. For all configuration options see here.

      baseURL = "http://localhost"
      +# run the build script to build required assets
      +npm run build
      +
      +# build release tarball
      +npm run pack
      +

      Using the theme

      To prepare your new site environment just a few steps are required:

      1. Create a new empty Hugo site.

        hugo new site demosite
        +
      2. Switch to the root of the new site.

        cd demosite
        +
      3. Install the Geekdoc theme from a release bundle (recommended) or from Git branch.

      4. Create the minimal required Hugo configuration config.toml. For all configuration options take a look at the configuration page.

        baseURL = "http://localhost"
         title = "Geekdocs"
         theme = "hugo-geekdoc"
         
        +pluralizeListTitles = false
        +
         # Geekdoc required configuration
         pygmentsUseClasses = true
         pygmentsCodeFences = true
         disablePathToLower = true
         
        +# Required if you want to render robots.txt template
        +enableRobotsTXT = true
        +
         # Needed for mermaid shortcodes
         [markup]
           [markup.goldmark.renderer]
        -    # Needed for mermaid shortcode
        +    # Needed for mermaid shortcode or when nesting shortcodes (e.g. img within
        +    # columns or tabs)
             unsafe = true
           [markup.tableOfContents]
             startLevel = 1
             endLevel = 9
        -
      5. Test your site.

        hugo server -D
        -

      Option 1: Download pre-build release bundle

      Download and extract the latest release bundle into the theme directory.

      mkdir -p themes/hugo-geekdoc/
      +
      +[taxonomies]
      +   tag = "tags"
      +
    5. Test your site.

      hugo server -D
      +

      The -D or --buildDrafts option is used to include content marked as draft during the build. It is used because content pages created with the hugo new content command have the draft flag set by default and this can lead to build errors in newly created projects. For projects with a production-ready content structure, this flag is not required in most cases and can be omitted.

    Option 1: Download pre-build release bundle

    Download and extract the latest release bundle into the theme directory.

    mkdir -p themes/hugo-geekdoc/
     curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C themes/hugo-geekdoc/ --strip-components=1
    -

    Option 2: Clone the GitHub repository

    Info
    Keep in mind this method is not recommended and needs some extra steps to get it working. +

    Option 2: Clone the GitHub repository

    Keep in mind this method is not recommended and needs some extra steps to get it working. If you want to use the Theme as submodule keep in mind that your build process need to -run the described steps as well.

    Clone the Geekdoc git repository.

    git clone https://github.com/thegeeklab/hugo-geekdoc.git themes/geekdoc
    -

    Build required theme assets e.g. CSS files and SVG sprites with gulp.

    npx gulp default
    +run the described steps as well.

    Clone the Geekdoc git repository.

    git clone https://github.com/thegeeklab/hugo-geekdoc.git themes/hugo-geekdoc
    +

    Build required theme assets e.g. CSS files and SVG sprites.

    npm install
    +npm run build
    +

    Deployments

    Netlify

    There are several ways to deploy your site with this theme on Netlify. Regardless of which solution you choose, the main goal is to ensure that the prebuilt theme release tarball is used or to run the required commands to prepare the theme assets before running the Hugo build command.

    Here are some possible solutions:

    Use a Makefile

    Add a Makefile to your repository to bundle the required steps.

    The Makefile is only an example. Depending on your project structure, BASEDIR or THEMEDIR may need to be adapted.
    # Please change the theme version to the latest release version.
    +THEME_VERSION := v0.44.1
    +THEME := hugo-geekdoc
    +BASEDIR := docs
    +THEMEDIR := $(BASEDIR)/themes
    +
    +.PHONY: doc
    +doc: doc-assets doc-build
    +
    +.PHONY: doc-assets
    +doc-assets:
    +	mkdir -p $(THEMEDIR)/$(THEME)/ ; \
    +	curl -sSL "https://github.com/thegeeklab/$(THEME)/releases/download/${THEME_VERSION}/$(THEME).tar.gz" | tar -xz -C $(THEMEDIR)/$(THEME)/ --strip-components=1
    +
    +.PHONY: doc-build
    +doc-build:
    +	cd $(BASEDIR); hugo
    +
    +.PHONY: clean
    +clean:
    +	rm -rf $(THEMEDIR) && \
    +	rm -rf $(BASEDIR)/public
    +

    This Makefile can be used in your netlify.toml, take a look at the Netlify example for more information:

    [build]
    +publish = "docs/public"
    +command = "make doc"
    +

    Chain required commands

    Chain all required commands to prepare the theme and build your site on the command option in your netlify.toml like this:

    [build]
    +publish = "docs/public"
    +command = "command1 && command 2 && command3 && hugo"
    +

    Subdirectories

    As deploying Hugo sites on subdirectories is not as robust as on subdomains, we do not recommend this. +If you have a choice, using a domain/subdomain should always be the preferred solution!

    If you want to deploy your site to a subdirectory of your domain, some extra steps are required:

    • Configure your Hugo base URL e.g. baseURL = http://localhost/demo/.
    • Don’t use relativeURLs: false nor canonifyURLs: true as is can cause unwanted side effects!

    There are two ways to get Markdown links or images working:

    • Use the absolute path including your subdirectory e.g. [testlink](/demo/example-site)
    • Overwrite the HTML base in your site configuration with geekdocOverwriteHTMLBase = true and use the relative path e.g. [testlink](example-site)

    But there is another special case if you use geekdocOverwriteHTMLBase = true. If you use anchors in your Markdown links you have to ensure to always include the page path. As an example [testlink](#some-anchor) will resolve to http://localhost/demo/#some-anchor and not automatically include the current page!

    Known Limitations

    Minify HTML results in spacing issues

    Using hugo --minify without further configuration or using other minify tools that also minify HTML files might result in spacing issues in the theme and is not supported.

    After some testing we decided to not spend effort to fix this issue for now as the benefit is very low. There are some parts of the theme where spaces between HTML elements matters but were stripped by minify tools. Some of these issues are related to gohugoio/hugo#6892. While recommendation like “don’t depend on whitespace in your layout” sounds reasonable, it seems to be not that straight forward especially for something like embedded icons into the text flow.

    If you still want to use Hugo’s minify flag you should at least exclude HTML files in your site configuration as described in the Hugo documentation:

    [minify]
    +  disableHTML = true
     
  • \ No newline at end of file diff --git a/usage/index.html b/usage/index.html index c8314a5..6ddeb94 100644 --- a/usage/index.html +++ b/usage/index.html @@ -1,7 +1,8 @@ Usage | Hugo Geekdoc Example -
    +
    \ No newline at end of file diff --git a/usage/index.xml b/usage/index.xml deleted file mode 100644 index c4e0c75..0000000 --- a/usage/index.xml +++ /dev/null @@ -1,9 +0,0 @@ -Usage on Hugo Geekdoc Examplehttps://jlumbroso.github.io/hugo-geekdoc-github-example/usage/Recent content in Usage on Hugo Geekdoc ExampleHugoenGetting Startedhttps://jlumbroso.github.io/hugo-geekdoc-github-example/usage/getting-started/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/getting-started/This page tells you how to get started with the Geekdoc theme, including installation and basic configuration. -Install requirements Using the theme Option 1: Download pre-build release bundle Option 2: Clone the GitHub repository Install requirements You need a recent version of Hugo for local builds and previews of sites that use Geekdoc. As we are using gulp as pre-processor the normal version of Hugo is sufficient. If you prefer the extended version of Hugo anyway this will work as well.Configurationhttps://jlumbroso.github.io/hugo-geekdoc-github-example/usage/configuration/Mon, 01 Jan 0001 00:00:00 +0000https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/configuration/Site configuration Page configuration Site configuration TOML baseURL = &#34;http://localhost&#34; title = &#34;Geekdocs&#34; theme = &#34;hugo-geekdoc&#34; # Required to get well formatted code blocks pygmentsUseClasses = true pygmentsCodeFences = true disablePathToLower = true enableGitInfo = true [markup] [markup.goldmark.renderer] # Needed for mermaid shortcode unsafe = true [markup.tableOfContents] startLevel = 1 endLevel = 9 [params] # (Optional, default 6) Set how many table of contents levels to be showed on page.<link>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/code-blocks/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/code-blocks/</guid><description>There are multiple ways to add code blocks. Most of them works out of the box only the Hugo shortcode &lt;highlight&gt; need some configuration to work properly. -Inline code Code blocks Highlight shortcode Inline code To display an inline shortcode use single quotes: -`some code` Example: some code -Code blocks Code blocks can be uses without language specification: -``` some code ``` Example: -some code &hellip; or if you need language specific syntax highlighting:</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/color-schemes/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/color-schemes/</guid><description>If you want to customize the color scheme of the theme to give it your individual touch you are just a few lines CSS away. In general, you have to override the defaults, the easiest way to do so is to create a static/custom.css file right in your site root. -All necessary class names are listed below. If you miss some classes required for a color scheme you are very welcome to create an Issue or Pull Request.</description></item><item><title/><link>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/menus/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://jlumbroso.github.io/hugo-geekdoc-github-example/usage/menus/</guid><description>The theme supports two different kinds of menus. File-tree menu is the default one and does not require further configuration to work. If you want full control about your menu the bundle menu is a powerful option to accomplish it. -File-tree menu Bundle menu More menu File-tree menu As the name already suggests, the file tree menu builds a menu from the file system structure of the content folder. By default, areas and subareas are sorted alphabetically by the title of the pages.</description></item></channel></rss> \ No newline at end of file diff --git a/usage/menus/index.html b/usage/menus/index.html index 5df15d6..9c7114d 100644 --- a/usage/menus/index.html +++ b/usage/menus/index.html @@ -1,10 +1,11 @@ <!DOCTYPE html><html lang="en" class="color-toggle-hidden"><head><meta charset="UTF-8"/><meta name="referrer" content="no-referrer"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="color-scheme" content="light dark"/><meta name="generator" content="Hugo 0.132.0"/><meta name="description" content="The theme supports two different kinds of menus. File-tree menu is the default one and does not require further configuration to work. If you want full control about your menu the bundle menu is a powerful option to accomplish it. -File-tree menu Bundle menu More menu File-tree menu As the name already suggests, the file tree menu builds a menu from the file system structure of the content folder. By default, areas and subareas are sorted alphabetically by the title of the pages."/><title>Menus | Hugo Geekdoc Example -
    +File-tree menu Bundle menu More menu Extra Header Menu File-tree menu As the name already suggests, the file tree menu builds a menu from the file system structure of the content folder."/>Menus | Hugo Geekdoc Example +
    Toggle Dark/Light/Auto mode +Hugo Geekdoc Example
    GitHub +Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage @@ -14,19 +15,32 @@
  • +
  • +
  • +
  • +
  • More

    More

    Menus

    The theme supports two different kinds of menus. File-tree menu is the default one and does not require further configuration to work. If you want full control about your menu the bundle menu is a powerful option to accomplish it.

    File-tree menu

    As the name already suggests, the file tree menu builds a menu from the file system structure of the content folder. By default, areas and subareas are sorted alphabetically by the title of the pages. To manipulate the order the weight parameter in a page front matter can be used. To structure your content folder you have to use page bundles, single files are not supported. Hugo will render build single files in the content folder just fine but it will not be added to the menu.

    Example:

    File system structure:

    content/
    +justify-between" itemprop="breadcrumb">

    Menus

    The theme supports two different kinds of menus. File-tree menu is the default one and does not require further configuration to work. If you want full control about your menu the bundle menu is a powerful option to accomplish it.

    File-tree menu

    As the name already suggests, the file tree menu builds a menu from the file system structure of the content folder. By default, areas and subareas are sorted alphabetically by the title of the pages. To manipulate the order the weight parameter in a page front matter can be used. To structure your content folder you have to use page bundles, single files are not supported. Hugo will render build single files in the content folder just fine but it will not be added to the menu.

    Example:

    File system structure:

    content/
     ├── level-1
     │   ├── _index.md
     │   ├── level-1-1.md
    @@ -54,11 +68,11 @@
         ├── _index.md
         ├── level-2-1.md
         └── level-2-2.md
    -

    Example file-tree menu

    Bundle menu

    This type of navigation needs to be enabled first by setting geekdocMenuBundle to true in your site configuration. After you have activated the bundle menu, you start with an empty navigation. This is intentional because bundle menus have to be defined manually in a data file. While this increases the effort it also offers maximum flexibility in the design. The data file needs to be written in YAML and placed at data/menu/main.yml.

    Example:

    ---
    +

    Bundle menu

    This type of navigation needs to be enabled first by setting geekdocMenuBundle to true in your site configuration. After you have activated the bundle menu, you start with an empty navigation. This is intentional because bundle menus have to be defined manually in a data file. While this increases the effort it also offers maximum flexibility in the design. The data file needs to be written in YAML and placed at data/menu/main.yaml.

    Example:

    ---
     main:
       - name: Level 1
         ref: "/level-1"
    -    icon: "notification"
    +    icon: "gdoc_notification"
         sub:
           - name: Level 1.1
             ref: "/level-1/level-1-1"
    @@ -76,21 +90,33 @@
             ref: "/level-2/level-2-1"
           - name: Level 2.2
             ref: "/level-2/level-2-2"
    -

    As an advantage you can add icons to your menu entries e.g. icon: "notification".

    Example bundle menu

    More menu

    Tip
    The more menu is special type of the bundle menu and can be combined with the default file-tree menu.

    As this is a special type of the bundle menu it is basically working in the same way. To enable it just add a data file to data/menu/more.yml. The more menu will also work with the file-tree menu and therefor don’t need to be enabled by the geekdocMenuBundle parameter.

    Example:

    ---
    +      - name: Level 2.2 Anchor
    +        ref: /level-2/level-2-2
    +        # Anchor to add to the entry. This example will result in `/level-2/level-2-2/#anchor`
    +        anchor: anchor
    +

    As an advantage you can add icons to your menu entries e.g. icon: "gdoc_notification".

    More menu

    Tip
    The more menu is special type of the bundle menu and can be combined with the default file-tree menu.

    As this is a special type of the bundle menu it is basically working in the same way. To enable it just add a data file to data/menu/more.yaml. The more menu will also work with the file-tree menu and therefor don’t need to be enabled by the geekdocMenuBundle parameter.

    Example:

    ---
     more:
       - name: News
         ref: "/#"
    -    icon: "notification"
    +    icon: "gdoc_notification"
       - name: Releases
         ref: "https://github.com/thegeeklab/hugo-geekdoc/releases"
         external: true
    -    icon: "download"
    +    icon: "gdoc_download"
       - name: "View Source"
         ref: "https://github.com/thegeeklab/hugo-geekdoc"
         external: true
    -    icon: "github"
    -

    Example bundle menu

  • \ No newline at end of file