summaryrefslogtreecommitdiffstats
path: root/themes/Brine/layouts/_default
diff options
context:
space:
mode:
authorbreadcat2020-06-28 00:34:31 +0100
committerbreadcat2020-06-28 00:34:31 +0100
commitad505d88ad0c586ca6b1eff2a0c7873c544c5fe1 (patch)
tree5e8e89ca36f7abfa4c456c589ba0293929e34e64 /themes/Brine/layouts/_default
parentdd555cfd61ffe7a68fb4d82ed605baaf52ebcfc8 (diff)
downloadblog.minskio.co.uk-ad505d88ad0c586ca6b1eff2a0c7873c544c5fe1.tar.gz
blog.minskio.co.uk-ad505d88ad0c586ca6b1eff2a0c7873c544c5fe1.tar.bz2
blog.minskio.co.uk-ad505d88ad0c586ca6b1eff2a0c7873c544c5fe1.zip
Tidy up produced HTML
Indentation, unecessary CSS declarations, line breaks, everything must go!
Diffstat (limited to 'themes/Brine/layouts/_default')
-rw-r--r--themes/Brine/layouts/_default/list.html11
-rw-r--r--themes/Brine/layouts/_default/page.html13
-rw-r--r--themes/Brine/layouts/_default/single.html17
-rw-r--r--themes/Brine/layouts/_default/terms.html10
4 files changed, 17 insertions, 34 deletions
diff --git a/themes/Brine/layouts/_default/list.html b/themes/Brine/layouts/_default/list.html
index 6fc5811..2e0dee6 100644
--- a/themes/Brine/layouts/_default/list.html
+++ b/themes/Brine/layouts/_default/list.html
@@ -1,6 +1,5 @@
-{{ define "main" }}<article>
- <h1 class="page-heading">{{ .Title }}</h1>
- <ul class="post-list">
- {{ range $index, $element := .Paginator.Pages }} <li><h3><a class="post-link" href="{{ .Permalink }}">{{ .Title }}</a></h3><span class="post-meta">{{ .PublishDate.Format "Jan 2, 2006" }}, {{ .ReadingTime }} min read</span></li>
- {{ end }}</ul>{{ partial "pagination.html" $ }}
- </article>{{ end }}
+{{ define "main" }} <h1>{{ .Title }}</h1>
+ <ul>{{ range $index, $element := .Paginator.Pages }}
+ <li><h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3><span>{{ .PublishDate.Format "Jan 2, 2006" }}, {{ .ReadingTime }} min read</span></li>{{ end }}
+ </ul>
+{{ partial "pagination.html" $ }}{{ end }}
diff --git a/themes/Brine/layouts/_default/page.html b/themes/Brine/layouts/_default/page.html
index 8c69ad7..e32b8d9 100644
--- a/themes/Brine/layouts/_default/page.html
+++ b/themes/Brine/layouts/_default/page.html
@@ -1,10 +1,3 @@
-{{ define "main" }}
- <article class="post">
- <header class="post-header">
- <h1 class ="post-title">{{ .Title }}</h1>
- <div class="post-meta">
- <div>Reading time: {{ .ReadingTime }} min</div>
- </div>
- </header>
- <div class="post-content">{{ .Content }}</div>
- </article>{{ end }}
+{{ define "main" }} <h1>{{ .Title }}</h1>
+ <div>Reading time: {{ .ReadingTime }} min</div>
+ {{ .Content }}{{ end }}
diff --git a/themes/Brine/layouts/_default/single.html b/themes/Brine/layouts/_default/single.html
index a34f75c..dacdc89 100644
--- a/themes/Brine/layouts/_default/single.html
+++ b/themes/Brine/layouts/_default/single.html
@@ -1,12 +1,5 @@
-{{ define "main" }}
- <article class="post">
- <header class="post-header">
- <h1 class ="post-title">{{ .Title }}</h1>
- <div class="post-meta">
- <div>Published: {{ .PublishDate.Format "Jan 2, 2006" }}</div>
- <div>Reading time: {{ .ReadingTime }} min</div>{{- with .Params.tags -}}
- <div>Tags: {{ range . -}}{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}<a href="{{ .Permalink }}">{{ .Title }}</a>&nbsp;{{- end -}}{{- end -}}</div>{{- end -}}
- </div>
- </header>
- <div class="post-content">{{ .Content }}</div>
- </article>{{ end }}
+{{ define "main" }} <h1>{{ .Title }}</h1>
+ <div>Published: {{ .PublishDate.Format "Jan 2, 2006" }}</div>
+ <div>Reading time: {{ .ReadingTime }} min</div>{{- with .Params.tags -}}
+ <div>Tags: {{ range . -}}{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}<a href="{{ .Permalink }}">{{ .Title }}</a>&nbsp;{{- end -}}{{- end -}}</div>{{- end -}}
+ {{ .Content }}{{ end }}
diff --git a/themes/Brine/layouts/_default/terms.html b/themes/Brine/layouts/_default/terms.html
index a90786c..a6a4d96 100644
--- a/themes/Brine/layouts/_default/terms.html
+++ b/themes/Brine/layouts/_default/terms.html
@@ -1,6 +1,4 @@
-{{ define "main" }}<article>
- <h1>{{ .Title }}</h1>
- <ul class="posts-list">
- {{ range .Data.Terms.Alphabetical }} <li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
- {{ end }}</ul>
- </article>{{ end }}
+{{ define "main" }} <h1>{{ .Title }}</h1>
+ <ul>{{ range .Data.Terms.Alphabetical }}
+ <li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>{{ end }}
+ </ul>{{ end }}