forked from github/pelican
Add hreflang attribute to default themes
This commit is contained in:
parent
b30270190a
commit
d1d1cccdad
39 changed files with 104 additions and 37 deletions
|
|
@ -1,6 +1,14 @@
|
|||
{% extends "base.html" %}
|
||||
{% block html_lang %}{{ article.lang }}{% endblock %}
|
||||
{% block title %}{{ article.title|striptags }}{% endblock %}
|
||||
|
||||
{% block extra_head %}
|
||||
{% import 'translations.html' as translations with context %}
|
||||
{% if translations.entry_hreflang(article) %}
|
||||
{{ translations.entry_hreflang(article) }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue