changed footer and header layout

This commit is contained in:
Michael Clemens 2023-04-16 10:35:49 +02:00
parent d5bc010629
commit 6211fef2d4
4 changed files with 23 additions and 10 deletions

View File

@ -8,7 +8,7 @@
<title>{{ .Site.Title }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="{{ "css/style.css?v1.41" | relURL }}">
<link rel="stylesheet" href="{{ "css/style.css?v1.42" | relURL }}">
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}">

View File

@ -1,10 +1,10 @@
<footer>
<hr>
<nav>
<p>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a>
{{- range .Site.Menus.footer }}
- <a rel="me" href="{{ .URL }}"><b>{{ .Name }}</b></a>
{{- end }}
</p>
</nav>
<nav>
<p>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a>
{{- range .Site.Menus.footer }}
- <a rel="me" href="{{ .URL }}"><b>{{ .Name }}</b></a>
{{- end }}
</p>
</nav>
</footer>

View File

@ -1,8 +1,13 @@
<header>
<nav>
<a href="/"><b>Home</b></a>
<span>
<a href="/"><b>{{ $.Site.Title }}</b></a>
</span>
<span>
{{ with .Site.Menus.main }}
{{ range . }} - <a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a> {{ end }}
{{ range first 1 . }} <a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a> {{ end }}
{{ range after 1 . }} - <a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a> {{ end }}
</span>
</nav>
{{ end }}
</header>

View File

@ -32,6 +32,14 @@ h1,h2,h3{
nav a{
text-decoration: none;
}
navFooter{
text-align: center;
}
nav{
position: relative;
display: flex;
justify-content: space-between;
}
h1 a,h2 a,h3 a{
text-decoration: none;
}