1
Fork 0

Move footer to partial

This commit is contained in:
Jake Howard 2017-11-11 22:00:53 +00:00
parent 54429504aa
commit 636a187bf0
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 39 additions and 40 deletions

View file

@ -1,48 +1,27 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width" />
<link rel="alternate" type="application/rss+xml" href="{{ .Site.RSSLink }}" />
<meta name="superfish" content="nofish" />
<meta name="application-name" content="{{ .Site.Title }}" />
<link rel="icon" type="image/png" href="{{ .Site.BaseURL }}/img/logo-transparent.png" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Language" content="{{ .Site.Language.Lang }}" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width" />
<link rel="alternate" type="application/rss+xml" href="{{ .Site.RSSLink }}" />
<meta name="superfish" content="nofish" />
<meta name="application-name" content="{{ .Site.Title }}" />
<link rel="icon" type="image/png" href="{{ .Site.BaseURL }}/img/logo-transparent.png" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
<title>{{ .Title }} :: {{ .Site.Title }}</title>
<title>{{ .Title }} :: {{ .Site.Title }}</title>
{{ partial "metadata.html" . }}
</head>
<body>
{{ partial "metadata.html" . }}
</head>
<body>
{{ partial "navbar.html" . }}
{{ partial "navbar.html" . }}
{{ block "main" . }}{{ end }}
{{ block "main" . }}{{ end }}
<footer class="bg-light p-5">
<div class="container">
<div class="row">
<div class="col-sm-6">
<p>
&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>.
</p>
<p></p>
</div>
<div class="col-sm-6">
<h3 class="text-right">
{{ range .Site.Data.social.footer_accounts }}
{{ $account := index $.Site.Data.social.accounts . }}
<a href="{{ $account.link }}"><i class="mx-1 fa {{ $account.icon }}" aria-hidden="true" title="{{ $account.name }}"></i></a>
{{ end }}
</h3>
</div>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="{{ .Site.BaseURL }}/js/app.js"></script>
</body>
{{ partial "footer.html" . }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="{{ .Site.BaseURL }}/js/app.js"></script>
</body>
</html>

View file

@ -0,0 +1,20 @@
<footer class="bg-light p-5">
<div class="container">
<div class="row">
<div class="col-sm-6">
<p>
&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>.
</p>
<p></p>
</div>
<div class="col-sm-6">
<h3 class="text-right">
{{ range .Site.Data.social.footer_accounts }}
{{ $account := index $.Site.Data.social.accounts . }}
<a href="{{ $account.link }}"><i class="mx-1 fa {{ $account.icon }}" aria-hidden="true" title="{{ $account.name }}"></i></a>
{{ end }}
</h3>
</div>
</div>
</div>
</footer>