Add Atom Feed component
This commit is contained in:
commit
7a3d4f893b
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +1,6 @@
|
||||||
[submodule "themes/anubis"]
|
[submodule "themes/anubis"]
|
||||||
path = themes/anubis
|
path = themes/anubis
|
||||||
url = https://github.com/mitrichius/hugo-theme-anubis.git
|
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
|
||||||
|
|
14
config.yaml
14
config.yaml
|
@ -2,7 +2,9 @@ baseURL: "https://belanyi.fr/"
|
||||||
languageCode: "en-us"
|
languageCode: "en-us"
|
||||||
title: "Ambroisie's blog"
|
title: "Ambroisie's blog"
|
||||||
|
|
||||||
theme: "anubis"
|
theme:
|
||||||
|
- "hugo-atom-feed"
|
||||||
|
- "anubis"
|
||||||
paginate: 5
|
paginate: 5
|
||||||
disqusShortname: ""
|
disqusShortname: ""
|
||||||
googleAnalytics: ""
|
googleAnalytics: ""
|
||||||
|
@ -39,6 +41,16 @@ author:
|
||||||
permalinks:
|
permalinks:
|
||||||
posts: /:year/:month/:day/:title/
|
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:
|
params:
|
||||||
author: "Bruno BELANYI"
|
author: "Bruno BELANYI"
|
||||||
|
|
|
@ -3,3 +3,6 @@
|
||||||
<link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
|
<link rel="stylesheet" type="text/css" href="https://tikzjax.com/v1/fonts.css">
|
||||||
<script async src="https://tikzjax.com/v1/tikzjax.js"></script>
|
<script async src="https://tikzjax.com/v1/tikzjax.js"></script>
|
||||||
{{ end }}
|
{{ 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
1
themes/hugo-atom-feed
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 5da913dc46d2dadcaf6548256238c58c504476de
|
Loading…
Reference in a new issue