diff options
author | EuAndreh <eu@euandre.org> | 2020-02-05 22:17:02 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-02-05 22:17:02 -0300 |
commit | 24ec58d573405c740239b9e96437c5968d037dce (patch) | |
tree | 8a5932f577f162cdb81b5fe635c6fba08f7cf6ae /_layouts | |
parent | DIY Atom feed (diff) | |
download | euandre.org-24ec58d573405c740239b9e96437c5968d037dce.tar.gz euandre.org-24ec58d573405c740239b9e96437c5968d037dce.tar.xz |
DIY jekyll-seo-tag
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/default.html | 17 | ||||
-rw-r--r-- | _layouts/post.html | 16 |
2 files changed, 16 insertions, 17 deletions
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> |