From 9b4e3dba09faaa54c67656daf1950f24d22a4c60 Mon Sep 17 00:00:00 2001 From: Alexis Tacnet Date: Fri, 5 May 2017 18:27:58 +0200 Subject: [PATCH 01/14] 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 02/14] 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 03/14] 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 }}
+ {{ if .Site.Params.facebook }} + + facebook + + {{ end }} + {{ if .Site.Params.github }} github diff --git a/static/img/facebook.svg b/static/img/facebook.svg new file mode 100644 index 0000000..0fd3e36 --- /dev/null +++ b/static/img/facebook.svg @@ -0,0 +1,51 @@ + + + +image/svg+xml \ No newline at end of file From e877d500a9b80694effe30c3214a51c555010960 Mon Sep 17 00:00:00 2001 From: Alexis Tacnet Date: Mon, 26 Jun 2017 20:36:33 +0200 Subject: [PATCH 13/14] Update to v1.2.0 --- CHANGELOG.md | 8 ++++++++ README.md | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a2fd71..dac7f25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +> v1.2.0 + +- Add PR #39 : Add a URL for licence +- Add PR #40 : Add a github repo for the blog +- Add PR #38 : Add a HackerNews and lobste.rs link in metadatas +- Add PR #41 : Add FB account in social links +- Add PR #42 : Add the support for the comment framework Isso + > v1.1.0 - Add more speed and asynchronous loading, of fonts especially diff --git a/README.md b/README.md index 5f622ec..83ceeb8 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Simple but complete, here are the main features of this theme : * Syntax highlighting with `hightlightjs`. * Progressive images. * Twitter cards support. -* Disqus support. +* Disqus and Isso support. #### Typography From 8ef779e0fa51efe080b62d02c9684029a38858b1 Mon Sep 17 00:00:00 2001 From: Alexis Tacnet Date: Tue, 27 Jun 2017 16:11:46 +0200 Subject: [PATCH 14/14] Hotfix: Hugo v0.22 and nested sections --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f328f43..99dff7e 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -19,7 +19,7 @@ {{ if ne (len (where .Site.RegularPages "Section" "blog")) 0 }}
  • Blog
  • {{ end }} - {{ range .Site.Sections }} + {{ range $.Site.Home.Sections }} {{ range first 1 (where .Pages "Section" "ne" "")}} {{ if ne .Section "blog"}}
  • {{ .Section }}