Format toml files

This commit is contained in:
Luiz F. A. de Prá
2021-03-15 21:12:40 -03:00
parent 68580148a3
commit 32ffc536aa
3 changed files with 145 additions and 171 deletions

View File

@@ -1,217 +1,191 @@
baseURL = "http://www.example.com" baseURL = "http://www.example.com"
title = "johndoe" title = "johndoe"
theme = "hugo-coder" theme = "hugo-coder"
languageCode = "en" languageCode = "en"
defaultContentLanguage = "en" defaultContentLanguage = "en"
paginate = 20 paginate = 20
pygmentsStyle = "b2" pygmentsStyle = "b2"
pygmentsCodeFences = true pygmentsCodeFences = true
pygmentsCodeFencesGuessSyntax = true pygmentsCodeFencesGuessSyntax = true
disqusShortname = "yourdiscussshortname" disqusShortname = "yourdiscussshortname"
[params] [params]
author = "John Doe" author = "John Doe"
description = "John Doe's personal website" description = "John Doe's personal website"
keywords = "blog,developer,personal" keywords = "blog,developer,personal"
info = "Full Stack DevOps and Magician" info = "Full Stack DevOps and Magician"
avatarURL = "images/avatar.jpg" avatarURL = "images/avatar.jpg"
#gravatar = "john.doe@example.com" #gravatar = "john.doe@example.com"
footerContent = "Enter a text here." footerContent = "Enter a text here."
dateFormat = "January 2, 2006"
dateFormat = "January 2, 2006" hideFooter = false
hideCredits = false
hideFooter = false hideCopyright = false
hideCredits = false since = 2019
hideCopyright = false # Git Commit in Footer, uncomment the line below to enable it.
since = 2019 commit = "https://github.com/luizdepra/hugo-coder/tree/"
rtl = false
# Git Commit in Footer, uncomment the line below to enable it. # Specify light/dark colorscheme
commit = "https://github.com/luizdepra/hugo-coder/tree/" # Supported values:
# "auto" (use preference set by browser)
rtl = false # "dark" (dark background, light foreground)
# "light" (light background, dark foreground) (default)
# Specify light/dark colorscheme colorScheme = "auto"
# Supported values: # Hide the toggle button, along with the associated vertical divider
# "auto" (use preference set by browser) hideColorSchemeToggle = false
# "dark" (dark background, light foreground) # Series see also post count
# "light" (light background, dark foreground) (default) maxSeeAlsoItems = 5
colorScheme = "auto" # Enable Twemoji
enableTwemoji = true
# Hide the toggle button, along with the associated vertical divider # Custom CSS
hideColorSchemeToggle = false customCSS = []
# Custom SCSS
# Series see also post count customSCSS = []
maxSeeAlsoItems = 5 # Custom JS
customJS = []
# Enable Twemoji
enableTwemoji = true
# Custom CSS
customCSS = []
# Custom SCSS
customSCSS = []
# Custom JS
customJS = []
# If you want to use fathom(https://usefathom.com) for analytics, add this section # If you want to use fathom(https://usefathom.com) for analytics, add this section
[params.fathomAnalytics] [params.fathomAnalytics]
siteID = "ABCDE" siteID = "ABCDE"
# Default value is cdn.usefathom.com, overwrite this if you are self-hosting # Default value is cdn.usefathom.com, overwrite this if you are self-hosting
serverURL = "analytics.example.com" serverURL = "analytics.example.com"
# If you want to use plausible(https://plausible.io) for analytics, add this section # If you want to use plausible(https://plausible.io) for analytics, add this section
[params.plausibleAnalytics] [params.plausibleAnalytics]
domain = "example.com" domain = "example.com"
# Default value is plausible.io, overwrite this if you are self-hosting or using a custom domain # Default value is plausible.io, overwrite this if you are self-hosting or using a custom domain
serverURL = "analytics.example.com" serverURL = "analytics.example.com"
# If you want to use goatcounter(https://goatcounter.com) for analytics, add this section # If you want to use goatcounter(https://goatcounter.com) for analytics, add this section
[params.goatCounter] [params.goatCounter]
code = "code" code = "code"
# If you want to use Cloudflare Web Analytics(https://cloudflare.com) for analytics, add this section # If you want to use Cloudflare Web Analytics(https://cloudflare.com) for analytics, add this section
[params.cloudflare] [params.cloudflare]
token = "token" token = "token"
# If you want to use Matomo(https://matomo.org) for analytics, add this section # If you want to use Matomo(https://matomo.org) for analytics, add this section
[params.matomo] [params.matomo]
# Default value is "1", overwrite this if you are cloud-hosting # Default value is "1", overwrite this if you are cloud-hosting
siteID = "ABCDE" siteID = "ABCDE"
# For cloud-hosting, use provided URL, e.g. example.matomo.cloud # For cloud-hosting, use provided URL, e.g. example.matomo.cloud
serverURL = "analytics.example.com" serverURL = "analytics.example.com"
# If you want to use Google Tag Manager(https://analytics.google.com/) for analytics, add this section # If you want to use Google Tag Manager(https://analytics.google.com/) for analytics, add this section
[params.googleTagManager] [params.googleTagManager]
id = "gid" id = "gid"
# If you want to implement a Content-Security-Policy, add this section # If you want to implement a Content-Security-Policy, add this section
[params.csp] [params.csp]
childsrc = ["'self'"] childsrc = ["'self'"]
fontsrc = [ fontsrc = ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net/"]
"'self'", formaction = ["'self'"]
"https://fonts.gstatic.com", framesrc = ["'self'"]
"https://cdn.jsdelivr.net/" imgsrc = ["'self'"]
] objectsrc = ["'none'"]
formaction = ["'self'"] stylesrc = [
framesrc = ["'self'"] "'self'",
imgsrc = ["'self'"] "'unsafe-inline'",
objectsrc = ["'none'"] "https://fonts.googleapis.com/",
stylesrc = [ "https://cdn.jsdelivr.net/"
"'self'", ]
"'unsafe-inline'", scriptsrc = ["'self'", "'unsafe-inline'", "https://www.google-analytics.com"]
"https://fonts.googleapis.com/", prefetchsrc = ["'self'"]
"https://cdn.jsdelivr.net/"
]
scriptsrc = [
"'self'",
"'unsafe-inline'",
"https://www.google-analytics.com"
]
prefetchsrc = ["'self'"]
[taxonomies] [taxonomies]
category = "categories" category = "categories"
series = "series" series = "series"
tag = "tags" tag = "tags"
author = "authors" author = "authors"
[[params.social]] [[params.social]]
name = "Github" name = "Github"
icon = "fa fa-github" icon = "fa fa-github"
weight = 1 weight = 1
url = "https://github.com/johndoe/" url = "https://github.com/johndoe/"
[[params.social]] [[params.social]]
name = "Gitlab" name = "Gitlab"
icon = "fa fa-gitlab" icon = "fa fa-gitlab"
weight = 2 weight = 2
url = "https://gitlab.com/johndoe/" url = "https://gitlab.com/johndoe/"
[[params.social]] [[params.social]]
name = "Twitter" name = "Twitter"
icon = "fa fa-twitter" icon = "fa fa-twitter"
weight = 3 weight = 3
url = "https://twitter.com/johndoe/" url = "https://twitter.com/johndoe/"
[[params.social]] [[params.social]]
name = "LinkedIn" name = "LinkedIn"
icon = "fa fa-linkedin" icon = "fa fa-linkedin"
weight = 4 weight = 4
url = "https://www.linkedin.com/in/johndoe/" url = "https://www.linkedin.com/in/johndoe/"
[[params.social]] [[params.social]]
name = "Medium" name = "Medium"
icon = "fa fa-medium" icon = "fa fa-medium"
weight = 5 weight = 5
url = "https://medium.com/@johndoe" url = "https://medium.com/@johndoe"
[[params.social]] [[params.social]]
name = "RSS" name = "RSS"
icon = "fa fa-rss" icon = "fa fa-rss"
weight = 6 weight = 6
url = "https://myhugosite.com/index.xml" url = "https://myhugosite.com/index.xml"
rel = "alternate" rel = "alternate"
type = "application/rss+xml" type = "application/rss+xml"
[languages.en]
languageName = "English"
[languages] [[languages.en.menu.main]]
[languages.en] name = "About"
languageName = "English" weight = 1
url = "about/"
[languages.en.menu] [[languages.en.menu.main]]
name = "Blog"
weight = 2
url = "posts/"
[[languages.en.menu.main]] [[languages.en.menu.main]]
name = "About" name = "Projects"
weight = 1 weight = 3
url = "about/" url = "https://luizdepra.dev"
[[languages.en.menu.main]] [[languages.en.menu.main]]
name = "Blog" name = "Contact me"
weight = 2 weight = 5
url = "posts/" url = "contact/"
[[languages.en.menu.main]] [languages.pt-br]
name = "Projects" languageName = "Português"
weight = 3 title = "João Ninguém"
url = "projects/"
[[languages.en.menu.main]] [languages.pt-br.params]
name = "Contact me" author = "João Ninguém"
weight = 5 info = "Full Stack DevOps e Mágico"
url = "contact/" description = "Sítio pessoal de João Ninguém"
keywords = "blog,desenvolvedor,pessoal"
footerContent = "Coloque algum texto aqui."
[[languages.pt-br.menu.main]]
name = "Sobre"
weight = 1
url = "about/"
[languages.pt-br] [[languages.pt-br.menu.main]]
languageName = "Português" name = "Blog"
title = "João Ninguém" weight = 2
url = "posts/"
[languages.pt-br.params] [[languages.pt-br.menu.main]]
author = "João Ninguém" name = "Projetos"
info = "Full Stack DevOps e Mágico" weight = 3
description = "Sítio pessoal de João Ninguém" url = "https://luizdepra.dev"
keywords = "blog,desenvolvedor,pessoal"
footerContent = "Coloque algum texto aqui."
[languages.pt-br.menu] [[languages.pt-br.menu.main]]
name = "Contato"
[[languages.pt-br.menu.main]] weight = 5
name = "Sobre" url = "contact/"
weight = 1
url = "about/"
[[languages.pt-br.menu.main]]
name = "Blog"
weight = 2
url = "posts/"
[[languages.pt-br.menu.main]]
name = "Projetos"
weight = 3
url = "projects/"
[[languages.pt-br.menu.main]]
name = "Contato"
weight = 5
url = "contact/"

View File

@@ -1,12 +1,12 @@
[build] [build]
publish = "demo/public" publish = "demo/public"
command = "make prepare && hugo --source demo --baseURL $URL" command = "make prepare && hugo --source demo --baseURL $URL"
[context.production.environment] [context.production.environment]
HUGO_VERSION = "0.73.0" HUGO_VERSION = "0.73.0"
[context.deploy-preview] [context.deploy-preview]
command = "make prepare && hugo --source demo --buildFuture --buildDrafts --baseURL $DEPLOY_PRIME_URL" command = "make prepare && hugo --source demo --buildFuture --buildDrafts --baseURL $DEPLOY_PRIME_URL"
[context.deploy-preview.environment] [context.deploy-preview.environment]
HUGO_VERSION = "0.73.0" HUGO_VERSION = "0.73.0"

View File

@@ -22,5 +22,5 @@ features = [
min_version = "0.73.0" min_version = "0.73.0"
[author] [author]
name = "Luiz F. A. de Prá" name = "Luiz F. A. de Prá"
homepage = "https://luizdepra.com" homepage = "https://luizdepra.com"