Improve SEO

This commit is contained in:
Jesús
2019-11-20 23:05:11 -05:00
parent 3b84a66708
commit 0c55be17bc
12 changed files with 292 additions and 219 deletions

View File

@@ -2,17 +2,14 @@
{% 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 %}
@@ -26,6 +23,24 @@
{% endif %}
{% 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 %}
{% block content %}
@@ -79,7 +94,7 @@
</a>
</div>
<!-- post footer nav -->
<div class="columns">
<footer class="columns">
<div class="column has-text-left">
<a class="button is-small is-button-grey" href="{{ SITEURL }}/">{{ _('Regresar al Inicio') }}</a>
</div>
@@ -96,7 +111,7 @@
</small>
{% endif %}
</div>
</div>
</footer>
<!-- end of post footer nav -->
</div>
<!-- end of post footer -->