diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-20 17:12:27 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-20 17:13:52 +0100 |
| commit | 96eee66985a22619eb71cacf396ee609058459fc (patch) | |
| tree | c6a21923d5e313691afc406934b37ff7ae0d1df9 /chimere/templates/base.html | |
| parent | a489cfe6556d26af0e280d533f78c9a378cc4929 (diff) | |
| download | Chimère-96eee66985a22619eb71cacf396ee609058459fc.tar.bz2 Chimère-96eee66985a22619eb71cacf396ee609058459fc.zip | |
Inform OpenGraph tags (specialy for Facebook share)
Diffstat (limited to 'chimere/templates/base.html')
| -rw-r--r-- | chimere/templates/base.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chimere/templates/base.html b/chimere/templates/base.html index a346878..5d1a67f 100644 --- a/chimere/templates/base.html +++ b/chimere/templates/base.html @@ -5,6 +5,22 @@ <title>{% block title %}{{PROJECT_NAME}}{% endblock %}</title> {% if MOBILE %}<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">{% endif %} + + {% block og %} + <meta property="og:title" content="{{PROJECT_NAME}}" /> + <meta property="og:type" content="article" /> + {% if current_feature %} + <meta property="og:url" content="{{current_site}}{% if tiny %}/ty/{{tiny}}{% endif %}" /> + {% if current_feature.image %} + <meta property="og:image" content="{{current_site}}{{current_feature.image.picture.url}}" /> + {% endif %} + <meta property="og:description" + content="{{current_feature.text_description}}" /> + {% else %} + <meta property="og:url" content="{{current_site}}" /> + {% endif %} + {% endblock %} + {% block extra_head %} {% endblock %} </head> |
