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 --> <!-- Ranges through content/posts/*.md -->
{{ range .Pages }} {{ range .Pages }}
<li> <li>
<a href="{{.Permalink}}">{{.Title}}</a> <a class="colorswitch" href="{{.Permalink}}">{{.Title}}</a>
</li> </li>
{{ end }} {{ end }}
</ul> </ul>

View File

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

View File

@ -3,7 +3,7 @@
<nav id="footer-nav"> <nav id="footer-nav">
{{ $currentPage := . }} {{ $currentPage := . }}
{{ range .Site.Menus.nav }} {{ 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 }} {{ end }}
</nav> </nav>
</div> </div>