theme: use <main> #88

This commit is contained in:
Sören Weber 2021-09-13 19:24:06 +02:00
parent 2fcaac5d0b
commit 65cb38aec3
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
4 changed files with 5 additions and 5 deletions

View file

@ -41,14 +41,14 @@
<div id="body" style="margin-left:0px;">
<div id="overlay"></div>
<div id="chapter">
<div id="body-inner">
<main id="body-inner">
<h1>{{ T "title-404" }}</h1>
<p></p>
<p>{{ T "message-404" }}</p>
<p></p>
<p><a href="{{ "" | relLangURL }}">{{ T "Go-to-homepage" }}</a></p>
<p><img src="{{ "/images/gopher-404.jpg" | relURL }}" style="width:50%" alt="Page not found!"></p>
</div>
</main>
</div>
</div>
</body>

View file

@ -1,7 +1,7 @@
{{- if .Params.chapter }}
</div> <!-- end chapter-->
{{- end }}
</div>
</main><!-- #body-inner -->
{{- partial "custom-comments.html" . }}
</div>
<div id="navigation">

View file

@ -90,7 +90,7 @@
{{- if .Params.chapter }}
<div id="chapter">
{{- end }}
<div id="body-inner">
<main id="body-inner">
{{- if and (not .IsHome) (not .Params.chapter) }}
<h1>
{{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }}

View file

@ -139,7 +139,7 @@ var getUrlParameter = function getUrlParameter(sPageURL) {
};
// Execute actions on images generated from Markdown pages
var images = $("div#body-inner img").not(".inline");
var images = $("main#body-inner img").not(".inline");
// Wrap image inside a featherlight (to get a full size view in a popup)
images.wrap(function(){
var image =$(this);