Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  Add cmd option for .Site.Params.social

This merge adds a quickfix commit.
  • Loading branch information
dataCobra committed Sep 1, 2020
2 parents 94a28ba + 43c31a2 commit 6418eda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ name = "Github"
icon = "fab fa-github"
url = "https://github.com/dataCobra/hugo-vitae"

#[[params.social]]
#name = "Email"
#icon = "fas fa-envelope"
#cmd = "mailto:example@example.com"

[[params.social]]
name = "RSS"
icon = "fas fa-rss"
Expand Down
4 changes: 4 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ <h2 id="title"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h2>
<nav>
<ul>
{{- range $index, $key := .Site.Params.Social -}}
{{- if $key.url }}
<li><a href="{{ relURL $key.url }}"><i title="{{ $key.name }}" class="icons {{ $key.icon }}"></i></a></li>
{{- else -}}
<li><a href="{{ $key.cmd }}"><i title="{{ $key.name }}" class="icons {{ $key.icon }}"></i></a></li>
{{- end -}}
{{- end -}}
</ul>
</nav>
Expand Down

0 comments on commit 6418eda

Please sign in to comment.