Better RSS

This commit is contained in:
C. Lente 2023-02-10 17:13:02 -03:00
parent a18a8cc797
commit 6e341272f5
No known key found for this signature in database
GPG Key ID: B0B503C26E05781B
2 changed files with 7 additions and 3 deletions

View File

@ -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"

View File

@ -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 }}