diff options
author | C. Lente <7017340+clente@users.noreply.github.com> | 2023-02-10 17:13:02 -0300 |
---|---|---|
committer | C. Lente <7017340+clente@users.noreply.github.com> | 2023-02-10 17:16:49 -0300 |
commit | 6e341272f5c3d92be25e1997a8deb44c3f5cd02a (patch) | |
tree | fa522ee77aa6c0841a5688ca4708cfa42edd2ada | |
parent | a18a8cc797d6302856b5c24fd7a7577b0ebb7b03 (diff) | |
download | hugo-bearcub-6e341272f5c3d92be25e1997a8deb44c3f5cd02a.tar.gz hugo-bearcub-6e341272f5c3d92be25e1997a8deb44c3f5cd02a.tar.bz2 |
Better RSS
-rw-r--r-- | exampleSite/config.toml | 8 | ||||
-rw-r--r-- | layouts/partials/nav.html | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2b17f2d..4449bb7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -7,7 +7,7 @@ theme = "hugo-bearcub" # Basic metadata configuration for your blog. author = "John Doe" -copyright = "John Doe (CC BY-SA 4.0)" +copyright = "John Doe (CC BY 4.0)" # highlighting without inline styles [markup] @@ -29,6 +29,8 @@ DefaultContentLanguage = "en" contentDir = "content" weight = 1 [languages.en.params] + # Absolute path to your blog section, used for the nav bar's RSS link + blogPath = "/blog" # You can use markdown here if you want to link somewhere madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)" [languages.pt] @@ -38,6 +40,8 @@ DefaultContentLanguage = "en" contentDir = "content.pt" weight = 2 [languages.pt.params] + # Absolute path to your blog section, used for the nav bar's RSS link + blogPath = "/pt/blog" # You can use markdown here if you want to link somewhere madeWith = "Feito com [Bear Cub](https://github.com/clente/hugo-bearcub)" @@ -67,5 +71,5 @@ DefaultContentLanguage = "en" # (Optional, experimental, default false) Enables a drop-down menu for translations only if a translation is present. hideUntranslated = false - # Email + # Email, used for the nav bar's email link email = "me@example.com" diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 8e2dd90..061a606 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -2,7 +2,7 @@ <a href="{{ absLangURL .URL }}">{{ .Name }}</a> {{ end }} <a href='mailto:{{ .Site.Params.email }}?subject={{ i18n "email-subject" }}"{{ default .Site.Title .Page.Title }}"'>Email</a> -<a href="/index.xml">RSS</a> +<a href="{{ .Site.Language.Params.params.blogPath }}/index.xml">RSS</a> <!-- Convert this page's translations into a dict --> {{ $translations := dict }} |