changed footer and header layout
This commit is contained in:
parent
d5bc010629
commit
6211fef2d4
@ -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 }}">
|
||||
|
@ -1,10 +1,10 @@
|
||||
<footer>
|
||||
<hr>
|
||||
<nav>
|
||||
<p>© {{ 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>© {{ 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>
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user