Youtube multi supportURL

Youtube social link now support different type of URL.
Custom, channel and the legacy user
This commit is contained in:
Giuseppe Pignataro 2019-03-12 02:20:11 +01:00
parent 92a5199686
commit c9bcad87a2
2 changed files with 10 additions and 1 deletions

View file

@ -63,6 +63,9 @@ googleAnalytics = ""
Telegram = "xxxx"
Medium = "xxxx"
Gitlab = "xxxx"
Youtubelegacy = "xxxx"
Youtubecustom = "xxxx"
Youtubechannel = "xxxx"
Youtube = "xxxx"
Tumblr ="xxxx"
Quora = "xxxx"

View file

@ -25,9 +25,15 @@
{{ with .Site.Params.Social.Gitlab}}
<a href="https://gitlab.com/{{.}}" rel="me noopener noreffer" target="_blank"><i class="iconfont icon-gitlab"></i></a>
{{ end }}
{{ with .Site.Params.Social.Youtube}}
{{ with .Site.Params.Social.Youtubelegacy}}
<a href="https://www.youtube.com/user/{{.}}" rel="me noopener noreffer" target="_blank"><i class="iconfont icon-youtube"></i></a>
{{ end }}
{{ with .Site.Params.Social.Youtubecustom}}
<a href="https://www.youtube.com/c/{{.}}" rel="me noopener noreffer" target="_blank"><i class="iconfont icon-youtube"></i></a>
{{ end }}
{{ with .Site.Params.Social.Youtubechannel}}
<a href="https://www.youtube.com/channel/{{.}}" rel="me noopener noreffer" target="_blank"><i class="iconfont icon-youtube"></i></a>
{{ end }}
{{ with .Site.Params.Social.Tumblr}}
<a href="https://{{.}}.tumblr.com" rel="me noopener noreffer" target="_blank"><i class="iconfont icon-tumblr"></i></a>
{{ end }}