diff options
Diffstat (limited to '')
-rw-r--r-- | Gemfile | 5 | ||||
-rw-r--r-- | Gemfile.lock | 3 | ||||
-rw-r--r-- | _config.yml | 3 | ||||
-rw-r--r-- | _includes/public-inbox.html | 15 | ||||
-rw-r--r-- | _layouts/default.html | 17 | ||||
-rw-r--r-- | _layouts/post.html | 16 | ||||
-rw-r--r-- | gemset.nix | 11 |
7 files changed, 31 insertions, 39 deletions
@@ -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 + <a href="https://lists.sr.ht/~euandreh/public-inbox">public inbox</a> + by sending an email to + <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | escape }}">~euandreh/public-inbox@lists.sr.ht</a> + [<a href="https://man.sr.ht/lists.sr.ht/etiquette.md">mailing list etiquette</a>], + or see <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | escape }}">existing discussions</a>. +{% elsif page.lang == 'pt' %} + Tem um comentário sobre essa postagem? Comece uma discussão na minha + <a href="https://lists.sr.ht/~euandreh/public-inbox">caixa de entrada pública</a> + mandando um email para + <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | escape }}">~euandreh/public-inbox@lists.sr.ht</a> + [<a href="https://man.sr.ht/lists.sr.ht/etiquette.md">etiqueta da lista de email</a> (em inglês)], + ou procure por <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | escape }}">discussões existentes</a>. +{% 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 @@ <!DOCTYPE html> -<html lang="{{ page.lang | default: "en" }}"> +<html lang="{{ page.lang }}"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="/styles.css"> <link rel="alternate" type="application/atom+xml" href="{{ site.t.feed_url[page.lang] }}" title="{{ site.t.feed_title[page.lang] }}" /> - <!-- {%- seo -%} --> + + <title>{{ page.title }}</title> + <meta property="og:site_name" content="{{ site.title }}" /> + <meta name="author" content="{{ site.author.name }}" /> + <meta property="og:locale" content="{{ page.lang }}" /> + <meta property="og:title" content="{{ page.title }}" /> + + <link rel="canonical" href="{{ page.url | absolute_url }}" /> + <meta property="og:url" content="{{ page.url | absolute_url }}" /> + + {% if page.date %} + <meta property="og:type" content="article" /> + <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}" /> + {% endif %} </head> <body> <header> 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 </section> <section> <p> - {% if page.lang == 'en' %} - Have a comment on this post? Start a discussion in my - <a href="https://lists.sr.ht/~euandreh/public-inbox">public inbox</a> - by sending an email to - <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | escape }}">~euandreh/public-inbox@lists.sr.ht</a> - [<a href="https://man.sr.ht/lists.sr.ht/etiquette.md">mailing list etiquette</a>], - or see <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | escape }}">existing discussions</a>. - {% elsif page.lang == 'pt' %} - Tem um comentário sobre essa postagem? Comece uma discussão na minha - <a href="https://lists.sr.ht/~euandreh/public-inbox">caixa de entrada pública</a> - mandando um email para - <a href="mailto:~euandreh/public-inbox@lists.sr.ht?Subject=Re%3A%20{{ page.title | escape }}">~euandreh/public-inbox@lists.sr.ht</a> - [<a href="https://man.sr.ht/lists.sr.ht/etiquette.md">etiqueta da lista de email</a> (em inglês)], - ou procure por <a href="https://lists.sr.ht/~euandreh/public-inbox?search={{ page.title | escape }}">discussões existentes</a>. - {% endif %} + {% include public-inbox.html %} </p> </section> </article> @@ -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"]; |