Updated SEO in header

This commit is contained in:
Jeff MacKinnon 2022-02-04 22:19:01 -04:00
parent cd0510ee7d
commit 9dc342a774

View file

@ -18,12 +18,26 @@
{% for tag in article.tags %}
<meta name="tags" content="{{ tag }}" />
{% endfor %}
{% if article.summary %}
<meta name="description" content="{{ article.summary|striptags }}">
{% else %}
<meta name="description" content="{{ article.title|striptags }}">
{% endif %}
<!-- Twitter Card Things-->
<meta name="twitter:card" content="summary" />
{% if SOCIAL_TWIITER %}
<meta name="twitter:site" content="@{{ SOCIAL_TWIITER }}" />
{% endif %}
<meta property="twitter:domain" content="jeffmackinnon.com">
{% if article.summary %}
<meta name="twitter:description" content="{{ article.summary|striptags }}" />
{% else %}
<meta name="twitter:description" content="Read the full post on The Digital Cat" />
{% endif %}
{% if article.photo_image %}
<meta name="twitter:image" content="{{ SITEURL }}/{{ article.photo_image[1] }}" />
{% endif %}
<!-- Open Graph Tags-->
@ -34,7 +48,7 @@
{% if article.photo_image %}
<meta property="og:image" content="{{ SITEURL }}/{{ article.photo_image[1] }}" />
{% endif %}
<!-- I can't get this to work ... yet <meta property="og:description" content="{{ article.summary }}" /> -->
<meta property="og:description" content="{{ article.summary|striptags }}" />
{% endblock %}