diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-20 17:25:55 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-20 17:25:55 +0100 |
commit | 36cf8726a38a7f155f0098031c60cd6869c02ef5 (patch) | |
tree | 288f67c12965f6c3e3eb45110443d4525935a89c /chimere | |
parent | 96eee66985a22619eb71cacf396ee609058459fc (diff) | |
download | Chimère-36cf8726a38a7f155f0098031c60cd6869c02ef5.tar.bz2 Chimère-36cf8726a38a7f155f0098031c60cd6869c02ef5.zip |
OpenGraph tags: filter double-quotes - add an explicit name for the selected feature
Diffstat (limited to 'chimere')
-rw-r--r-- | chimere/templates/base.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chimere/templates/base.html b/chimere/templates/base.html index 5d1a67f..c967b81 100644 --- a/chimere/templates/base.html +++ b/chimere/templates/base.html @@ -7,7 +7,8 @@ <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:title" + content="{{PROJECT_NAME}}{% if current_feature %} - {{current_feature.name|cut:'"'}}{% endif %}" /> <meta property="og:type" content="article" /> {% if current_feature %} <meta property="og:url" content="{{current_site}}{% if tiny %}/ty/{{tiny}}{% endif %}" /> @@ -15,7 +16,7 @@ <meta property="og:image" content="{{current_site}}{{current_feature.image.picture.url}}" /> {% endif %} <meta property="og:description" - content="{{current_feature.text_description}}" /> + content="{{current_feature.text_description|cut:'"'}}" /> {% else %} <meta property="og:url" content="{{current_site}}" /> {% endif %} |