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> <title>{{ .Site.Title }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" 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 -}} {{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}"> <link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}">

View File

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

View File

@ -1,8 +1,13 @@
<header> <header>
<nav> <nav>
<a href="/"><b>Home</b></a> <span>
<a href="/"><b>{{ $.Site.Title }}</b></a>
</span>
<span>
{{ with .Site.Menus.main }} {{ 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> </nav>
{{ end }} {{ end }}
</header> </header>

View File

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