Debian Codegraph @

docs/hugo.toml

raw
1 baseURL = "https://gohugo.io/"
2 defaultContentLanguage = "en"
3 enableEmoji = true
4 pluralizeListTitles = false
5 timeZone = "Europe/Oslo"
6 title = "Hugo"
7
8 # We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below).
9 disableAliases = true
10
11 [build]
12 [build.buildStats]
13 disableIDs = true
14 enable = true
15 [[build.cachebusters]]
16 source = "assets/notwatching/hugo_stats\\.json"
17 target = "css"
18 [[build.cachebusters]]
19 source = "(postcss|tailwind)\\.config\\.js"
20 target = "css"
21
22 [caches]
23 [caches.images]
24 dir = ":cacheDir/images"
25 maxAge = "1440h"
26 [caches.getresource]
27 dir = ':cacheDir/:project'
28 maxAge = "1h"
29
30 [[cascade]]
31 [cascade.params]
32 hide_in_this_section = true
33 show_publish_date = true
34 [cascade.target]
35 kind = 'page'
36 path = '{/news/**}'
37 [[cascade]]
38 [cascade.params]
39 searchable = true
40 [cascade.target]
41 kind = 'page'
42 [[cascade]]
43 [cascade.params]
44 searchable = false
45 [cascade.target]
46 kind = '{home,section,taxonomy,term}'
47 [[cascade]]
48 [cascade.params]
49 isFunctionOrMethod = true
50 [cascade.target]
51 path = '{/functions/**,/methods/**}'
52 kind = 'page'
53
54 [frontmatter]
55 date = ['date'] # do not add publishdate; it will affect page sorting
56 expiryDate = ['expirydate']
57 lastmod = [':git', 'lastmod', 'publishdate', 'date']
58 publishDate = ['publishdate', 'date']
59
60 [languages]
61 [languages.en]
62 direction = 'ltr'
63 label = 'English'
64 locale = 'en-US'
65 weight = 1
66
67 [markup]
68 [markup.goldmark]
69 [markup.goldmark.extensions]
70 [markup.goldmark.extensions.passthrough]
71 enable = true
72 [markup.goldmark.extensions.passthrough.delimiters]
73 block = [['\[', '\]'], ['$$', '$$']]
74 inline = [['\(', '\)']]
75 [markup.goldmark.parser]
76 autoDefinitionTermID = true
77 wrapStandAloneImageWithinParagraph = false
78 [markup.goldmark.parser.attribute]
79 block = true
80 [markup.highlight]
81 lineNumbersInTable = false
82 noClasses = false
83 style = 'modus-operandi'
84 wrapperClass = 'highlight not-prose'
85
86 [mediaTypes]
87 [mediaTypes."text/netlify"]
88 delimiter = ""
89
90 [module]
91 [module.hugoVersion]
92 min = "0.144.0"
93 [[module.mounts]]
94 source = "assets"
95 target = "assets"
96 [[module.mounts]]
97 source = 'content/en'
98 target = 'content'
99 [module.mounts.sites.matrix]
100 languages = ['en']
101 [[module.mounts]]
102 disableWatch = true
103 source = "hugo_stats.json"
104 target = "assets/notwatching/hugo_stats.json"
105
106 [outputFormats]
107 [outputFormats.redir]
108 baseName = "_redirects"
109 isPlainText = true
110 mediatype = "text/netlify"
111 [outputFormats.headers]
112 baseName = "_headers"
113 isPlainText = true
114 mediatype = "text/netlify"
115 notAlternative = true
116
117 [outputs]
118 home = ["html", "rss", "redir", "headers"]
119 page = ["html"]
120 section = ["html"]
121 taxonomy = ["html"]
122 term = ["html"]
123
124 [params]
125 description = "The world’s fastest framework for building websites"
126 ghrepo = "https://github.com/gohugoio/hugoDocs/"
127 [params.render_hooks.link]
128 errorLevel = 'warning' # ignore (default), warning, or error (fails the build)
129 [params.social.mastodon]
130 url = "https://fosstodon.org/@gohugoio"
131
132 [related]
133 includeNewer = true
134 threshold = 80
135 toLower = true
136 [[related.indices]]
137 name = 'keywords'
138 weight = 1
139
140 [security]
141 [security.exec]
142 allow = ['^go$', '^git$', '^node$', '^tailwindcss$']
143 [security.funcs]
144 getenv = ['^HUGO_', '^REPOSITORY_URL$', '^BRANCH$']
145
146 [server]
147 [[server.headers]]
148 for = "/*"
149 [server.headers.values]
150 X-Frame-Options = "DENY"
151 X-XSS-Protection = "1; mode=block"
152 X-Content-Type-Options = "nosniff"
153 Referrer-Policy = "no-referrer"
154 [[server.headers]]
155 for = "/**.{css,js}"
156
157 [services]
158 [services.googleAnalytics]
159 ID = 'G-MBZGKNMDWC'
160
161 [taxonomies]
162 category = 'categories'
163
164 ######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES ########
165
166 [menus]
167 [[menus.global]]
168 identifier = 'news'
169 name = 'News'
170 pageRef = '/news/'
171 weight = 1
172 [[menus.global]]
173 identifier = 'docs'
174 name = 'Docs'
175 url = '/documentation/'
176 weight = 5
177 [[menus.global]]
178 identifier = 'themes'
179 name = 'Themes'
180 url = 'https://themes.gohugo.io/'
181 weight = 10
182 [[menus.global]]
183 identifier = 'community'
184 name = 'Community'
185 post = 'external'
186 url = 'https://discourse.gohugo.io/'
187 weight = 150
188 [[menus.global]]
189 identifier = 'github'
190 name = 'GitHub'
191 post = 'external'
192 url = 'https://github.com/gohugoio/hugo'
193 weight = 200