blob: 8c7272f9718fa4dd52d2db3195a06db4231a0b70 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{{- $author := partial "function-authors-data.html" . -}}
{{- with (eq .Page.Kind "home") -}}
<link
rel="alternate"
type="application/rss+xml"
title="{{ $.Site.Title }} Feed"
href="{{ "" | absURL }}/rss.xml"
/>
{{- range $author := $.Site.Sections }}
<link
rel="alternate"
type="application/rss+xml"
title="{{ $author.Page.Type }}'s Feed"
href="{{ print $author.Permalink "rss.xml" | absURL }}"
/>
{{ end }}
{{- end -}}
{{- with (eq .Page.Kind "section") -}}
<link
rel="alternate"
type="application/rss+xml"
title="{{ $author.name }}'s Feed"
href="{{ print ("" | absURL) "/" $.Section }}/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 }}
{{- end -}}
{{- with (eq .Page.Kind "taxonomy") -}}
<link
rel="alternate"
type="application/rss+xml"
title="{{ $.Title }} Feed"
href="{{ $.Permalink }}rss.xml"
/>
{{- end -}}
{{- with (eq .Page.Kind "term") -}}
<link
rel="alternate"
type="application/rss+xml"
title="#{{ lower $.Title }} Tag Feed"
href="{{ $.Permalink }}rss.xml"
/>
{{- end }}
|