Welcome to mirror list, hosted at ThFree Co, Russian Federation.

config.toml « exampleSite - github.com/gohugoio/gohugoioTheme2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 17e4c813bf0af35aae6a0942fcabad3620bbb7d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157

baseURL = "https://gohugo.io/"
paginate =  100
defaultContentLanguage = "en"
enableEmoji = true
timeZone = "Europe/Oslo"
# Set the unicode character used for the "return" link in page footnotes.
footnotereturnlinkcontents = "↩"
languageCode = "en-us"
title = "Hugo"


# Error configuration.
refLinksErrorLevel = "WARNING"
ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]

googleAnalytics = "UA-7131036-4"
pluralizeListTitles = false

# We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below).
disableAliases = true

[build]
# Used by PurgeCSS
writeStats = true
useResourceCacheWhen = 'never'

[params]
ghrepo = "https://github.com/gohugoio/hugoDocs/"


# Make the categories and tags listings share the layouts from documentation.
[[cascade]]
type = 'documentation'
[cascade._target]
path = '/categories/**'
[[cascade]]
type = 'documentation'
[cascade._target]
path = '/tags/**'


[minify]
[minify.tdewolff]
[minify.tdewolff.css]
[minify.tdewolff.html]
keepWhitespace = true

[module]
[[module.mounts]]
lang = "en"
source = "content/en"
target = "content"
[[module.imports]]
path = "github.com/gohugoio/gohugoioTheme2"
[[module.imports]]
path = "github.com/gohugoio/hugoDocs"
disable = false
ignoreConfig = true
ignoreImports = true
[[module.imports.mounts]]
lang = "en"
source = "content/site/en"
target = "content"

[[module.imports.mounts]]
source = "static"
target = "static"

[[module.imports.mounts]]
source = "layouts"
target = "layouts"

[[module.imports.mounts]]
source = "data"
target = "data"

[[module.imports.mounts]]
source = "assets"
target = "assets"

[[module.imports.mounts]]
source = "i18n"
target = "i18n"

[[module.imports.mounts]]
source = "archetypes"
target = "archetypes"

[outputs]
home = [ "HTML", "RSS", "REDIR", "HEADERS", "DOCTREE" ]
section = [ "HTML", "RSS"]

[mediaTypes]
[mediaTypes."text/netlify"]
delimiter = ""

[outputFormats]
[outputFormats.REDIR]
mediatype = "text/netlify"
baseName = "_redirects"
isPlainText = true
notAlternative = true
[outputFormats.HEADERS]
mediatype = "text/netlify"
baseName = "_headers"
isPlainText = true
notAlternative = true
[outputFormats.DOCTREE]
mediatype = "application/json"
baseName = "doctree"
isPlainText = true
notAlternative = true


## Relatd configuration.
[related]

threshold = 80
includeNewer = true
toLower = false

[[related.indices]]
name = "keywords"
weight = 80
[[related.indices]]
name = "tags"
weight = 100
[[related.indices]]
name  = "date"
weight = 10
pattern = "2006"


[security]
enableInlineShortcodes = false
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$']
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
[security.funcs]
getenv = "^(HUGO_|REPOSITORY_URL|^BRANCH$)"
[security.http]
methods = ['(?i)GET|POST']
urls = ['.*']


## Image configuration.
[imaging]
# See https://github.com/disintegration/imaging
# CatmullRom is a sharp bicubic filter which should fit the docs site well with its many screenshots.
# Note that you can also set this per image processing.
resampleFilter = "CatmullRom"

# Default JPEG quality setting. Default is 75.
quality = 75

anchor = "smart"