From 3682d6b15853c4f9d3d552aea94ab1ca07422189 Mon Sep 17 00:00:00 2001 From: vimux Date: Thu, 24 May 2018 23:52:05 +0300 Subject: [PATCH] Add initial social section * Facebook * Twitter * Telegram * Google Plus * Instagram * Pinterest * VK * LinkedIn * GitHub * GitLab * Stack Overflow * Mastodon --- README.md | 14 ++++++ layouts/partials/footer.html | 1 + layouts/partials/footer_social.html | 64 ++++++++++++++++++++++++++ layouts/partials/svg/facebook.svg | 1 + layouts/partials/svg/github.svg | 1 + layouts/partials/svg/gitlab.svg | 1 + layouts/partials/svg/googleplus.svg | 1 + layouts/partials/svg/instagram.svg | 1 + layouts/partials/svg/linkedin.svg | 1 + layouts/partials/svg/mastodon.svg | 1 + layouts/partials/svg/pinterest.svg | 1 + layouts/partials/svg/stackoverflow.svg | 1 + layouts/partials/svg/telegram.svg | 1 + layouts/partials/svg/twitter.svg | 1 + layouts/partials/svg/vk.svg | 1 + static/css/main.css | 21 +++++++++ 16 files changed, 112 insertions(+) create mode 100644 layouts/partials/footer_social.html create mode 100644 layouts/partials/svg/facebook.svg create mode 100644 layouts/partials/svg/github.svg create mode 100644 layouts/partials/svg/gitlab.svg create mode 100644 layouts/partials/svg/googleplus.svg create mode 100644 layouts/partials/svg/instagram.svg create mode 100644 layouts/partials/svg/linkedin.svg create mode 100644 layouts/partials/svg/mastodon.svg create mode 100644 layouts/partials/svg/pinterest.svg create mode 100644 layouts/partials/svg/stackoverflow.svg create mode 100644 layouts/partials/svg/telegram.svg create mode 100644 layouts/partials/svg/twitter.svg create mode 100644 layouts/partials/svg/vk.svg diff --git a/README.md b/README.md index c3b600a..d3310e6 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,20 @@ cardsPerRow = 2 # Possible values: 1, 2, 3 #mainSections = ["post"] # Set main page sections #dateFormat = "2006-01-02" # change the format of dates +[Params.Social] +#facebook = "username" +#twitter = "username" +#telegram = "username" +#googleplus = "profileid" +#instagram = "username" +#pinterest = "username" +#vk = "username" +#linkedin = "username" +#github = "username" +#gitlab = "username" +#stackoverflow = "numberid" +#mastodon = "username" + [outputFormats] [outputFormats.MANIFEST] mediaType = "application/json" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9872008..418a654 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,5 @@ diff --git a/layouts/partials/footer_social.html b/layouts/partials/footer_social.html new file mode 100644 index 0000000..4333a65 --- /dev/null +++ b/layouts/partials/footer_social.html @@ -0,0 +1,64 @@ +{{ if .Site.Params.social }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/svg/facebook.svg b/layouts/partials/svg/facebook.svg new file mode 100644 index 0000000..f7263ee --- /dev/null +++ b/layouts/partials/svg/facebook.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/github.svg b/layouts/partials/svg/github.svg new file mode 100644 index 0000000..1de4199 --- /dev/null +++ b/layouts/partials/svg/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/gitlab.svg b/layouts/partials/svg/gitlab.svg new file mode 100644 index 0000000..8065d85 --- /dev/null +++ b/layouts/partials/svg/gitlab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/googleplus.svg b/layouts/partials/svg/googleplus.svg new file mode 100644 index 0000000..ae4ffa4 --- /dev/null +++ b/layouts/partials/svg/googleplus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/instagram.svg b/layouts/partials/svg/instagram.svg new file mode 100644 index 0000000..e9f5d85 --- /dev/null +++ b/layouts/partials/svg/instagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/linkedin.svg b/layouts/partials/svg/linkedin.svg new file mode 100644 index 0000000..11a7915 --- /dev/null +++ b/layouts/partials/svg/linkedin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/mastodon.svg b/layouts/partials/svg/mastodon.svg new file mode 100644 index 0000000..a7902e7 --- /dev/null +++ b/layouts/partials/svg/mastodon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/pinterest.svg b/layouts/partials/svg/pinterest.svg new file mode 100644 index 0000000..0742f17 --- /dev/null +++ b/layouts/partials/svg/pinterest.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/stackoverflow.svg b/layouts/partials/svg/stackoverflow.svg new file mode 100644 index 0000000..36cc737 --- /dev/null +++ b/layouts/partials/svg/stackoverflow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/telegram.svg b/layouts/partials/svg/telegram.svg new file mode 100644 index 0000000..c11f2d1 --- /dev/null +++ b/layouts/partials/svg/telegram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/twitter.svg b/layouts/partials/svg/twitter.svg new file mode 100644 index 0000000..104f42b --- /dev/null +++ b/layouts/partials/svg/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/svg/vk.svg b/layouts/partials/svg/vk.svg new file mode 100644 index 0000000..e227e3f --- /dev/null +++ b/layouts/partials/svg/vk.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css index 08eb0d9..f6d91da 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -750,6 +750,27 @@ mark { border-top: 2px solid #333; } +.footer__social { + display: flex; + flex-wrap: wrap; + justify-content: center; + margin-bottom: .5rem; +} + +.social__link { + margin: .25rem; + font-size: 0; + background-color: #2a2a2a; + border: 1px solid #333; + fill: #999; + stroke: #999; +} + +.social__link:hover { + fill: #c3c3c3; + stroke: #c3c3c3; +} + .footer__copyright { text-align: center; }