Skip to content

Commit

Permalink
Use [social] section for GitHub and Twitter
Browse files Browse the repository at this point in the history
Note: .Site.Social is not currently documented (gohugoio/hugo#1380)
  • Loading branch information
jeremy-jameson committed May 10, 2021
1 parent 27466fc commit f4ee9fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
{{ end }}
</ul>
<ul class="navbar-nav me-end mb-2 mb-lg-0">
{{ with .Site.Params.twitterId }}
{{ with .Site.Social.twitter }}
<li class="nav-item me-lg-1 ms-lg-1">
<a class="nav-link" href="https://twitter.com/{{ . }}"
target="_blank">
<i class="bi bi-twitter"></i> <span class="d-lg-none">Twitter</span>
</a>
</li>
{{ end }}
{{ with .Site.Params.gitHubId }}
{{ with .Site.Social.github }}
<li class="nav-item me-lg-1 ms-lg-1">
<a class="nav-link" href="https://github.com/{{ . }}"
target="_blank">
Expand Down

0 comments on commit f4ee9fc

Please sign in to comment.