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 = 'solarized-dark'
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.funcs]
142 getenv = ['^HUGO_', '^REPOSITORY_URL$', '^BRANCH$']
143
144 [server]
145 [[server.headers]]
146 for = "/*"
147 [server.headers.values]
148 X-Frame-Options = "DENY"
149 X-XSS-Protection = "1; mode=block"
150 X-Content-Type-Options = "nosniff"
151 Referrer-Policy = "no-referrer"
152 [[server.headers]]
153 for = "/**.{css,js}"
154
155 [services]
156 [services.googleAnalytics]
157 ID = 'G-MBZGKNMDWC'
158
159 [taxonomies]
160 category = 'categories'
161
162 ######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES ########
163
164 [menus]
165 [[menus.global]]
166 identifier = 'news'
167 name = 'News'
168 pageRef = '/news/'
169 weight = 1
170 [[menus.global]]
171 identifier = 'docs'
172 name = 'Docs'
173 url = '/documentation/'
174 weight = 5
175 [[menus.global]]
176 identifier = 'themes'
177 name = 'Themes'
178 url = 'https://themes.gohugo.io/'
179 weight = 10
180 [[menus.global]]
181 identifier = 'community'
182 name = 'Community'
183 post = 'external'
184 url = 'https://discourse.gohugo.io/'
185 weight = 150
186 [[menus.global]]
187 identifier = 'github'
188 name = 'GitHub'
189 post = 'external'
190 url = 'https://github.com/gohugoio/hugo'
191 weight = 200