Add Atom Feed component

This commit is contained in:
Bruno BELANYI 2021-01-04 15:42:50 +01:00
commit 7a3d4f893b
4 changed files with 20 additions and 1 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "themes/anubis"]
path = themes/anubis
url = https://github.com/mitrichius/hugo-theme-anubis.git
[submodule "themes/hugo-atom-feed"]
path = themes/hugo-atom-feed
url = https://github.com/kaushalmodi/hugo-atom-feed.git

View file

@ -2,7 +2,9 @@ baseURL: "https://belanyi.fr/"
languageCode: "en-us"
title: "Ambroisie's blog"
theme: "anubis"
theme:
- "hugo-atom-feed"
- "anubis"
paginate: 5
disqusShortname: ""
googleAnalytics: ""
@ -39,6 +41,16 @@ author:
permalinks:
posts: /:year/:month/:day/:title/
outputs:
# <domain>/atom.xml
home: [ "HTML", "RSS", "ATOM" ]
# <domain>/posts/atom.xml
section: [ "HTML", "RSS", "ATOM" ]
# <domain>/tags/mytag/atom.xml
taxonomy: [ "HTML", "RSS", "ATOM" ]
ignoreErrors:
- "error-output-taxonomy"
params:
author: "Bruno BELANYI"

View file

@ -3,3 +3,6 @@
<link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
<script async src="https://tikzjax.com/v1/tikzjax.js"></script>
{{ end }}
{{ with .OutputFormats.Get "atom" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}

1
themes/hugo-atom-feed Submodule

@ -0,0 +1 @@
Subproject commit 5da913dc46d2dadcaf6548256238c58c504476de