1
0
Fork 0
forked from github/pelican

Merge pull request #2374 from jorgesumle/hreflang

Add hreflang attribute to default themes
This commit is contained in:
Justin Mayer 2018-11-12 08:15:08 +01:00 committed by GitHub
commit a00bd6ec8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 104 additions and 37 deletions

View file

@ -5,6 +5,12 @@
{% block head %}
{{ super() }}
{% import 'translations.html' as translations with context %}
{% if translations.entry_hreflang(article) %}
{{ translations.entry_hreflang(article) }}
{% endif %}
{% if article.description %}
<meta name="description" content="{{article.description}}" />
{% endif %}