Move footer to partial
This commit is contained in:
parent
54429504aa
commit
636a187bf0
2 changed files with 39 additions and 40 deletions
|
@ -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>
|
||||
© {{ 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>
|
||||
|
|
20
layouts/partials/footer.html
Normal file
20
layouts/partials/footer.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<footer class="bg-light p-5">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<p>
|
||||
© {{ 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>
|
Loading…
Reference in a new issue