Skip to content

Commit 32ffc53

Browse files
committed
Format toml files
1 parent 6858014 commit 32ffc53

File tree

3 files changed

+156
-182
lines changed

3 files changed

+156
-182
lines changed

exampleSite/config.toml

Lines changed: 149 additions & 175 deletions
Original file line numberDiff line numberDiff line change
@@ -1,217 +1,191 @@
11
baseURL = "http://www.example.com"
22
title = "johndoe"
3-
43
theme = "hugo-coder"
5-
64
languageCode = "en"
75
defaultContentLanguage = "en"
8-
96
paginate = 20
10-
117
pygmentsStyle = "b2"
128
pygmentsCodeFences = true
139
pygmentsCodeFencesGuessSyntax = true
14-
1510
disqusShortname = "yourdiscussshortname"
1611

1712
[params]
18-
author = "John Doe"
19-
description = "John Doe's personal website"
20-
keywords = "blog,developer,personal"
21-
info = "Full Stack DevOps and Magician"
22-
avatarURL = "images/avatar.jpg"
23-
#gravatar = "[email protected]"
24-
footerContent = "Enter a text here."
25-
26-
dateFormat = "January 2, 2006"
27-
28-
hideFooter = false
29-
hideCredits = false
30-
hideCopyright = false
31-
since = 2019
32-
33-
# Git Commit in Footer, uncomment the line below to enable it.
34-
commit = "https://github.com/luizdepra/hugo-coder/tree/"
35-
36-
rtl = false
37-
38-
# Specify light/dark colorscheme
39-
# Supported values:
40-
# "auto" (use preference set by browser)
41-
# "dark" (dark background, light foreground)
42-
# "light" (light background, dark foreground) (default)
43-
colorScheme = "auto"
44-
45-
# Hide the toggle button, along with the associated vertical divider
46-
hideColorSchemeToggle = false
47-
48-
# Series see also post count
49-
maxSeeAlsoItems = 5
50-
51-
# Enable Twemoji
52-
enableTwemoji = true
53-
54-
# Custom CSS
55-
customCSS = []
56-
57-
# Custom SCSS
58-
customSCSS = []
59-
60-
# Custom JS
61-
customJS = []
13+
author = "John Doe"
14+
description = "John Doe's personal website"
15+
keywords = "blog,developer,personal"
16+
info = "Full Stack DevOps and Magician"
17+
avatarURL = "images/avatar.jpg"
18+
#gravatar = "[email protected]"
19+
footerContent = "Enter a text here."
20+
dateFormat = "January 2, 2006"
21+
hideFooter = false
22+
hideCredits = false
23+
hideCopyright = false
24+
since = 2019
25+
# Git Commit in Footer, uncomment the line below to enable it.
26+
commit = "https://github.com/luizdepra/hugo-coder/tree/"
27+
rtl = false
28+
# Specify light/dark colorscheme
29+
# Supported values:
30+
# "auto" (use preference set by browser)
31+
# "dark" (dark background, light foreground)
32+
# "light" (light background, dark foreground) (default)
33+
colorScheme = "auto"
34+
# Hide the toggle button, along with the associated vertical divider
35+
hideColorSchemeToggle = false
36+
# Series see also post count
37+
maxSeeAlsoItems = 5
38+
# Enable Twemoji
39+
enableTwemoji = true
40+
# Custom CSS
41+
customCSS = []
42+
# Custom SCSS
43+
customSCSS = []
44+
# Custom JS
45+
customJS = []
6246

6347
# If you want to use fathom(https://usefathom.com) for analytics, add this section
6448
[params.fathomAnalytics]
65-
siteID = "ABCDE"
66-
# Default value is cdn.usefathom.com, overwrite this if you are self-hosting
67-
serverURL = "analytics.example.com"
49+
siteID = "ABCDE"
50+
# Default value is cdn.usefathom.com, overwrite this if you are self-hosting
51+
serverURL = "analytics.example.com"
6852

6953
# If you want to use plausible(https://plausible.io) for analytics, add this section
7054
[params.plausibleAnalytics]
71-
domain = "example.com"
72-
# Default value is plausible.io, overwrite this if you are self-hosting or using a custom domain
73-
serverURL = "analytics.example.com"
55+
domain = "example.com"
56+
# Default value is plausible.io, overwrite this if you are self-hosting or using a custom domain
57+
serverURL = "analytics.example.com"
7458

7559
# If you want to use goatcounter(https://goatcounter.com) for analytics, add this section
7660
[params.goatCounter]
77-
code = "code"
61+
code = "code"
7862

