Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Expand social networks partial

* Switch to secure links to social networks
* Allow users to add Medium and Telegram
* Upgrade font-awesome to 4.7
  • Loading branch information...
Slava Kisel
Slava Kisel committed Apr 9, 2017
1 parent d88e092 commit 2db6b8ed54cfadd7b7bcc3334ea070603b9f16d2
Showing with 15 additions and 5 deletions.
  1. +2 −0 exampleSite/config.toml
  2. +1 −1 layouts/partials/head.html
  3. +12 −4 layouts/partials/social.html
@@ -25,6 +25,8 @@ theme = "hugo-sustain"
Twitter = "username"
LinkedIn = "username"
Stackoverflow = "username"
Medium = "username"
Telegram = "username"

## Main Menu
[[menu.main]]
@@ -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}}{{ . }}">
@@ -1,23 +1,31 @@
<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 }}
<li><a href="mailto:{{ .Site.Params.Social.Email }}"><i class="fa fa-envelope"></i></a></li>
{{ 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>

0 comments on commit 2db6b8e

Please sign in to comment.
You can’t perform that action at this time.