diff options
author | Alan Pearce | 2020-01-11 19:10:05 +0100 |
---|---|---|
committer | Alan Pearce | 2020-01-11 19:10:05 +0100 |
commit | 91796f21c74558ec438f3b346ae95d125333a0a9 (patch) | |
tree | b20a1c9202153c7163449fe2a857198b97e78738 /themes | |
parent | d4f13dda5ab01a0f4dc0609b6d81205de3fbb93b (diff) | |
download | website-91796f21c74558ec438f3b346ae95d125333a0a9.tar.lz website-91796f21c74558ec438f3b346ae95d125333a0a9.tar.zst website-91796f21c74558ec438f3b346ae95d125333a0a9.zip |
Add h-feed support
Diffstat (limited to 'themes')
-rw-r--r-- | themes/xmin/layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | themes/xmin/layouts/_default/list.html | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/themes/xmin/layouts/_default/baseof.html b/themes/xmin/layouts/_default/baseof.html index 6757396..16332b8 100644 --- a/themes/xmin/layouts/_default/baseof.html +++ b/themes/xmin/layouts/_default/baseof.html | |||
@@ -1,9 +1,9 @@ | |||
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html lang="{{ .Site.LanguageCode }}"> | 2 | <html lang="{{ .Site.LanguageCode }}" {{- if .Page.IsNode }} class="h-feed"{{ end }}> |
3 | <head profile="//gmpg.org/xfn/11"> | 3 | <head profile="//gmpg.org/xfn/11"> |
4 | <meta charset="utf-8"> | 4 | <meta charset="utf-8"> |
5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
6 | <title>{{ .Title }} | {{ .Site.Title }}</title> | 6 | <title {{- if .Page.IsNode }} class="p-name"{{ end }}>{{ .Title }} | {{ .Site.Title }}</title> |
7 | <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" /> | 7 | <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" /> |
8 | {{ range .AlternativeOutputFormats -}} | 8 | {{ range .AlternativeOutputFormats -}} |
9 | {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} | 9 | {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} |
diff --git a/themes/xmin/layouts/_default/list.html b/themes/xmin/layouts/_default/list.html index bf0af50..6780bba 100644 --- a/themes/xmin/layouts/_default/list.html +++ b/themes/xmin/layouts/_default/list.html | |||
@@ -1,18 +1,21 @@ | |||
1 | {{ define "main" }} | 1 | {{ define "main" }} |
2 | 2 | ||
3 | {{if not .IsHome }} | 3 | {{ if not .IsHome }} |
4 | <h1>{{ .Title | markdownify }}</h1> | 4 | <h1>{{ .Title | markdownify }}</h1> |
5 | {{ else }} | ||
6 | <h1>{{ .Site.Title | markdownify }}</h1> | ||
5 | {{ end }} | 7 | {{ end }} |
6 | 8 | ||
9 | |||
7 | {{ .Content }} | 10 | {{ .Content }} |
8 | 11 | ||
9 | <ul> | 12 | <ul> |
10 | {{ $pages := .Pages }} | 13 | {{ $pages := .Pages }} |
11 | {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} | 14 | {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} |
12 | {{ range (where $pages "Section" "!=" "") }} | 15 | {{ range (where $pages "Section" "!=" "") }} |
13 | <li> | 16 | <li class="h-entry"> |
14 | <span class="date">{{ .Date.Format "2006-01-02" }}</span> | 17 | <span class="date dt-published">{{ .Date.Format "2006-01-02" }}</span> |
15 | <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> | 18 | <a class="u-url p-name" href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> |
16 | </li> | 19 | </li> |
17 | {{ end }} | 20 | {{ end }} |
18 | </ul> | 21 | </ul> |