Unify social links on navbar and footer
This commit is contained in:
parent
89c60b04aa
commit
89b6dc09f5
3 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}">
|
||||
|
|
Loading…
Reference in a new issue