Restricting content adapter HTML output

https://gohugo.io/content-management/build-options/

For example…

content/books/_content.gotmpl

{ $content := dict
  "mediaType" "text/markdown"
  "value" "The _Hunchback of Notre Dame_ was written by Victor Hugo."
}}
{{ $page := dict
  "content" $content
  "kind" "page"
  "path" "the-hunchback-of-notre-dame"
  "title" "The Hunchback of Notre Dame"
  "build" (dict "render" "never")
}}
{{ .AddPage $page }}
1 Like