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
|
link: https://matrix.to/#/@jake:theorangeone.net
|
||||||
icon: fas fa-project-diagram
|
icon: fas fa-project-diagram
|
||||||
|
|
||||||
footer_accounts:
|
|
||||||
|
notable_accounts:
|
||||||
- github
|
- github
|
||||||
- twitter
|
- twitter
|
||||||
- self-hosted-gitlab
|
- self-hosted-gitlab
|
||||||
- reddit
|
- reddit
|
||||||
|
|
||||||
navbar_accounts:
|
|
||||||
- github
|
|
||||||
- twitter
|
|
||||||
- self-hosted-gitlab
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<h3 class="text-right">
|
<h3 class="text-right">
|
||||||
{{ range .Site.Data.social.footer_accounts }}
|
{{ range .Site.Data.social.notable_accounts }}
|
||||||
{{ $account := index $.Site.Data.social.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>
|
<a href="{{ $account.link }}" title="{{ $account.name }}"><i class="mx-1 {{ $account.icon }}" aria-hidden="true"></i></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range .Site.Data.social.navbar_accounts }}
|
{{ range .Site.Data.social.notable_accounts }}
|
||||||
{{ $account := index $.Site.Data.social.accounts . }}
|
{{ $account := index $.Site.Data.social.accounts . }}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ $account.link }}">
|
<a class="nav-link" href="{{ $account.link }}">
|
||||||
|
|
Loading…
Reference in a new issue