1
Fork 0

Unify social links on navbar and footer

This commit is contained in:
Jake Howard 2022-06-13 23:33:32 +01:00
parent 89c60b04aa
commit 89b6dc09f5
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 4 additions and 8 deletions

View file

@ -120,13 +120,9 @@ accounts:
link: https://matrix.to/#/@jake:theorangeone.net
icon: fas fa-project-diagram
footer_accounts:
notable_accounts:
- github
- twitter
- self-hosted-gitlab
- reddit
navbar_accounts:
- github
- twitter
- self-hosted-gitlab

View file

@ -13,7 +13,7 @@
</div>
<div class="col-sm-4">
<h3 class="text-right">
{{ range .Site.Data.social.footer_accounts }}
{{ range .Site.Data.social.notable_accounts }}
{{ $account := index $.Site.Data.social.accounts . }}
<a href="{{ $account.link }}" title="{{ $account.name }}"><i class="mx-1 {{ $account.icon }}" aria-hidden="true"></i></a>
{{ end }}

View file

@ -31,7 +31,7 @@
</a>
</li>
{{ end }}
{{ range .Site.Data.social.navbar_accounts }}
{{ range .Site.Data.social.notable_accounts }}
{{ $account := index $.Site.Data.social.accounts . }}
<li class="nav-item">
<a class="nav-link" href="{{ $account.link }}">