diff options
author | Ricardo Lagido <ricardolagido@gmail.com> | 2018-10-24 01:44:07 +0300 |
---|---|---|
committer | Ricardo Lagido <ricardolagido@gmail.com> | 2018-10-24 01:44:07 +0300 |
commit | 039ed216c3f7714391cf76fd810e91b04a017307 (patch) | |
tree | 749bdac1e303d3d77cd15d4c701796104ad707f5 | |
parent | 077716564d2898022f12f307b5fffc619fd0f7dd (diff) |
Add LinkedIn social button
-rw-r--r-- | config.toml.example | 3 | ||||
-rw-r--r-- | exampleSite/config.toml | 3 | ||||
-rw-r--r-- | layouts/partials/social.html | 5 | ||||
-rw-r--r-- | static/icons/linkedin.svg | 1 |
4 files changed, 10 insertions, 2 deletions
diff --git a/config.toml.example b/config.toml.example index cc66b3b..5735d61 100644 --- a/config.toml.example +++ b/config.toml.example @@ -21,6 +21,7 @@ theme = "indigo" GitLabUser = "GitLabUserName" GlitchUser = "GlitchUserName" KeybaseUser = "KeybaseUserName" + LinkedInUser = "LinkedInUserName" MicroBlogUser = "MicroBlogUserName" RedditUser = "RedditUserName" StackOverflowUser = "StackOverflowUserName" @@ -36,4 +37,4 @@ theme = "indigo" TwitterUser = "TwitterUserName" MicroBlogUser = "MicroBlogUserName" Country = "CountryName" - City = "CityName"
\ No newline at end of file + City = "CityName" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4b41519..b9fc857 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -22,6 +22,7 @@ paginate = 3 GitLabUser = "GitLabUserName" GlitchUser = "GlitchUserName" KeybaseUser = "KeybaseUserName" + LinkedInUser = "LinkedInUserName" MicroBlogUser = "MicroBlogUserName" RedditUser = "RedditUserName" StackOverflowUser = "StackOverflowUserName" @@ -37,4 +38,4 @@ paginate = 3 TwitterUser = "TwitterUserName" MicroBlogUser = "MicroBlogUserName" Country = "CountryName" - City = "CityName"
\ No newline at end of file + City = "CityName" diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 53d98ff..0993e56 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -35,6 +35,11 @@ <a class="glyph" alt="Keybase profile" href="https://keybase.io/{{ .Site.Params.KeybaseUser }}"><img src="{{ .Site.BaseURL }}icons/keybase.svg" height="24px" width="24px"></a> </div> {{ end }} + {{ if isset .Site.Params "linkedinuser" }} + <div class="icon-24x24"> + <a class="glyph" alt="LinkedIn profile" href="https://www.linkedin.com/in/{{ .Site.Params.LinkedInUser }}"><img src="{{ .Site.BaseURL }}icons/linkedin.svg" height="24px" width="24px"></a> + </div> + {{ end }} {{ if isset .Site.Params "microbloguser" }} <div class="icon-24x24"> <a class="glyph" alt="Micro.Blog profile" href="https://micro.blog/{{ .Site.Params.MicroBlogUser }}"><img src="{{ .Site.BaseURL }}icons/microblog.svg" height="24px" width="24px"></a> diff --git a/static/icons/linkedin.svg b/static/icons/linkedin.svg new file mode 100644 index 0000000..cd55f45 --- /dev/null +++ b/static/icons/linkedin.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#3f3f3f" d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg> |