7963
# If you want to use Cloudflare Web Analytics(https://cloudflare.com) for analytics, add this section
8064
[params.cloudflare]
81-
token = "token"
65+
token = "token"
8266

8367
# If you want to use Matomo(https://matomo.org) for analytics, add this section
8468
[params.matomo]
85-
# Default value is "1", overwrite this if you are cloud-hosting
86-
siteID = "ABCDE"
87-
# For cloud-hosting, use provided URL, e.g. example.matomo.cloud
88-
serverURL = "analytics.example.com"
69+
# Default value is "1", overwrite this if you are cloud-hosting
70+
siteID = "ABCDE"
71+
# For cloud-hosting, use provided URL, e.g. example.matomo.cloud
72+
serverURL = "analytics.example.com"
8973

9074
# If you want to use Google Tag Manager(https://analytics.google.com/) for analytics, add this section
9175
[params.googleTagManager]
92-
id = "gid"
76+
id = "gid"
9377

9478
# If you want to implement a Content-Security-Policy, add this section
9579
[params.csp]
96-
childsrc = ["'self'"]
97-
fontsrc = [
98-
"'self'",
99-
"https://fonts.gstatic.com",
100-
"https://cdn.jsdelivr.net/"
101-
]
102-
formaction = ["'self'"]
103-
framesrc = ["'self'"]
104-
imgsrc = ["'self'"]
105-
objectsrc = ["'none'"]
106-
stylesrc = [
107-
"'self'",
108-
"'unsafe-inline'",
109-
"https://fonts.googleapis.com/",
110-
"https://cdn.jsdelivr.net/"
111-
]
112-
scriptsrc = [
113-
"'self'",
114-
"'unsafe-inline'",
115-
"https://www.google-analytics.com"
116-
]
117-
prefetchsrc = ["'self'"]
80+
childsrc = ["'self'"]
81+
fontsrc = ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net/"]
82+
formaction = ["'self'"]
83+
framesrc = ["'self'"]
84+
imgsrc = ["'self'"]
85+
objectsrc = ["'none'"]
86+
stylesrc = [
87+
"'self'",
88+
"'unsafe-inline'",
89+
"https://fonts.googleapis.com/",
90+
"https://cdn.jsdelivr.net/"
91+
]
92+
scriptsrc = ["'self'", "'unsafe-inline'", "https://www.google-analytics.com"]
93+
prefetchsrc = ["'self'"]
11894

11995
[taxonomies]
120-
category = "categories"
121-
series = "series"
122-
tag = "tags"
123-
author = "authors"
96+
category = "categories"
97+
series = "series"
98+
tag = "tags"
99+
author = "authors"
124100

