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

@ -15,32 +15,11 @@
{{ partial "metadata.html" . }}
</head>
<body>
{{ partial "navbar.html" . }}
{{ 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>
{{ 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>

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>