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

View file

@ -15,7 +15,7 @@
{{- end }} {{- end }}
{{- end }} {{- end }}
</div> </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="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 style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
</div> </div>

View file

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

View file

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

View file

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