To configure custom outputs, add the folowing to your config.toml
:
[outputs]
home = [ "HTML", "RSS", "JSON"]
Add in the layouts/partials/custom-header.html
file:
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
The previous code will add a link in each page of your project
If you want to limit the link to specific page, add in the layouts/partials/custom-header.html
file:
{{ if .Params.rssLink -}}
{{ $title := (.Params.rssLinkTitle | default (printf "%s :: %s " $.Site.Title $.Title)) -}}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $title | safeHTML }}
{{ end -}}
{{ end -}}
And then in each page, you can configure the following parameters in the front-matter:
---
rssLink: true
rssLinkTitle: "(╯°□°)╯︵ t18s.fr"
---