Merge pull request #8 from slavakisel/expand-social-networks

Expand social networks partial
This commit is contained in:
Nurlan Su 2018-08-04 11:56:38 +07:00 committed by GitHub
commit c512740ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 5 deletions

View File

@ -25,6 +25,8 @@ theme = "hugo-sustain"
Twitter = "username"
LinkedIn = "username"
Stackoverflow = "username"
Medium = "username"
Telegram = "username"
## Main Menu
[[menu.main]]

View File

@ -21,7 +21,7 @@
{{- if .Params.highlight -}}
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/styles/tomorrow.min.css">
{{ end }}
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,400,200bold,400old" />
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ $.Site.BaseURL}}{{ . }}">

View File

@ -1,7 +1,7 @@
<div class="social">
<ul class="social-links">
{{ if .Site.Params.Social.Github }}
<li><a href="http://github.com/{{ .Site.Params.Social.Github }}"><i class="fa fa-github"></i></a></li>
<li><a href="https://github.com/{{ .Site.Params.Social.Github }}"><i class="fa fa-github"></i></a></li>
{{ end }}
{{ if .Site.Params.Social.Email }}
@ -9,15 +9,23 @@
{{ end }}
{{ if .Site.Params.Social.Twitter }}
<li><a href="http://twitter.com/{{ .Site.Params.Social.Twitter }}"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://twitter.com/{{ .Site.Params.Social.Twitter }}"><i class="fa fa-twitter"></i></a></li>
{{ end }}
{{ if .Site.Params.Social.LinkedIn }}
<li><a href="http://linkedin.com/in/{{ .Site.Params.Social.LinkedIn }}"><i class="fa fa-linkedin"></i></a></li>
<li><a href="https://linkedin.com/in/{{ .Site.Params.Social.LinkedIn }}"><i class="fa fa-linkedin"></i></a></li>
{{ end }}
{{ if .Site.Params.Social.Stackoverflow }}
<li><a href="http://stackoverflow.com/{{ .Site.Params.Social.Stackoverflow }}"><i class="fa fa-stack-overflow"></i></a></li>
<li><a href="https://stackoverflow.com/{{ .Site.Params.Social.Stackoverflow }}"><i class="fa fa-stack-overflow"></i></a></li>
{{ end }}
{{ if .Site.Params.Social.Medium }}
<li><a href="https://medium.com/@{{ .Site.Params.Social.Medium }}"><i class="fa fa-medium"></i></a></li>
{{ end }}
{{ if .Site.Params.Social.Telegram }}
<li><a href="https://telegram.me/{{ .Site.Params.Social.Telegram }}"><i class="fa fa-telegram"></i></a></li>
{{ end }}
</ul>
</div>