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