aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/partials/nav.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index cecd754..3b68b53 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -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]
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index a16fec3..2cc03a2 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -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 }}