From dccbceb2187b21f0e922ec337be65d8226ef9c57 Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Sat, 7 Dec 2019 13:51:12 -0500 Subject: [PATCH] Add h-entry and h-feed microformats * Add h-entry microformat markup to single page template * Add h-feed wrapper around list of articles in list template * Add h-entry to summary template --- layouts/_default/baseof.html | 2 +- layouts/_default/list.html | 4 ++-- layouts/_default/single.html | 8 ++++++-- layouts/_default/summary.html | 12 ++++++++---- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f69e8c3..e102592 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -29,7 +29,7 @@ {{- end }} -
+
{{- block "content-header" . -}} {{- end -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8d45305..e18e7db 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -3,10 +3,10 @@ {{ .Title }} – {{ .Site.Title }} {{ end }} {{ define "content-header" }} -

{{ .Title }}

+

{{ .Title }}

{{ end }} {{ define "content" }} -
+
{{ .Content }}
{{ range $index, $page := (.Paginate (where .Pages ".Params.hidden" "!=" "true")).Pages }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6245c11..af4d555 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,10 +3,14 @@ {{ .Title }} – {{ .Site.Title }} {{ end }} {{ define "content-header" }} -

{{ .Title }}

+

{{ .Title }}

+

+ Published by {{ .Site.Params.Card.Author }} on + +

{{ end }} {{ define "content" }} -
+
{{ .Content }}
{{ end }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index e83980c..169ab1b 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,9 +1,13 @@ -