Operations
7 pages-
Troubleshooting
When a build fails or a page looks wrong, start from a clean production build and read the first error, because later errors usually follow from it: Terminal rm -rf public resources/_gen hugo --gc --minify --printPathWarnings --logLevel info That one …
When a build fails or a page looks wrong, start from a clean production build and read the first error, because later errors usually follow from it: Terminal rm -rf public resources/_gen hugo --gc --minify --printPathWarnings --logLevel info That one …
-
Operations
Once the content is written, this section gets it online and keeps it there: previewing changes on your machine, building and hosting the output, adding comments and analytics, upgrading the theme, and finding out why a build or a page went wrong. …
Once the content is written, this section gets it online and keeps it there: previewing changes on your machine, building and hosting the output, adding comments and analytics, upgrading the theme, and finding out why a build or a page went wrong. …
-
Upgrade
Upgrading OINK means changing the release your site pins and checking what the new release renders differently. Most content needs no edits. Where a release retired a syntax or an interface, its section below says whom that affects and what to …
Upgrading OINK means changing the release your site pins and checking what the new release renders differently. Most content needs no edits. Where a release retired a syntax or an interface, its section below says whom that affects and what to …
-
Analytics and SEO
An OINK site reports nothing to anyone until you connect an analytics service: Google Analytics through one Hugo setting, anything else through a one-file hook. The theme loads no analytics, form or advertising script of its own, so the decision, and …
An OINK site reports nothing to anyone until you connect an analytics service: Google Analytics through one Hugo setting, anything else through a one-file hook. The theme loads no analytics, form or advertising script of its own, so the decision, and …
-
Comments
Comments give every page its own discussion thread at the end, with no comment server to run. OINK uses giscus, which stores each page’s thread as a GitHub Discussion in a repository you choose: readers sign in with GitHub to post, and you moderate …
Comments give every page its own discussion thread at the end, with no comment server to run. OINK uses giscus, which stores each page’s thread as a GitHub Discussion in a repository you choose: readers sign in with GitHub to post, and you moderate …
-
Deploy
An OINK site builds to a directory of static files, so any host that serves files can serve it, with no Node runtime, server-side rendering or build plugin. Deploying comes down to three things: run the production build, publish public/, and set …
An OINK site builds to a directory of static files, so any host that serves files can serve it, with no Node runtime, server-side rendering or build plugin. Deploying comes down to three things: run the production build, publish public/, and set …
-
Local preview
Two commands cover daily work. hugo server rebuilds the site every time you save and reloads the browser for you; hugo writes the finished site to public/, the directory you deploy: Terminal hugo server # preview at http://localhost:1313/ hugo …
Two commands cover daily work. hugo server rebuilds the site every time you save and reloads the browser for you; hugo writes the finished site to public/, the directory you deploy: Terminal hugo server # preview at http://localhost:1313/ hugo …