From e34ded01904b07456a48cf28f1a5a2d2d77a0be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sat, 15 Jun 2019 02:57:25 +0200 Subject: Simplifying parts of the theme --- layouts/_default/baseof.html | 4 ++++ layouts/_default/single.html | 6 +++--- layouts/_default/summary.html | 14 +++++++------- layouts/index.html | 3 --- layouts/partials/footer.html | 2 +- layouts/partials/head.html | 8 -------- layouts/partials/header.html | 27 +++------------------------ 7 files changed, 18 insertions(+), 46 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 7f7c5ae..f5fb3d8 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,11 @@ {{- partial "header.html" . -}} + +
{{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} {{- block "footerfiles" . }}{{- end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e28413d..6007308 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,10 +1,10 @@ {{ define "main" }}
-
-
+

{{ .Title }}

diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 379694c..20c8d9c 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,10 +1,10 @@ -
- +
+
-

+

{{ .Title }}

-
{{ .Date.Format "Mon, Jan 2, 2006" }} - {{ .FuzzyWordCount }} Words
+
{{ .Date.Format "Mon, Jan 2, 2006" }} - {{ .FuzzyWordCount }} Words - {{ .ReadingTime }} min read

{{ .Summary }} @@ -13,10 +13,10 @@ Continue reading → {{ with .Params.thumbnailImage }} - + {{ else }} - {{ if .Params.coverimage }} - + {{ if .Params.cover }} + {{ end}} {{ end }} diff --git a/layouts/index.html b/layouts/index.html index eb6d5c6..9b143c0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,11 +1,8 @@ {{ define "main" }} -

- {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }} {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} {{ partial "pagination.html" . }} -
{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index d4216d8..d437bde 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,4 @@ -