Refactoring SEO

This commit is contained in:
Jesús
2019-11-23 18:48:32 -05:00
parent 67beaca9bc
commit edae8a2e59
8 changed files with 207 additions and 159 deletions

View File

@@ -2,25 +2,36 @@
{% block html_lang %}{{ page.lang }}{% endblock%}
{% block extra_head %}
{% block head %}
{% block title %}
<title>{{ page.title }} - {{SITENAME}}</title>
{% endblock %}
{% import 'translations.html' as translations with context %}
{% if translations.entry_hreflang(page) %}
{{ translations.entry_hreflang(page) }}
{% endif %}
<meta name="author" content="{{ author }}">
{% endblock %}
{% block title %}{{ page.title }}{% endblock %}
{% block head %}
{{ super() }}
{% if page.styles %}
{% for style in page.styles %}
{{ style }}
{% endfor %}
{% endif %}
{% block seo %}
<!-- Meta Page -->
<meta name="description" content="{{ SITENAME }} &ndash; {{ SITESUBTITLE }}"/>
<meta name="author" content="{{ page.author }}"/>
<!-- OpenGraph -->
<meta property="og:type" content="article"/>
<meta property="og:title" content="{{ page.title }}"/>
<meta property="og:description" content="{{ SITESUBTITLE }}"/>
<meta property="og:site_name" content="{{ SITENAME }}"/>
<meta property="og:url" content="{{ SITEURL }}/{{ page.url }}"/>
<!-- Twitter -->
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="{{ page.title }}"/>
<meta name="twitter:description" content="{{ SITESUBTITLE }}"/>
<meta name="twitter:url" content="{{ SITEURL }}/{{ page.url }}"/>
{% endblock %}
{% endblock head %}
{%- block content -%}