diff options
Diffstat (limited to 'chimere/templates/base.html')
| -rw-r--r-- | chimere/templates/base.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chimere/templates/base.html b/chimere/templates/base.html index 286ae88..4e87e44 100644 --- a/chimere/templates/base.html +++ b/chimere/templates/base.html @@ -14,16 +14,33 @@ <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}}" /> + <meta property="og:image:width" + content="{{current_feature.image.picture.width}}" /> + <meta property="og:image:height" + content="{{current_feature.image.picture.height}}" /> {% elif PROJECT_IMAGE %} <meta property="og:image" content="{{PROJECT_IMAGE}}" /> + <meta property="og:image:width" + content="{{PROJECT_IMAGE_WIDTH}}" /> + <meta property="og:image:height" + content="{{PROJECT_IMAGE_HEIGHT}}" /> {% endif %} + {% if current_feature.text_description %} <meta property="og:description" content="{{current_feature.text_description|cut:'"'}}" /> {% else %} + <meta property="og:description" content=" - " /> + {% endif %} + {% else %} <meta property="og:url" content="{{current_site}}" /> {% if PROJECT_IMAGE %} <meta property="og:image" content="{{PROJECT_IMAGE}}" /> + <meta property="og:image:width" + content="{{PROJECT_IMAGE_WIDTH}}" /> + <meta property="og:image:height" + content="{{PROJECT_IMAGE_HEIGHT}}" /> {% endif %} + <meta property="og:description" content=" - " /> {% endif %} {% endblock %} |
