From 6e341272f5c3d92be25e1997a8deb44c3f5cd02a Mon Sep 17 00:00:00 2001
From: "C. Lente" <7017340+clente@users.noreply.github.com>
Date: Fri, 10 Feb 2023 17:13:02 -0300
Subject: [PATCH] Better RSS
---
exampleSite/config.toml | 8 ++++++--
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 @@
{{ .Name }}
{{ end }}
Email
-RSS
+RSS
{{ $translations := dict }}