File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
{% extends "smallhead.html" %}
2
2
3
3
{% block extrahead %}
4
- {% if item.card_image %}
5
4
< meta name ="twitter:card " content ="summary ">
6
- < meta name ="twitter:image " content ="{{ item.card_image }} ">
7
- {% else %}
8
- < meta name ="twitter:card " content ="summary ">
9
- {% endif %}
5
+ < meta name ="twitter:image " content ="{% if item.card_image %}{{ item.card_image }}{% else %}https://simonwillison.net/card{{ request.path }}{% endif %} ">
10
6
< meta name ="twitter:creator " content ="@simonw ">
11
7
< meta property ="og:url " content ="https://simonwillison.net{{ request.path }} ">
12
8
< meta property ="og:title " content ="{% block card_title %}{% endblock %} ">
13
- {% if item.card_image %} < meta property ="og:image " content ="{{ item.card_image }} " > {% endif %}
9
+ < meta property ="og:image " content ="{% if item.card_image %}{{ item.card_image }}{% else %}https://simonwillison.net/card{{ request.path }}{% endif %} " >
14
10
< meta property ="og:type " content ="article ">
15
11
< meta property ="og:description " content ="{% block card_description %}{% endblock %} ">
16
12
< meta property ="og:updated_time " content ="{{ item.created_unixtimestamp }} ">
You can’t perform that action at this time.
0 commit comments