Updated SEO in header
This commit is contained in:
parent
cd0510ee7d
commit
9dc342a774
1 changed files with 15 additions and 1 deletions
|
@ -18,12 +18,26 @@
|
||||||
{% for tag in article.tags %}
|
{% for tag in article.tags %}
|
||||||
<meta name="tags" content="{{ tag }}" />
|
<meta name="tags" content="{{ tag }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if article.summary %}
|
||||||
|
<meta name="description" content="{{ article.summary|striptags }}">
|
||||||
|
{% else %}
|
||||||
|
<meta name="description" content="{{ article.title|striptags }}">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Twitter Card Things-->
|
<!-- Twitter Card Things-->
|
||||||
<meta name="twitter:card" content="summary" />
|
<meta name="twitter:card" content="summary" />
|
||||||
{% if SOCIAL_TWIITER %}
|
{% if SOCIAL_TWIITER %}
|
||||||
<meta name="twitter:site" content="@{{ SOCIAL_TWIITER }}" />
|
<meta name="twitter:site" content="@{{ SOCIAL_TWIITER }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta property="twitter:domain" content="jeffmackinnon.com">
|
<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-->
|
<!-- Open Graph Tags-->
|
||||||
|
@ -34,7 +48,7 @@
|
||||||
{% if article.photo_image %}
|
{% if article.photo_image %}
|
||||||
<meta property="og:image" content="{{ SITEURL }}/{{ article.photo_image[1] }}" />
|
<meta property="og:image" content="{{ SITEURL }}/{{ article.photo_image[1] }}" />
|
||||||
{% endif %}
|
{% 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 %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue