Auditor

Auditor v1.0.0

GoHugo Component / Auditor

This module is a component for GoHugo that adds auditing tools to your development website. It is not thought for use in a live deployment. It is 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)
Fix to this version
hugo mod get github.com/davidsneighbour/[email protected]

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.