Improve SEO
This commit is contained in:
@@ -1,15 +1,35 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block extra_head %}
|
||||
{% block head %}
|
||||
{% block title %}
|
||||
<title>{{ SITENAME }}{% if articles_page.number != 1 %} | {{ _('Página') }} {{ articles_page.number }}{% endif %}</title>
|
||||
{% endblock %}
|
||||
{{ super() }}
|
||||
{% if lang_siteurls and articles_page.number == 1 %}
|
||||
{% for lang, url in lang_siteurls.items() %}
|
||||
<link rel="alternate" hreflang="{{ lang }}" href="{{ url }}/">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% block seo %}
|
||||
<!-- Meta Index -->
|
||||
<meta name="author" content="{{ AUTHOR }}" />
|
||||
<meta name="description" content="{{ SITENAME }} – {{ SITESUBTITLE }}">
|
||||
|
||||
<!-- OpenGraph -->
|
||||
<meta property="og:title" content="{{ SITENAME }}" />
|
||||
<meta property="og:description" content="{{ SITESUBTITLE }}" />
|
||||
<meta property="og:url" content="{{ SITEURL }}" />
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/cl-favicon-96x96.png"/>
|
||||
<meta property="og:type" content="blog"/>
|
||||
|
||||
<!-- Twitter -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="{{ SITENAME }}">
|
||||
<meta name="twitter:description" content="{{ SITESUBTITLE }}">
|
||||
<meta name="twitter:image" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/cl-favicon-96x96.png">
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}{{ SITENAME }}{% if articles_page.number != 1 %} | Page {{ articles_page.number }}{% endif %}{% endblock %}
|
||||
{% block sitename %}
|
||||
<h1 class="title is-1 is-spaced">{{ SITENAME }}</h1>
|
||||
<h4 class="subtitle is-4">{{ SITESUBTITLE }}</h4>
|
||||
|
||||
Reference in New Issue
Block a user