mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
theme: remove HTML validator errors #329
This commit is contained in:
parent
45875d5e73
commit
c0f1f7fa60
7 changed files with 13 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
<!-- Partial intended to be overwritten to add custom headers, like CSS or any other info
|
||||
<style type="text/css">
|
||||
<style>
|
||||
/* Custom css */
|
||||
</style>
|
||||
-->
|
|
@ -91,7 +91,7 @@
|
|||
{{- $showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb)) }}
|
||||
{{- if $showBreadcrumb }}
|
||||
<ol class="links" itemscope itemtype="http://schema.org/BreadcrumbList">
|
||||
<meta itemprop="itemListOrder" content="Descending" />
|
||||
<meta itemprop="itemListOrder" content="Descending">
|
||||
{{- template "breadcrumb" dict "page" . "depth" 0 }}
|
||||
</ol>
|
||||
{{- else }}
|
||||
|
@ -121,6 +121,6 @@
|
|||
{{- template "breadcrumb" dict "page" $parent "depth" $depth }}
|
||||
{{- end }}
|
||||
{{- if $ispublished }}
|
||||
<li itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><meta itemprop="position" content="{{ $depth }}" /><a itemprop="item" href="{{ .page.RelPermalink }}"{{if not .depth}} aria-disabled="true"{{end}}><span itemprop="name">{{if .page.Title}}{{ .page.Title }}{{else}}{{ .page.Site.Title }}{{end}}</span></a>{{ if .depth }} > {{ end }}</li>
|
||||
<li itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><meta itemprop="position" content="{{ $depth }}"><a itemprop="item" href="{{ .page.RelPermalink }}"{{if not .depth}} aria-disabled="true"{{end}}><span itemprop="name">{{if .page.Title}}{{ .page.Title }}{{else}}{{ .page.Site.Title }}{{end}}</span></a>{{ if .depth }} > {{ end }}</li>
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -56,7 +56,7 @@
|
|||
<div id="prefooter" class="footerLangSwitch footerVariantSwitch footerVisitedLinks{{if $showlangswitch}} showLangSwitch{{end}}{{if $showvariantswitch}} showVariantSwitch{{end}}{{if $showvisitedlinks}} showVisitedLinks{{end}}">
|
||||
<ul>
|
||||
<li id="select-language-container" class="footerLangSwitch{{if $showlangswitch}} showLangSwitch{{end}}">
|
||||
<a class="padding select-container">
|
||||
<div class="padding select-container">
|
||||
<i class="fas fa-language fa-fw"></i>
|
||||
<span> </span>
|
||||
<div class="select-style">
|
||||
|
@ -77,10 +77,10 @@
|
|||
</select>
|
||||
</div>
|
||||
<div class="select-clear"></div>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
<li id="select-variant-container" class="footerVariantSwitch{{if $showvariantswitch}} showVariantSwitch{{end}}">
|
||||
<a class="padding select-container">
|
||||
<div class="padding select-container">
|
||||
<i class="fas fa-paint-brush fa-fw"></i>
|
||||
<span> </span>
|
||||
<div class="select-style">
|
||||
|
@ -99,7 +99,7 @@
|
|||
</select>
|
||||
</div>
|
||||
<div class="select-clear"></div>
|
||||
</a>
|
||||
</div>
|
||||
<script>window.variants && variants.markSelectedVariant();</script>
|
||||
</li>
|
||||
<li class="footerVisitedLinks{{if $showvisitedlinks}} showVisitedLinks{{end}}"><a class="padding" onclick="clearHistory();"><i class="fas fa-history fa-fw"></i> {{ T "Clear-History" }}</a></li>
|
||||
|
|
|
@ -38,12 +38,14 @@
|
|||
}
|
||||
|
||||
#sidebar .collapsible-menu label:after,
|
||||
#sidebar .select-container,
|
||||
#sidebar a {
|
||||
color: #bababa; /* var(--MENU-SECTIONS-LINK-color) */
|
||||
}
|
||||
|
||||
#sidebar select:hover,
|
||||
#sidebar .collapsible-menu label:hover:after,
|
||||
#sidebar .select-container:hover,
|
||||
#sidebar a:hover {
|
||||
color: #ffffff; /* var(--MENU-SECTIONS-LINK-HOVER-color) */
|
||||
}
|
||||
|
|
|
@ -163,6 +163,7 @@ body #sidebar ul.topics li.active > a {
|
|||
|
||||
body #sidebar select:hover,
|
||||
body #sidebar label:hover,
|
||||
body #sidebar .select-container:hover,
|
||||
body #sidebar a:hover {
|
||||
color: #fff;
|
||||
text-shadow:
|
||||
|
|
|
@ -133,7 +133,7 @@ th {
|
|||
z-index: 100;
|
||||
}
|
||||
|
||||
#sidebar a.padding {
|
||||
#sidebar .padding {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
|
|
|
@ -136,12 +136,14 @@ a:hover,
|
|||
}
|
||||
|
||||
#sidebar .collapsible-menu label:after,
|
||||
#sidebar .select-container,
|
||||
#sidebar a {
|
||||
color: var(--INTERNAL-MENU-SECTIONS-LINK-color);
|
||||
}
|
||||
|
||||
#sidebar select:hover,
|
||||
#sidebar .collapsible-menu label:hover:after,
|
||||
#sidebar .select-container:hover,
|
||||
#sidebar a:hover {
|
||||
color: var(--INTERNAL-MENU-SECTIONS-LINK-HOVER-color);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue