Add simple footer

This commit is contained in:
ItsDrike 2021-08-25 13:07:58 +02:00
parent 230834fd9f
commit 5806b8fc7b
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
3 changed files with 34 additions and 0 deletions

View file

@ -34,3 +34,16 @@ accounts:
name: Codin' Nerds
username: Codin' Nerds
links: https://discord.gg/B8rf3xxgbJ
icon: fab fa-discord
email:
name: email
username: itsdrike@protonmail.com
links: "mailto:itsdrike@protonmail.com"
icon: fas fa-at
footer_accounts:
- github
- stack-overflow
- email

View file

@ -10,6 +10,7 @@
</head>
<body>
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}
{{ partial "script_async.html" "js/bootstrap.min.js" }}
{{ block "scripts_extra" . }}{{ end }}

View file

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