theme: fix usage of <section> #88

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

View file

@ -38,7 +38,7 @@
{{- partial "custom-header.html" . }}
</head>
<body class="" data-url="/">
<section id="body" style="margin-left:0px;">
<div id="body" style="margin-left:0px;">
<div id="overlay"></div>
<div id="chapter">
<div id="body-inner">
@ -50,6 +50,6 @@
<p><img src="{{ "/images/gopher-404.jpg" | relURL }}" style="width:50%" alt="Page not found!"></p>
</div>
</div>
</section>
</div>
</body>
</html>

View file

@ -15,7 +15,7 @@
{{- end }}
{{- end }}
</div>
</section>
</div><!-- #body -->
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
</div>

View file

@ -38,7 +38,7 @@
</head>
<body class="" data-url="{{ .RelPermalink }}">
{{- partial "menu.html" . }}
<section id="body">
<div id="body">
<div id="overlay"></div>
<div class="padding highlightable">
{{- if not .IsHome }}

View file

@ -11,13 +11,13 @@
{{- end }}
</div>
{{- if not .Site.Params.disableLandingPageButton }}
<section id="homelinks">
<div id="homelinks">
<ul>
<li>
<a class="padding" href="{{ .Site.Params.landingPageURL | default "/" | relLangURL }}">{{ .Site.Params.landingPageName | default `<i class="fas fa-home"></i> Home` | safeHTML }}</a>
</li>
</ul>
</section>
</div>
{{- end }}
<div class="highlightable">
<ul class="topics">
@ -33,18 +33,18 @@
</ul>
{{- $disableShortcutsTitle := .Site.Params.DisableShortcutsTitle }}
{{- with .Site.Menus.shortcuts }}
<section id="shortcuts">
<div id="shortcuts">
<h3>{{ if not $disableShortcutsTitle }}{{ T "Shortcuts-Title" }}{{ end }}</h3>
<ul>
{{- range sort . "Weight" }}
<li>{{ .Pre }}<a class="padding" href="{{ .URL | absLangURL }}">{{ safeHTML .Name }}</a>{{ .Post }}</li>
{{- end }}
</ul>
</section>
</div>
{{- end }}
{{- if or .Site.IsMultiLingual $showvisitedlinks }}
<section id="prefooter">
<div id="prefooter">
<hr/>
<ul>
{{- if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton) }}
@ -86,11 +86,11 @@
<li><a class="padding" href="#" data-clear-history-toggle=""><i class="fas fa-history fa-fw"></i> {{ T "Clear-History" }}</a></li>
{{- end }}
</ul>
</section>
</div>
{{- end }}
<section id="footer">
<div id="footer">
{{- partial "menu-footer.html" . }}
</section>
</div>
</div>
</nav>
{{- define "section-tree-nav" }}

View file

@ -520,7 +520,7 @@ jQuery(function() {
});
$('a[rel="lightbox"]').featherlight({
root: 'section#body'
root: 'div#body'
});
sessionStorage.setItem(jQuery('body').data('url'), 1);