mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-17 09:10:08 +00:00
theme: use <main> #88
This commit is contained in:
parent
2fcaac5d0b
commit
65cb38aec3
4 changed files with 5 additions and 5 deletions
|
@ -41,14 +41,14 @@
|
||||||
<div 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">
|
<main id="body-inner">
|
||||||
<h1>{{ T "title-404" }}</h1>
|
<h1>{{ T "title-404" }}</h1>
|
||||||
<p></p>
|
<p></p>
|
||||||
<p>{{ T "message-404" }}</p>
|
<p>{{ T "message-404" }}</p>
|
||||||
<p></p>
|
<p></p>
|
||||||
<p><a href="{{ "" | relLangURL }}">{{ T "Go-to-homepage" }}</a></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>
|
<p><img src="{{ "/images/gopher-404.jpg" | relURL }}" style="width:50%" alt="Page not found!"></p>
|
||||||
</div>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{- if .Params.chapter }}
|
{{- if .Params.chapter }}
|
||||||
</div> <!-- end chapter-->
|
</div> <!-- end chapter-->
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</main><!-- #body-inner -->
|
||||||
{{- partial "custom-comments.html" . }}
|
{{- partial "custom-comments.html" . }}
|
||||||
</div>
|
</div>
|
||||||
<div id="navigation">
|
<div id="navigation">
|
||||||
|
|
|
@ -90,7 +90,7 @@
|
||||||
{{- if .Params.chapter }}
|
{{- if .Params.chapter }}
|
||||||
<div id="chapter">
|
<div id="chapter">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<div id="body-inner">
|
<main id="body-inner">
|
||||||
{{- if and (not .IsHome) (not .Params.chapter) }}
|
{{- if and (not .IsHome) (not .Params.chapter) }}
|
||||||
<h1>
|
<h1>
|
||||||
{{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }}
|
{{ if eq .Kind "term" }}{{ .Data.Singular }} :: {{ end }}{{ .Title }}
|
||||||
|
|
|
@ -139,7 +139,7 @@ var getUrlParameter = function getUrlParameter(sPageURL) {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Execute actions on images generated from Markdown pages
|
// 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)
|
// Wrap image inside a featherlight (to get a full size view in a popup)
|
||||||
images.wrap(function(){
|
images.wrap(function(){
|
||||||
var image =$(this);
|
var image =$(this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue