simplified everything, partially half the size loaded, despite the unified css file :); added colour scheme support; added blogroll and about pages

This commit is contained in:
Vrifox 2021-03-05 19:35:05 +01:00
parent 8c242b4aa5
commit e753ca3e90
Signed by: vrifox
GPG key ID: D40098E5B60B2197
20 changed files with 194 additions and 734 deletions

View file

@ -1,21 +1,7 @@
<footer>
<div class="container">
<section class="website-version">
<span title="{{ now.Format "2. January 2006, 15:04 MST" }}">version {{ now.Format "2006-01-02" }}</span>
</section>
<section class="website-subnav">
<ul>
{{- $currentPage := . }}
{{- range .Site.Menus.footer }}
<li>
<a href="{{ .URL }}">
{{- .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
{{- end }}
</ul>
</section>
</div>
<footer>
<span title="{{ now.Format "2. January 2006, 15:04 MST" }}">version {{ now.Format "2006-01-02" }}</span>
{{- range .Site.Menus.footer }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{- end }}
</footer>

View file

@ -1,11 +1,19 @@
{{- $currentPage := . -}}
<header class="main">
{{- range .Site.Menus.name }}
<h1><a href="{{ .URL }}">{{ .Name }}</a></h1>
{{- $currentPage := . }}
<header>
{{- range .Site.Menus.name }}
{{- if $currentPage.IsMenuCurrent "name" . }}
<h1> <a href="{{ .URL }}" class="active">{{ .Name }}</a> </h1>
{{- else }}
<h1> <a href="{{ .URL }}">{{ .Name }}</a> </h1>
{{- end }}
{{- end }}
<nav>
{{- range .Site.Menus.main }}
{{- if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) -}}
<a href="{{ .URL }}" class="active">{{ .Name }}</a>
{{- else }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{- end}}
{{- end }}
</nav>
</header>