Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Lagido <ricardolagido@gmail.com>2018-10-24 01:46:17 +0300
committerRicardo Lagido <ricardolagido@gmail.com>2018-10-24 01:46:17 +0300
commit3e2f4b9af4cdf0f50800b25d3371607709d4a10a (patch)
tree9b8e9ff41970bb1cce8572bb88d07997d660abbc
parent039ed216c3f7714391cf76fd810e91b04a017307 (diff)
Add Medium social button
-rw-r--r--config.toml.example1
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/social.html5
-rw-r--r--static/icons/medium.svg1
4 files changed, 8 insertions, 0 deletions
diff --git a/config.toml.example b/config.toml.example
index 5735d61..5e9e402 100644
--- a/config.toml.example
+++ b/config.toml.example
@@ -22,6 +22,7 @@ theme = "indigo"
GlitchUser = "GlitchUserName"
KeybaseUser = "KeybaseUserName"
LinkedInUser = "LinkedInUserName"
+ MediumUser = "MediumUserName"
MicroBlogUser = "MicroBlogUserName"
RedditUser = "RedditUserName"
StackOverflowUser = "StackOverflowUserName"
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index b9fc857..af98cdb 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -23,6 +23,7 @@ paginate = 3
GlitchUser = "GlitchUserName"
KeybaseUser = "KeybaseUserName"
LinkedInUser = "LinkedInUserName"
+ MediumUser = "MediumUserName"
MicroBlogUser = "MicroBlogUserName"
RedditUser = "RedditUserName"
StackOverflowUser = "StackOverflowUserName"
diff --git a/layouts/partials/social.html b/layouts/partials/social.html
index 0993e56..cf9a08a 100644
--- a/layouts/partials/social.html
+++ b/layouts/partials/social.html
@@ -40,6 +40,11 @@
<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 "mediumuser" }}
+ <div class="icon-24x24">
+ <a class="glyph" alt="Medium profile" href="https://medium.com/{{ .Site.Params.MediumUser }}"><img src="{{ .Site.BaseURL }}icons/medium.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/medium.svg b/static/icons/medium.svg
new file mode 100644
index 0000000..2ad9fb4
--- /dev/null
+++ b/static/icons/medium.svg
@@ -0,0 +1 @@
+<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path style="fill:#3f3f3f" d="M2.846 6.887c.03-.295-.083-.586-.303-.784l-2.24-2.7v-.403h6.958l5.378 11.795 4.728-11.795h6.633v.403l-1.916 1.837c-.165.126-.247.333-.213.538v13.498c-.034.204.048.411.213.537l1.871 1.837v.403h-9.412v-.403l1.939-1.882c.19-.19.19-.246.19-.537v-10.91l-5.389 13.688h-.728l-6.275-13.688v9.174c-.052.385.076.774.347 1.052l2.521 3.058v.404h-7.148v-.404l2.521-3.058c.27-.279.39-.67.325-1.052v-10.608z"/></svg>