125101
[[params.social]]
126-
name = "Github"
127-
icon = "fa fa-github"
128-
weight = 1
129-
url = "https://github.com/johndoe/"
102+
name = "Github"
103+
icon = "fa fa-github"
104+
weight = 1
105+
url = "https://github.com/johndoe/"
106+
130107
[[params.social]]
131-
name = "Gitlab"
132-
icon = "fa fa-gitlab"
133-
weight = 2
134-
url = "https://gitlab.com/johndoe/"
108+
name = "Gitlab"
109+
icon = "fa fa-gitlab"
110+
weight = 2
111+
url = "https://gitlab.com/johndoe/"
112+
135113
[[params.social]]
136-
name = "Twitter"
137-
icon = "fa fa-twitter"
138-
weight = 3
139-
url = "https://twitter.com/johndoe/"
114+
name = "Twitter"
115+
icon = "fa fa-twitter"
116+
weight = 3
117+
url = "https://twitter.com/johndoe/"
118+
140119
[[params.social]]
141-
name = "LinkedIn"
142-
icon = "fa fa-linkedin"
143-
weight = 4
144-
url = "https://www.linkedin.com/in/johndoe/"
120+
name = "LinkedIn"
121+
icon = "fa fa-linkedin"
122+
weight = 4
123+
url = "https://www.linkedin.com/in/johndoe/"
124+
145125
[[params.social]]
146-
name = "Medium"
147-
icon = "fa fa-medium"
148-
weight = 5
149-
url = "https://medium.com/@johndoe"
126+
name = "Medium"
127+
icon = "fa fa-medium"
128+
weight = 5
129+
url = "https://medium.com/@johndoe"
130+
150131
[[params.social]]
151-
name = "RSS"
152-
icon = "fa fa-rss"
153-
weight = 6
154-
url = "https://myhugosite.com/index.xml"
155-
rel = "alternate"
156-
type = "application/rss+xml"
157-
158-
159-
[languages]
160-
[languages.en]
161-
languageName = "English"
162-
163-
[languages.en.menu]
164-
165-
[[languages.en.menu.main]]
166-
name = "About"
167-
weight = 1
168-
url = "about/"
169-
170-
[[languages.en.menu.main]]
171-
name = "Blog"
172-
weight = 2
173-
url = "posts/"
174-
175-
[[languages.en.menu.main]]
176-
name = "Projects"
177-
weight = 3
178-
url = "projects/"
179-
180-
[[languages.en.menu.main]]
181-
name = "Contact me"
182-
weight = 5
183-
url = "contact/"
184-
185-
186-
[languages.pt-br]
187-
languageName = "Português"
188-
title = "João Ninguém"
189-
190-
[languages.pt-br.params]
191-
author = "João Ninguém"
192-
info = "Full Stack DevOps e Mágico"
193-
description = "Sítio pessoal de João Ninguém"
194-
keywords = "blog,desenvolvedor,pessoal"
195-
footerContent = "Coloque algum texto aqui."
196-
197-
[languages.pt-br.menu]
198-
199-
[[languages.pt-br.menu.main]]
200-
name = "Sobre"
201-
weight = 1
202-
url = "about/"
203-
204-
[[languages.pt-br.menu.main]]
205-
name = "Blog"
206-
weight = 2
207-
url = "posts/"
208-
209-
[[languages.pt-br.menu.main]]
210-
name = "Projetos"
211-
weight = 3
212-
url = "projects/"
213-
214-
[[languages.pt-br.menu.main]]
215-
name = "Contato"
216-
weight = 5
217-
url = "contact/"
132+
name = "RSS"
133+
icon = "fa fa-rss"
134+
weight = 6
135+
url = "https://myhugosite.com/index.xml"
136+
rel = "alternate"
137+
type = "application/rss+xml"
138+
139+
[languages.en]
140+
languageName = "English"
141+
142+
[[languages.en.menu.main]]
143+
name = "About"
144+
weight = 1
145+
url = "about/"
146+
147+
[[languages.en.menu.main]]
148+
name = "Blog"
149+
weight = 2
150+
url = "posts/"
151+
152+
[[languages.en.menu.main]]
153+
name = "Projects"
154+
weight = 3
155+
url = "https://luizdepra.dev"
156+
157+
[[languages.en.menu.main]]
158+
name = "Contact me"
159+
weight = 5
160+
url = "contact/"
161+
162+
[languages.pt-br]
163+
languageName = "Português"
164+
title = "João Ninguém"
165+
166+
[languages.pt-br.params]
167+
author = "João Ninguém"
168+
info = "Full Stack DevOps e Mágico"
169+
description = "Sítio pessoal de João Ninguém"
170+
keywords = "blog,desenvolvedor,pessoal"
171+
footerContent = "Coloque algum texto aqui."
172+
173+
[[languages.pt-br.menu.main]]
174+
name = "Sobre"
175+
weight = 1
176+
url = "about/"
177+
178+
[[languages.pt-br.menu.main]]
179+
name = "Blog"
180+
weight = 2
181+
url = "posts/"
182+
183+
[[languages.pt-br.menu.main]]
184+
name = "Projetos"
185+
weight = 3
186+
url = "https://luizdepra.dev"
187+
188+
[[languages.pt-br.menu.main]]
189+
name = "Contato"
190+
weight = 5
191+
url = "contact/"

netlify.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[build]
2-
publish = "demo/public"
3-
command = "make prepare && hugo --source demo --baseURL $URL"
2+
publish = "demo/public"
3+
command = "make prepare && hugo --source demo --baseURL $URL"
44

55
[context.production.environment]
6-
HUGO_VERSION = "0.73.0"
6+
HUGO_VERSION = "0.73.0"
77

88
[context.deploy-preview]
9-
command = "make prepare && hugo --source demo --buildFuture --buildDrafts --baseURL $DEPLOY_PRIME_URL"
9+
command = "make prepare && hugo --source demo --buildFuture --buildDrafts --baseURL $DEPLOY_PRIME_URL"
1010

1111
[context.deploy-preview.environment]
12-
HUGO_VERSION = "0.73.0"
12+
HUGO_VERSION = "0.73.0"

theme.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ features = [
2222
min_version = "0.73.0"
2323

2424
[author]
25-
name = "Luiz F. A. de Prá"
26-
homepage = "https://luizdepra.com"
25+
name = "Luiz F. A. de Prá"
26+
homepage = "https://luizdepra.com"

0 commit comments

Comments
 (0)