From 24ec58d573405c740239b9e96437c5968d037dce Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 5 Feb 2020 22:17:02 -0300 Subject: DIY jekyll-seo-tag --- Gemfile | 5 ----- Gemfile.lock | 3 --- _config.yml | 3 --- _includes/public-inbox.html | 15 +++++++++++++++ _layouts/default.html | 17 +++++++++++++++-- _layouts/post.html | 16 +--------------- gemset.nix | 11 ----------- 7 files changed, 31 insertions(+), 39 deletions(-) create mode 100644 _includes/public-inbox.html diff --git a/Gemfile b/Gemfile index 3ed43f3..0948693 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,2 @@ source "https://rubygems.org" - gem "jekyll" - -group :jekyll_plugins do - gem "jekyll-seo-tag" # FIXME -end diff --git a/Gemfile.lock b/Gemfile.lock index 65a43b5..58faf53 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -29,8 +29,6 @@ GEM safe_yaml (~> 1.0) jekyll-sass-converter (1.5.2) sass (~> 3.4) - jekyll-seo-tag (2.6.1) - jekyll (>= 3.3, < 5.0) jekyll-watch (2.2.1) listen (~> 3.0) kramdown (1.17.0) @@ -58,7 +56,6 @@ PLATFORMS DEPENDENCIES jekyll - jekyll-seo-tag BUNDLED WITH 1.17.3 diff --git a/_config.yml b/_config.yml index 382eec0..ee3c940 100644 --- a/_config.yml +++ b/_config.yml @@ -6,9 +6,6 @@ author: email: eu@euandre.org markdown: kramdown -plugins: - - jekyll-seo-tag -# FIXME: remove plugins exclude: - Gemfile diff --git a/_includes/public-inbox.html b/_includes/public-inbox.html new file mode 100644 index 0000000..478eac6 --- /dev/null +++ b/_includes/public-inbox.html @@ -0,0 +1,15 @@ +{% if page.lang == 'en' %} + Have a comment on this post? Start a discussion in my + public inbox + by sending an email to + ~euandreh/public-inbox@lists.sr.ht + [mailing list etiquette], + or see existing discussions. +{% elsif page.lang == 'pt' %} + Tem um comentário sobre essa postagem? Comece uma discussão na minha + caixa de entrada pública + mandando um email para + ~euandreh/public-inbox@lists.sr.ht + [etiqueta da lista de email (em inglês)], + ou procure por discussões existentes. +{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index bd253c8..7240997 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,12 +1,25 @@ - + - + + {{ page.title }} + + + + + + + + + {% if page.date %} + + + {% endif %}
diff --git a/_layouts/post.html b/_layouts/post.html index b1b1412..629e02f 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -10,21 +10,7 @@ layout: default

- {% if page.lang == 'en' %} - Have a comment on this post? Start a discussion in my - public inbox - by sending an email to - ~euandreh/public-inbox@lists.sr.ht - [mailing list etiquette], - or see existing discussions. - {% elsif page.lang == 'pt' %} - Tem um comentário sobre essa postagem? Comece uma discussão na minha - caixa de entrada pública - mandando um email para - ~euandreh/public-inbox@lists.sr.ht - [etiqueta da lista de email (em inglês)], - ou procure por discussões existentes. - {% endif %} + {% include public-inbox.html %}

diff --git a/gemset.nix b/gemset.nix index 4c38b33..83eb445 100644 --- a/gemset.nix +++ b/gemset.nix @@ -114,17 +114,6 @@ }; version = "1.5.2"; }; - jekyll-seo-tag = { - dependencies = ["jekyll"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "1p9fl2r4ni10lbx143zp41caldjs4hg27az5wg42sbwzb7s6z66m"; - type = "gem"; - }; - version = "2.6.1"; - }; jekyll-watch = { dependencies = ["listen"]; groups = ["default"]; -- cgit v1.2.3