finish most of the colorswitch thigns

This commit is contained in:
zoe 2022-04-10 00:15:21 +02:00
parent ff99214248
commit 487b637ab9
3 changed files with 6 additions and 6 deletions

View file

@ -11,7 +11,7 @@
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
<li>
<a href="{{.Permalink}}">{{.Title}}</a>
<a class="colorswitch" href="{{.Permalink}}">{{.Title}}</a>
</li>
{{ end }}
</ul>

View file

@ -1,6 +1,6 @@
{{ define "main" }}
<section id="main">
<h1 id="title">Single Page {{ .Title }}</h1>
<h1 id="title" class="colorswitch">Single Page {{ .Title }}</h1>
<div>
<article id="content">
{{ .Content }}
@ -14,7 +14,7 @@
{{ with .Params.topics }}
<ul id="topics">
{{ range . }}
<li><a href="{{ "topics" | absURL}}{{ . | urlize }}">{{ . }}</a> </li>
<li><a class="colorswitch" href="{{ "topics" | absURL}}{{ . | urlize }}">{{ . }}</a> </li>
{{ end }}
</ul>
{{ end }}
@ -28,10 +28,10 @@
</div>
<div>
{{ with .PrevInSection }}
<a class="previous" href="{{.Permalink}}">previous: {{.Title}}</a>
<a class="previous colorswitch" href="{{.Permalink}}">previous: {{.Title}}</a>
{{ end }}
{{ with .NextInSection }}
<a class="next" href="{{.Permalink}}">next: {{.Title}}</a>
<a class="next colorswitch" href="{{.Permalink}}">next: {{.Title}}</a>
{{ end }}
</div>
</aside>

View file

@ -3,7 +3,7 @@
<nav id="footer-nav">
{{ $currentPage := . }}
{{ range .Site.Menus.nav }}
<a class="footer-nav-item{{if or ($currentPage.IsMenuCurrent "nav" .) ($currentPage.HasMenuCurrent "nav" .) }} active{{end}}" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
<a class="footer-nav-item{{if or ($currentPage.IsMenuCurrent "nav" .) ($currentPage.HasMenuCurrent "nav" .) }} active{{end}} colorswitch" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
{{ end }}
</nav>
</div>