From 9b4e3dba09faaa54c67656daf1950f24d22a4c60 Mon Sep 17 00:00:00 2001 From: Alexis Tacnet Date: Fri, 5 May 2017 18:27:58 +0200 Subject: [PATCH 1/9] Add Opengraph metadatas --- layouts/partials/meta.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index cf7ef09..4421e79 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -9,11 +9,18 @@ {{ if .Site.Params.twitter }} {{ end }} + + + + + {{ if .Site.Params.social_banner }} + {{ else }} {{ end }} - + + \ No newline at end of file From f58f9b969eda21fe017c087ad648cea33805a1ca Mon Sep 17 00:00:00 2001 From: Alexis Tacnet Date: Fri, 5 May 2017 18:28:43 +0200 Subject: [PATCH 2/9] Fix some CSS issues --- layouts/partials/css/main.css | 11 +++-------- layouts/partials/css/min769px.css | 4 ++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/layouts/partials/css/main.css b/layouts/partials/css/main.css index cc177f6..cb1e61e 100644 --- a/layouts/partials/css/main.css +++ b/layouts/partials/css/main.css @@ -1,6 +1,6 @@ @font-face { font-family: 'Nexa Bold'; - src: url('/fonts/Nexa Bold.otf'); + src: url('{{ .Site.BaseURL }}fonts/Nexa Bold.otf'); } html, body, div, span, applet, object, iframe, @@ -495,12 +495,6 @@ section.main .content .markdown pre { word-break: break-all; word-wrap: break-word; } -@media (min-width: 769px) { - section.main .content .markdown pre { - width: 110%; - margin-left: -4%; - } -} section.main .content .markdown pre code { /* enclosed by 4 backticks (````) */ padding: 0; @@ -625,6 +619,7 @@ section.main .content .navigation { -moz-align-items: center; -ms-align-items: center; align-items: center; + padding: 2em; } section.main .content .navigation div { display: -webkit-flex; @@ -648,7 +643,7 @@ section.main .content .navigation .icon { } section.main .content .navigation a { width: 250px; - margin-left: 1em; + margin: 0 1em; text-align: center; font-style: italic; color: #313537; diff --git a/layouts/partials/css/min769px.css b/layouts/partials/css/min769px.css index 77b9031..3016acd 100644 --- a/layouts/partials/css/min769px.css +++ b/layouts/partials/css/min769px.css @@ -6,4 +6,8 @@ section.main .content .markdown img { max-width: 110%; width: 110%; margin-left: -4%; +} +section.main .content .markdown pre { +width: 110%; +margin-left: -4%; } \ No newline at end of file From 61fa3f81e7f1a116430db8be977e0523586f798e Mon Sep 17 00:00:00 2001 From: Alexis Tacnet Date: Fri, 5 May 2017 18:29:03 +0200 Subject: [PATCH 3/9] Add share links at bottom of page --- exampleSite/config.toml | 1 + layouts/blog/single.html | 8 +++++ layouts/partials/css/colors.css | 4 +++ layouts/partials/css/main.css | 23 +++++++++++++++ layouts/partials/css/social-share-kit.css | 7 +++++ layouts/partials/footer_scripts.html | 10 +++++++ layouts/partials/head_includes.html | 6 ++++ static/fonts/social-share-kit.eot | Bin 0 -> 8884 bytes static/fonts/social-share-kit.svg | 34 ++++++++++++++++++++++ static/fonts/social-share-kit.ttf | Bin 0 -> 8680 bytes static/fonts/social-share-kit.woff | Bin 0 -> 6920 bytes static/js/social-share-kit.min.js | 8 +++++ 12 files changed, 101 insertions(+) create mode 100644 layouts/partials/css/social-share-kit.css create mode 100644 static/fonts/social-share-kit.eot create mode 100644 static/fonts/social-share-kit.svg create mode 100644 static/fonts/social-share-kit.ttf create mode 100644 static/fonts/social-share-kit.woff create mode 100644 static/js/social-share-kit.min.js diff --git a/exampleSite/config.toml b/exampleSite/config.toml index dc161cb..e01e699 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -23,6 +23,7 @@ logofile = "img/logo.png" faviconfile = "img/logo.png" highlightjs = true progressively = true +share = true latestpostcount = 5 github = "example" email = "you@example.com" diff --git a/layouts/blog/single.html b/layouts/blog/single.html index d490f2f..90ac437 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -29,6 +29,14 @@ {{ partial "content" . }}
+ {{ if .Site.Params.share }} + + {{ end }} {{ if .Site.Params.posts_navigation }}