Less menus on config
This commit is contained in:
parent
4b84339a4f
commit
7a4c8fd24b
@ -8,7 +8,6 @@ theme = "hugo-bearcub"
|
|||||||
# Basic metadata configuration for your blog.
|
# Basic metadata configuration for your blog.
|
||||||
author = "Caio Lente"
|
author = "Caio Lente"
|
||||||
copyright = "Caio Lente (CC BY-SA 4.0)"
|
copyright = "Caio Lente (CC BY-SA 4.0)"
|
||||||
DefaultContentLanguage = "en"
|
|
||||||
|
|
||||||
# highlighting without inline styles
|
# highlighting without inline styles
|
||||||
[markup]
|
[markup]
|
||||||
@ -21,6 +20,7 @@ DefaultContentLanguage = "en"
|
|||||||
# There are different options to translate files
|
# There are different options to translate files
|
||||||
# See https://gohugo.io/content-management/multilingual/#translation-by-filename
|
# See https://gohugo.io/content-management/multilingual/#translation-by-filename
|
||||||
# And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
|
# And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
|
||||||
|
DefaultContentLanguage = "en"
|
||||||
[languages]
|
[languages]
|
||||||
[languages.en]
|
[languages.en]
|
||||||
title = "Example Site"
|
title = "Example Site"
|
||||||
@ -39,14 +39,6 @@ DefaultContentLanguage = "en"
|
|||||||
name = 'Blog'
|
name = 'Blog'
|
||||||
url = '/blog'
|
url = '/blog'
|
||||||
weight = 2
|
weight = 2
|
||||||
[[languages.en.menu.main]]
|
|
||||||
name = 'Email'
|
|
||||||
url = '/ERRORERRORERROR'
|
|
||||||
weight = 3
|
|
||||||
[[languages.en.menu.main]]
|
|
||||||
name = 'RSS'
|
|
||||||
url = '/index.xml'
|
|
||||||
weight = 4
|
|
||||||
[languages.pt]
|
[languages.pt]
|
||||||
title = "Site Exemplo"
|
title = "Site Exemplo"
|
||||||
languageName = "Português 🇧🇷"
|
languageName = "Português 🇧🇷"
|
||||||
@ -64,14 +56,6 @@ DefaultContentLanguage = "en"
|
|||||||
name = 'Blog'
|
name = 'Blog'
|
||||||
url = '/pt/blog'
|
url = '/pt/blog'
|
||||||
weight = 2
|
weight = 2
|
||||||
[[languages.pt.menu.main]]
|
|
||||||
name = 'Email'
|
|
||||||
url = '/pt/ERRORERRORERROR'
|
|
||||||
weight = 3
|
|
||||||
[[languages.pt.menu.main]]
|
|
||||||
name = 'RSS'
|
|
||||||
url = '/pt/index.xml'
|
|
||||||
weight = 4
|
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
# The "description" of your website. This is used in the meta data of your generated html.
|
# The "description" of your website. This is used in the meta data of your generated html.
|
||||||
@ -98,3 +82,6 @@ DefaultContentLanguage = "en"
|
|||||||
# /!\ This is an experimental feature, might be removed or changed at any time
|
# /!\ This is an experimental feature, might be removed or changed at any time
|
||||||
# (Optional, experimental, default false) Enables a drop-down menu for translations only if a translation is present.
|
# (Optional, experimental, default false) Enables a drop-down menu for translations only if a translation is present.
|
||||||
hideUntranslated = false
|
hideUntranslated = false
|
||||||
|
|
||||||
|
# Email
|
||||||
|
email = "c@lente.dev"
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
[filtering-for]
|
[filtering-for]
|
||||||
other = 'Filtering for'
|
other = 'Filtering for'
|
||||||
|
|
||||||
|
[email-subject]
|
||||||
|
other = 'Reply to '
|
@ -1,2 +1,5 @@
|
|||||||
[filtering-for]
|
[filtering-for]
|
||||||
other = 'Filtrando para'
|
other = 'Filtrando para'
|
||||||
|
|
||||||
|
[email-subject]
|
||||||
|
other = 'Resposta a '
|
@ -1,6 +1,8 @@
|
|||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<a href="mailto:{{ .Site.Params.email }}?subject={{ i18n "email-subject" }}'{{ .Page.Title | default .Site.Title }}'">Email</a>
|
||||||
|
<a href="/index.xml">RSS</a>
|
||||||
{{ $pageLang := .Page.Lang }}
|
{{ $pageLang := .Page.Lang }}
|
||||||
{{ if .IsTranslated }}
|
{{ if .IsTranslated }}
|
||||||
{{ range .Translations }}
|
{{ range .Translations }}
|
||||||
@ -11,8 +13,3 @@
|
|||||||
{{ else if not .Site.Params.hideUntranslated }}
|
{{ else if not .Site.Params.hideUntranslated }}
|
||||||
<a class="disabled" href="">{{ .Language.LanguageName }}</a>
|
<a class="disabled" href="">{{ .Language.LanguageName }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- <a href={{ i18n "home" | relURL }}>Home</a>
|
|
||||||
<a href={{ i18n "posts" }}>Blog</a>
|
|
||||||
<a href="mailto:c@lente.dev?subject={{ i18n "reply" }}'{{ .Page.Title | default .Site.Title }}'">Email</a>
|
|
||||||
<a href="/index.xml">RSS</a> -->
|
|
Loading…
x
Reference in New Issue
Block a user