1
Fork 0

Show correct links in nav and footer

This commit is contained in:
Jake Howard 2017-11-03 22:51:10 +00:00
parent 0c020e454e
commit b3fd948b40
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 18 additions and 13 deletions

View file

@ -73,3 +73,8 @@ footer_accounts:
- flickr - flickr
- bitbucket - bitbucket
- keybase - keybase
navbar_accounts:
- github
- twitter
- keybase

View file

@ -24,17 +24,16 @@
{{ partial "nav_pages.html" . }} {{ partial "nav_pages.html" . }}
</ul> </ul>
<div class="d-none d-sm-block"> <div class="d-none d-lg-block">
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item"> {{ range .Site.Data.social.navbar_accounts }}
<a class="nav-link" href="#"><i class="fa fa-github"></i></a> {{ $account := index $.Site.Data.social.accounts . }}
</li> <li class="nav-item">
<li class="nav-item"> <a class="nav-link" href="{{ $account.link }}">
<a class="nav-link" href="#"><i class="fa fa-twitter"></i></a> <i class="fa {{ $account.icon }}" title="{{ $account.name }}"></i>
</li> </a>
<li class="nav-item"> </li>
<a class="nav-link" href="#"><i class="fa fa-rss"></i></a> {{ end }}
</li>
</ul> </ul>
</div> </div>
</div> </div>
@ -53,9 +52,10 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<h3 class="text-right"> <h3 class="text-right">
<a href=""><i class="mx-1 fa fa-github" aria-hidden="true"></i></a> {{ range .Site.Data.social.footer_accounts }}
<a href=""><i class="mx-1 fa fa-twitter" aria-hidden="true"></i></a> {{ $account := index $.Site.Data.social.accounts . }}
<a href=""><i class="mx-1 fa fa-rss" aria-hidden="true"></i></a> <a href="{{ $account.link }}"><i class="mx-1 fa {{ $account.icon }}" aria-hidden="true" title="{{ $account.name }}"></i></a>
{{ end }}
</h3> </h3>
</div> </div>
</div> </div>