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>
|
||||
<nav id="topbar">
|
||||
<div>
|
||||
<span class="topbar-right">
|
||||
<div class="topbar-right">
|
||||
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
|
||||
{{- if and (or (eq $outputFormat "html") (eq $outputFormat "searchpage")) $showPrevNext }}
|
||||
{{- $startarrow := "🡐" }}
|
||||
|
@ -129,8 +129,8 @@
|
|||
"title" (printf "%s (CTRL+ALT+w)" (T "Edit-this-page"))
|
||||
)}}
|
||||
{{- end }}
|
||||
</span>
|
||||
<span class="topbar-left">
|
||||
</div>
|
||||
<div class="topbar-left">
|
||||
{{- partial "topbar-button.html" (dict
|
||||
"page" $page
|
||||
"class" "topbar-sidebar"
|
||||
|
@ -162,7 +162,7 @@
|
|||
{{ .Title }}
|
||||
</span>
|
||||
{{- end }}
|
||||
</span>
|
||||
</div>
|
||||
{{- if $toc }}
|
||||
{{ $toc_content }}
|
||||
{{- end }}
|
||||
|
|
|
@ -1020,9 +1020,13 @@ html[dir="rtl"] .topbar-left .topbar-button {
|
|||
background-color: transparent;
|
||||
}
|
||||
|
||||
#body .topbar-right {
|
||||
display: inline;
|
||||
}
|
||||
#body .topbar-left {
|
||||
border-inline-start-style: solid;
|
||||
border-inline-start-width: 1px;
|
||||
display: inline;
|
||||
float: left;
|
||||
height: auto;
|
||||
margin-bottom: 0;
|
||||
|
|
Loading…
Reference in a new issue