Hugo

Hugo Canonical

A canonical URL is the URL of the best representative page from a group of duplicate pages, according to Google. For example, if you have two URLs for the same page (such as example.com?dress=1234 and example.com/dresses/1234), Google chooses one as canonical. Similarly, if you have multiple pages that are nearly identical, Google can group them together (for example, pages that differ only by the sorting or filtering of the contents, such as by price or item color) and choose one as canonical.

Hugo Table

How to add a Table to Hugo Create Table Shortcode cat <<'EOF'> layouts/shortcodes/table.html {{ $htmlTable := .Inner | markdownify }} {{ $class := .Get 0 }} {{ $old := "<table>" }} {{ $new := printf "<table class=\"%s\">" $class }} {{ $htmlTable := replace $htmlTable $old $new }} {{ $htmlTable | safeHTML }} </table> EOF Build Table add this to your Markdown File … | a | b | c | | - | - | - | | bli | bla | blu | | green | blue | red | Result a b c bli bla blu green blue red Align Left | a | b | c | | :- | :- | :- | | bli | bla | blu | | green | blue | red | Result a b c bli bla blu green blue red Align Right | a | b | c | | -: | -: | -: | | bli | bla | blu | | green | blue | red | Result a b c bli bla blu green blue red Any Comments ?

Hugo - Start

GoHugo from Scratch https://gohugo.io/ Take a fresh VM with OpenBSD ;) otherwise, you have to adapt appropriate … install pkg Login as User which is part of the “wheel group”. Doas should allow all Users of the Wheel Group to get root. doas pkg_add hugo-- nginx-- adduser webmaster create a user “webmaster” and prepare virtual directories doas adduser webmaster doas mkdir /var/www/virtual doas chown webmaster /var/www/virtual/ Update Nginx we need to modify nginx, prepare a site folder and a basic config for the webserver.