summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbreadcat2021-07-04 10:43:09 +0100
committerbreadcat2021-07-04 10:43:09 +0100
commitec7bbdbf257b8d2b11ba937dc599c5a3a90e3407 (patch)
treea2ba657b40688c0ed48537ff20d207a54e3e9709
parent851e3b8d16cce57b52148ec248785dddbd3c5540 (diff)
downloadblog.minskio.co.uk-ec7bbdbf257b8d2b11ba937dc599c5a3a90e3407.tar.gz
blog.minskio.co.uk-ec7bbdbf257b8d2b11ba937dc599c5a3a90e3407.tar.bz2
blog.minskio.co.uk-ec7bbdbf257b8d2b11ba937dc599c5a3a90e3407.zip
Fix headings for lighthouse scoring
100%, hurrah
-rw-r--r--themes/Brine/layouts/_default/baseof.html4
-rw-r--r--themes/Brine/layouts/_default/list.html4
-rw-r--r--themes/Brine/layouts/_default/recipes.html12
3 files changed, 10 insertions, 10 deletions
diff --git a/themes/Brine/layouts/_default/baseof.html b/themes/Brine/layouts/_default/baseof.html
index dfc31b0..3ed54e7 100644
--- a/themes/Brine/layouts/_default/baseof.html
+++ b/themes/Brine/layouts/_default/baseof.html
@@ -8,13 +8,13 @@
<style>
a:hover,a.active{text-decoration:underline}
body{margin:0;word-wrap:break-word;font:calc(.75em + 1.3vmin)/1.6 "Segoe UI",Helvetica,Arial,sans-serif}
- h2{margin-top:40px}
- h3{margin-bottom:unset}
+ h2{font-size:xx-large;margin-bottom:unset}
a{text-decoration:none;color:#03c}
aside ul{list-style:none;white-space:nowrap;padding:10px}
aside a,aside li{color:#E0E0E0}
aside{background:#212121;padding:3.75vw;top:0}
main{margin:8vh auto;max-width:90%}
+ main h1 {font-size: xx-large; margin-top: 8vh}
code{background:#eee;font-family:Consolas,monaco,monospace;padding:5px;font-size:75%}
pre>code{display:block;padding:20px;white-space:pre-wrap;font-size:75%;max-width:80ch}
p,a,li,h1{max-width:70ch}
diff --git a/themes/Brine/layouts/_default/list.html b/themes/Brine/layouts/_default/list.html
index 6f79345..89cb5db 100644
--- a/themes/Brine/layouts/_default/list.html
+++ b/themes/Brine/layouts/_default/list.html
@@ -2,11 +2,11 @@
<ul>
{{ if .IsHome }}
{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "posts") }}{{ range $paginator.Pages }}
- <li><h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3><span>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</span></li>{{ end }}
+ <li><h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2><span>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</span></li>{{ end }}
</ul>{{ partial "pagination.html" $ }}
{{ else }}
{{ range .Pages.ByDate.Reverse }}
- <li><h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3><span>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</span></li>
+ <li><h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2><span>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</span></li>
{{ end }}
</ul>
{{ end }}
diff --git a/themes/Brine/layouts/_default/recipes.html b/themes/Brine/layouts/_default/recipes.html
index 6153241..651a7c6 100644
--- a/themes/Brine/layouts/_default/recipes.html
+++ b/themes/Brine/layouts/_default/recipes.html
@@ -1,26 +1,26 @@
{{ define "main" }} <h1>{{ .Title }}</h1>
{{ .Content }}
- <h3>Meals</h3>
+ <h2>Meals</h2>
<ul>{{ range sort .Site.Taxonomies.recipe.meal ".Page.RelPermalink" }}
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }}
</ul>
- <h3>Snacks</h3>
+ <h2>Snacks</h2>
<ul>{{ range sort .Site.Taxonomies.recipe.snack ".Page.RelPermalink" }}
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }}
</ul>
- <h3>Breads</h3>
+ <h2>Breads</h2>
<ul>{{ range sort .Site.Taxonomies.recipe.bread ".Page.RelPermalink" }}
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }}
</ul>
- <h3>Desserts</h3>
+ <h2>Desserts</h2>
<ul>{{ range sort .Site.Taxonomies.recipe.dessert ".Page.RelPermalink" }}
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }}
</ul>
- <h3>Drinks</h3>
+ <h2>Drinks</h2>
<ul>{{ range sort .Site.Taxonomies.recipe.drink ".Page.RelPermalink" }}
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }}
</ul>
- <h3>Guides</h3>
+ <h2>Guides</h2>
<ul>{{ range sort .Site.Taxonomies.recipe.guide ".Page.RelPermalink" }}
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }}
</ul>{{ end }}