Hugo-based knowledge base for @particl Project
- Clone repo
- Install Hugo
- To run Hugo dev server:
hugo server --disableFastRender - To compile assets:
gulp(one-time) orgulp devel(continuous) - To check production version locally:
hugoand then check the result in/publicfolder
- Table of Contents:
{{< toc >}} - Tree ToC (list all child pages with hierarchy):
{{< tree-toc >}} - Buttons
- Internal:
{{< button relref="/" [class="..."] >}}Text{{< /button >}} - External:
{{< button href="/" [class="..."] >}}Text{{< /button >}}
- Internal:
- Icons:
{{< ico NAME >}}- names correspond to icon file names in/static/media/icons/, e.g.{{< ico yes >}} - Youtube:
{{< youtube PRxmGh24ILU >}}(PRxmGh24ILUstands for video ID found in it's URL) - Vimeo:
{{< vimeo 330290302 >}}(330290302stands for video ID found in it's URL) - Labels:
{{< label primary|warning|alert|info">Label{{< /label >}}
| head | head |
| ---- | ---- |
| data | data |
| data | data |{{< hint [info|warning|alert] >}}
**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 >}}To include static media, either put them in /static folder first (only applies for global site assets) OR create a page bundle (in short: convert .md file to folder of the same name + it's content into index.md + put all assets to be inluded in the same folder - you can then reference them relatively to the index.md file).
{{< image src="image.png" class="side-thumb" [alt="desc"] [caption="caption"] >}}
{{< video webm="video.webm" mp4="video.mp4" [alt="desc"] [caption="caption"] >}}
To get a list of articles tagged with e.g. "important" use:
{{< list-articles important >}}
{{< columns >}}
# first column
<--->
# second column
{{< /columns >}}
{{< tabs "uniqueid" >}}
{{< tab "Windows" >}} # Windows Content {{< /tab >}}
{{< tab "macOS" >}} # macOS Content {{< /tab >}}
{{< tab "Linux" >}} # Linux Content {{< /tab >}}
{{< /tabs >}}- since this Hugo-based wiki has slightly different file/folder and link structure than the former Dokuwiki, links to pages that didn't match are solved via
aliasesparameter in articles' frontmatter
Menus are defined in data/menu/main.yml and ../more.yml
- image galleries/lightboxes (Learn > Privacy > TX types)
- Matomo analytics?
Based on @xoxys/hugo-geekdoc