Skip to main content
GOHUGO
Auditor

Auditor

This component is a module for the static site generator GoHugo and adds auditing tools to your website in development. It’s not for use in a live deployment and work in progress.

Add this module
[[module.imports]]
path = "github.com/davidsneighbour/hugo-auditor"
disable = false
ignoreConfig = false
ignoreImports = false
Latest Version
v1.0.0 (2022-11-15)

Headers CT

See CT.css for details. Enable this feature only on development setup to see information about optimisation approaches for your header tag order.

1[params]
2  [params.dnb]
3    [params.dnb.auditor]
4      ct = true
1params:
2  dnb:
3    auditor:
4      ct: true
1{
2   "params": {
3      "dnb": {
4         "auditor": {
5            "ct": true
6         }
7      }
8   }
9}

then add somewhere in the footer of your base template:

1{{- partialCached "ct/ct.html" . -}}

Create a JSON file with list of all created URLs

Add output type to outputs section in your config:

1home = ['dnblinklist']
1home:
2- dnblinklist
1{
2   "home": [
3      "dnblinklist"
4   ]
5}

After creation of the site there is a JSON file available at /links.json (http://localhost:1313/links.json) containing all created links.