This commit is contained in:
Caio Lente 2023-09-29 20:56:09 -03:00
parent 211cc8aad3
commit dc1d2cf057
No known key found for this signature in database
GPG Key ID: E66D381776EFC03A
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ enableRobotsTXT = true
LanguageCode = "en-US"
contentDir = "content"
[languages.en.params]
blogPath = "/blog" # Path to your blog section (used by RSS)
blogPath = "blog" # Path to your blog section (used by RSS)
madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)"
[languages.pt]
title = "Bear Cub"
@ -41,7 +41,7 @@ enableRobotsTXT = true
LanguageCode = "pt-BR"
contentDir = "content.pt"
[languages.pt.params]
blogPath = "/pt/blog" # Path to your blog section (used by RSS)
blogPath = "blog" # Path to your blog section (used by RSS)
madeWith = "Feito com [Bear Cub](https://github.com/clente/hugo-bearcub)"
[params]

View File

@ -1,10 +1,10 @@
{{ range .Site.Menus.main.ByWeight }}
<a href="{{ relLangURL .URL }}">{{ .Name }}</a>
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
{{ with .Site.Social.email }}
<a href='mailto:{{ . }}?subject={{ i18n "email-subject" }}"{{ default $.Site.Title $.Page.Title }}"'>Email</a>
{{ end }}
<a href="{{ .Site.Params.blogPath }}/index.xml">RSS</a>
<a href="{{ relLangURL .Site.Params.blogPath }}/index.xml">RSS</a>
<!-- Convert this page's translations into a dict -->
{{ $translations := dict }}