Hugo Demo
This is just a quick show of using Hugo to create a website. Mostly I just followed the installation instructions for the Relearn theme (link in the menu). I did add a small amount of content so we have something to discuss.
The content in this site isn’t useful (unless you need an arm32 binary). The links on the side point to more useful sites.
The relearn theme is only one of hundreds. There are themes the are focused on creating blogs, recipe sites, resumes, etc. I chose Relearn becaus it was focused on documentation. It included support for mermaid.js, an example:
%%{init: {"flowchart": {"htmlLabels": false}} }%% flowchart LR subgraph handleSocket["HANDLE SOCKET"] openListener("open\nlistener") --> acceptConnection("accept\nconnection") acceptConnection --> spawnHandler("spawn\nhandler") --> acceptConnection end subgraph handleConnection["HANDLE CONNECTION"] echoData("echo data") --> closeConnection("close\nconnection\nΒ«deferedΒ»") end printBanner("print\nbanner") --> openListener spawnHandler -.-> handleConnection style spawnHandler fill:#828,color:white
Other themes
Just some demos that I found.
- ananke A blog like site. Articles summarized on the front page.
- resume Generates A single page site for showing your resume
- hugo scroll Puts all pages on one, with alternating colors.
- I lost the link to the recipe theme that I found. It was nice as it didn’t look like all the other themes.
Content Directory
This is where you edit the content of the webpages. The structure of this site is:
content
βββ basics
β βββ first-content
β β βββ _index.md
β βββ _index.md
β βββ second-content
β β βββ index.md
β βββ third-content.md
βββ _index.md <---- you are here
βββ other-notes
βββ hugo-for-32bit-raspberrypi
β βββ hugo-arm32l
β βββ index.md
βββ _index.md