mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
topbar: fix HTML validator errors #639
This commit is contained in:
parent
626841a16c
commit
5d89ffcfd0
2 changed files with 8 additions and 4 deletions
|
@ -71,7 +71,7 @@
|
||||||
<div id="toc-overlay"></div>
|
<div id="toc-overlay"></div>
|
||||||
<nav id="topbar">
|
<nav id="topbar">
|
||||||
<div>
|
<div>
|
||||||
<span class="topbar-right">
|
<div class="topbar-right">
|
||||||
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
|
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
|
||||||
{{- if and (or (eq $outputFormat "html") (eq $outputFormat "searchpage")) $showPrevNext }}
|
{{- if and (or (eq $outputFormat "html") (eq $outputFormat "searchpage")) $showPrevNext }}
|
||||||
{{- $startarrow := "🡐" }}
|
{{- $startarrow := "🡐" }}
|
||||||
|
@ -129,8 +129,8 @@
|
||||||
"title" (printf "%s (CTRL+ALT+w)" (T "Edit-this-page"))
|
"title" (printf "%s (CTRL+ALT+w)" (T "Edit-this-page"))
|
||||||
)}}
|
)}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</span>
|
</div>
|
||||||
<span class="topbar-left">
|
<div class="topbar-left">
|
||||||
{{- partial "topbar-button.html" (dict
|
{{- partial "topbar-button.html" (dict
|
||||||
"page" $page
|
"page" $page
|
||||||
"class" "topbar-sidebar"
|
"class" "topbar-sidebar"
|
||||||
|
@ -162,7 +162,7 @@
|
||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
</span>
|
</span>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</span>
|
</div>
|
||||||
{{- if $toc }}
|
{{- if $toc }}
|
||||||
{{ $toc_content }}
|
{{ $toc_content }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -1020,9 +1020,13 @@ html[dir="rtl"] .topbar-left .topbar-button {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#body .topbar-right {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
#body .topbar-left {
|
#body .topbar-left {
|
||||||
border-inline-start-style: solid;
|
border-inline-start-style: solid;
|
||||||
border-inline-start-width: 1px;
|
border-inline-start-width: 1px;
|
||||||
|
display: inline;
|
||||||
float: left;
|
float: left;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
Loading…
Reference in a new issue