mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: fix usage of <section> #88
This commit is contained in:
parent
6d96713902
commit
2fcaac5d0b
5 changed files with 13 additions and 13 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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" }}
|
||||
|
|
|
@ -520,7 +520,7 @@ jQuery(function() {
|
|||
});
|
||||
|
||||
$('a[rel="lightbox"]').featherlight({
|
||||
root: 'section#body'
|
||||
root: 'div#body'
|
||||
});
|
||||
|
||||
sessionStorage.setItem(jQuery('body').data('url'), 1);
|
||||
|
|
Loading…
Reference in a new issue