added default logo as fallback
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
{% endif %}
|
||||
{% for graph in graphs1 %}
|
||||
{% block og_image %}
|
||||
{% if graphs1 %}
|
||||
{% for graph in graphs1 %}
|
||||
<meta property="og:image" content="http://rowsandall.com/{{ graph.filename |spacetohtml }}" />
|
||||
<meta property="og:image:width" content="{{ graph.width }}" />
|
||||
@@ -19,7 +20,11 @@
|
||||
<meta property="og:image:secure_url" content="https://rowsandall.com/{{ graph.filename |spacetohtml }}" />
|
||||
<meta property="og:image:width" content="{{ graph.width }}" />
|
||||
<meta property="og:image:height" content="{{ graph.height }}" />
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<meta property="og:image" content="http://rowsandall.com/static/img/logo_r.png" />
|
||||
<meta property="og:image:secure_url" content="https://rowsandall.com/static/img/logo_r.png" />
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block image_src %}
|
||||
{% for graph in graphs1 %}
|
||||
|
||||
Reference in New Issue
Block a user