From 91796f21c74558ec438f3b346ae95d125333a0a9 Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Sat, 11 Jan 2020 19:10:05 +0100
Subject: Add h-feed support
---
layouts/index.html | 6 +++---
themes/xmin/layouts/_default/baseof.html | 4 ++--
themes/xmin/layouts/_default/list.html | 11 +++++++----
3 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/layouts/index.html b/layouts/index.html
index 25eaf74..c555aa9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -9,9 +9,9 @@
Latest Posts
{{- range first 3 .Site.RegularPages }}
- -
- {{ .Title }}
-
+
-
+ {{ .Title }}
+
{{- end }}
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 @@
-
+
- {{ .Title }} | {{ .Site.Title }}
+ {{ .Title }} | {{ .Site.Title }}
{{ range .AlternativeOutputFormats -}}
{{ printf `` .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 @@
{{ define "main" }}
-{{if not .IsHome }}
+{{ if not .IsHome }}
{{ .Title | markdownify }}
+{{ else }}
+{{ .Site.Title | markdownify }}
{{ end }}
+
{{ .Content }}
{{ $pages := .Pages }}
{{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
{{ range (where $pages "Section" "!=" "") }}
- -
- {{ .Date.Format "2006-01-02" }}
- {{ .Title | markdownify }}
+
-
+ {{ .Date.Format "2006-01-02" }}
+ {{ .Title | markdownify }}
{{ end }}
--
cgit 1.4.1