hugo

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.