mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-23 18:32:49 +01:00
26 lines
965 B
HTML
26 lines
965 B
HTML
|
|
{% if page.category == "photos" %}
|
|
<meta name="twitter:card" content="photo">
|
|
{% else %}
|
|
<meta name="twitter:card" content="summary">
|
|
{% endif %}
|
|
<meta name="twitter:site" content="@kremaliciouscom">
|
|
<meta name="twitter:creator" content="@kremalicious">
|
|
{% if page.title %}
|
|
<meta name="twitter:title" content="{{ page.title }}">
|
|
{% else %}
|
|
<meta name="twitter:title" content="{{ site.title }}">
|
|
{% endif %}
|
|
{% if page.url %}
|
|
<meta name="twitter:url" content="{{ site.baseurl}}{{ page.url | replace:'index.html','' }}">
|
|
{% endif %}
|
|
{% if page.description %}
|
|
<meta name="twitter:description" content="{{ page.description }}">
|
|
{% else %}
|
|
<meta name="twitter:description" content="{{ page.excerpt | strip_html }}">
|
|
{% endif %}
|
|
{% if page.image %}
|
|
<meta name="twitter:image:src" content="{{ site.baseurl }}/media/{{ page.image }}">
|
|
{% else %}
|
|
<meta name="twitter:image:src" content="{{ site.baseurl }}/kremalicious1024.png">
|
|
{% endif %} |