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