diff options
Diffstat (limited to 'layouts/host/single.html')
-rw-r--r-- | layouts/host/single.html | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/layouts/host/single.html b/layouts/host/single.html index 0b000c6..ee8992c 100644 --- a/layouts/host/single.html +++ b/layouts/host/single.html @@ -34,45 +34,29 @@ </a> {{ end }} {{ if .Params.Twitter }} - <a href="https://twitter.com/{{ .Params.Twitter }}"> - <i class="fab fa-twitter-square fa-2x"></i> - </a> + {{ partial "social-link.html" (dict "context" .Params.Twitter "iclass" "fab fa-twitter-square fa-2x" "prefix" "https://twitter.com/" "text" "") }} {{ end }} {{ if .Params.GitHub }} - <a href="https://github.com/{{ .Params.GitHub}}"> - <i class="fab fa-github-square fa-2x"></i> - </a> + {{ partial "social-link.html" (dict "context" .Params.GitHub "iclass" "fab fa-github-square fa-2x" "prefix" "https://github.com/" "text" "") }} {{ end }} {{ if .Params.LinkedIn }} - <a href="https://www.linkedin.com/in/{{ .Params.LinkedIn}}/"> - <i class="fab fa-linkedin fa-2x"></i> - </a> + {{ partial "social-link.html" (dict "context" .Params.LinkedIn "iclass" "fab fa-linkedin fa-2x" "prefix" "https://www.linkedin.com/in/" "text" "") }} {{ end }} {{ if .Params.Facebook }} - <a href="https://www.facebook.com/{{ .Params.Facebook}}"> - <i class="fab fa-facebook-square fa-2x"></i> - </a> + {{ partial "social-link.html" (dict "context" .Params.Facebook "iclass" "fab fa-facebook-square fa-2x" "prefix" "https://www.facebook.com/" "text" "") }} {{ end }} {{ if .Params.Pinterest }} - <a href="https://www.pinterest.com/{{ .Params.Pinterest}}"> - <i class="fab fa-pinterest-square fa-2x"></i> - </a> + {{ partial "social-link.html" (dict "context" .Params.Pinterest "iclass" "fab fa-pinterest-square fa-2x" "prefix" "https://www.pinterest.com/" "text" "") }} {{ end }} {{ if .Params.Instagram }} - <a href="https://www.instagram.com/{{ .Params.Instagram}}"> - <i class="fab fa-instagram fa-2x"></i> - </a> + {{ partial "social-link.html" (dict "context" .Params.Instagram "iclass" "fab fa-instagram-square fa-2x" "prefix" "https://www.instagram.com/" "text" "") }} {{ end }} {{ if .Params.YouTube }} - <a href="https://www.youtube.com/{{ .Params.YouTube}}"> - <i class="fab fa-youtube-square fa-2x"></i> - </a> + {{ partial "social-link.html" (dict "context" .Params.YouTube "iclass" "fab fa-youtube-square fa-2x" "prefix" "https://www.youtube.com/" "text" "") }} {{ end }} {{ if .Params.Twitch }} - <a href="https://twitch.tv/{{ .Params.Twitch}}"> - <i class="fab fa-twitch fa-2x"></i> - </a> - {{ end }} + {{ partial "social-link.html" (dict "context" .Params.Twitch "iclass" "fab fa-twitch fa-2x" "prefix" "https://twitch.tv/" "text" "") }} + {{ end }} </div> </div> </div> @@ -88,7 +72,7 @@ {{ range $page.Params.hosts }} {{ if eq . ($.Scratch.Get "host-name") }} {{ if and (isset $.Site.Params "episode_number_style") ($page.Params.episode)}} - {{ if eq $.Site.Params.episode_number_style "parens" }} + {{ if eq $.Site.Params.episode_number_style "parens" }} <a href="{{ $page.Permalink }}" class= "guest_page_episode_link list-group-item list-group-item-action">{{ $page.Title }} ({{ with $.Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ $page.Params.episode }})</a> {{ else if eq $.Site.Params.episode_number_style "brackets" }} <a href="{{ $page.Permalink }}" class= "guest_page_episode_link list-group-item list-group-item-action">{{ $page.Title }} [{{ with $.Site.Params.episode_number_prefix }}{{ . }}{{ end }}{{ $page.Params.episode }}]</a> |