blob: 43700630c98667f9c09ef47d1ea8a1ca0c98794f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{{- partial "generate-authors" . -}}
{{-
$authorData := (dict
"Context" .
"AuthorDefaultUser" .Site.Author.default.home
)
-}}
{{- $author := partial "function-authors-data.html" (dict "Data" $authorData) -}}
<link
rel="alternate"
type="application/rss+xml"
title="{{ $author.name }}'s Feed"
href="{{ .Site.BaseURL }}/{{ $author.user }}/rss.xml"
/>
{{- with $author.feeds.rss }}
{{ range $author.feeds.rss }}
{{ $data := split . " " }}
{{- $url := delimit (first 1 $data) "" -}}
{{- $retitle := trim (delimit (after 1 $data) " ") " " -}}
{{- $retitle := and $retitle (print $retitle "'s Feed") -}}
<link
rel="alternate"
type="application/rss+xml"
title="{{ or $retitle $url }}"
href="{{ $url }}"
/>
{{ end }}
{{- end -}}
|