changed footer and header layout
This commit is contained in:
parent
d5bc010629
commit
6211fef2d4
@ -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 }}">
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<hr>
|
<hr>
|
||||||
<nav>
|
<nav>
|
||||||
<p>© {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a>
|
<p>© {{ 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>
|
||||||
|
@ -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>
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user