docs: enchance pages navigation

This commit is contained in:
Xin 2023-08-28 22:45:29 +01:00
parent e1fa9e73d2
commit b96eb01af3
9 changed files with 16 additions and 2 deletions

View File

@ -1,6 +1,8 @@
--- ---
linkTitle: Advanced linkTitle: Advanced
title: Advanced Topics title: Advanced Topics
prev: /docs/guide/shortcodes/tabs
next: /docs/advanced/multi-language
--- ---
This section covers some advanced topics of the theme. This section covers some advanced topics of the theme.

View File

@ -1,6 +1,7 @@
--- ---
title: "Multi-language" title: "Multi-language"
weight: 1 weight: 1
prev: /docs/advanced
--- ---
Hextra supports creating site with multiple languages using Hugo's [multilingual mode](https://gohugo.io/content-management/multilingual/). Hextra supports creating site with multiple languages using Hugo's [multilingual mode](https://gohugo.io/content-management/multilingual/).

View File

@ -1,6 +1,7 @@
--- ---
title: Guide title: Guide
weight: 2 weight: 2
prev: /docs/getting-started
next: /docs/guide/organize-files next: /docs/guide/organize-files
sidebar: sidebar:
open: true open: true

View File

@ -1,6 +1,7 @@
--- ---
title: Diagrams title: Diagrams
weight: 6 weight: 6
next: /docs/guide/shortcodes
--- ---
Currently, Hextra supports [Mermaid](#mermaid) for diagrams. Currently, Hextra supports [Mermaid](#mermaid) for diagrams.

View File

@ -46,7 +46,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-
### Code Blocks ### Code Blocks
{{< cards >}} {{< cards >}}
{{< card link="/docs/guide/syntax-highlighting" title="Syntax Highlighting" icon="sparkles" >}} {{< card link="../../guide/syntax-highlighting" title="Syntax Highlighting" icon="sparkles" >}}
{{< /cards >}} {{< /cards >}}
### Lists ### Lists

View File

@ -1,6 +1,7 @@
--- ---
title: Organize Files title: Organize Files
weight: 1 weight: 1
prev: /docs/guide
--- ---
## Directory Structure ## Directory Structure

View File

@ -1,6 +1,8 @@
--- ---
title: Shortcodes title: Shortcodes
weight: 9 weight: 9
prev: /docs/guide/diagrams
next: /docs/guide/shortcodes/callout
--- ---
[Hugo Shortcodes](https://gohugo.io/content-management/shortcodes/) are simple snippets inside your content files calling built-in or custom templates. [Hugo Shortcodes](https://gohugo.io/content-management/shortcodes/) are simple snippets inside your content files calling built-in or custom templates.
@ -9,7 +11,7 @@ Hextra provides a collection of beautiful shortcodes to enhance your content.
{{< cards >}} {{< cards >}}
{{< card link="callouts" title="Callouts" icon="warning" >}} {{< card link="callout" title="Callout" icon="warning" >}}
{{< card link="cards" title="Cards" icon="card" >}} {{< card link="cards" title="Cards" icon="card" >}}
{{< card link="filetree" title="FileTree" icon="folder-tree" >}} {{< card link="filetree" title="FileTree" icon="folder-tree" >}}
{{< card link="icon" title="Icon" icon="badge-check" >}} {{< card link="icon" title="Icon" icon="badge-check" >}}

View File

@ -1,10 +1,15 @@
--- ---
title: Callout Component title: Callout Component
linkTitle: Callout linkTitle: Callout
aliases:
- callouts
prev: /docs/guide/shortcodes
--- ---
A built-in component to show important information to the reader. A built-in component to show important information to the reader.
<!--more-->
## Example ## Example
{{< callout emoji="👾">}} {{< callout emoji="👾">}}

View File

@ -1,5 +1,6 @@
--- ---
title: Tabs title: Tabs
next: /docs/advanced/
--- ---
## Example ## Example