Commit 8bf85a0b authored by Andrew Yoon's avatar Andrew Yoon

fix twitter metadata

parent 94175716
Pipeline #120191314 passed with stage
in 1 minute and 7 seconds
......@@ -9,14 +9,21 @@
{% if page.external_thumbnail_description %}
<meta property="description" content="{{ page.external_thumbnail_description }}" />
<meta property="og:description" content="{{ page.external_thumbnail_description }}" />
<meta name="twitter:description" content="{{ page.external_thumbnail_description }}" />
{% endif %}
{% if page.external_thumbnail_path %}
<meta property="og:image" content="{{ page.external_thumbnail_path | absolute_url }}" />
<meta name="twitter:image" content="{{ page.external_thumbnail_path | absolute_url }}" />
{% else %}
<meta property="og:image" content="{{ "/assets/images/fermata_preview.png" | absolute_url }}" />
<meta name="twitter:image" content="{{ "/assets/images/fermata_preview.png" | absolute_url }}" />
{% endif %}
<meta property="og:image:width" content="836" />
<meta property="og:image:height" content="536" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@nothingtosayorg" />
<meta name="twitter:title" content="{% if page.head_title %}{{ page.head_title | escape }} | nothing to say{% elsif page.title %}{{ page.title | escape }} | nothing to say{% else %}nothing to say{% endif %}" />
<title>{% if page.head_title %}{{ page.head_title | escape }} | nothing to say{% elsif page.title %}{{ page.title | escape }} | nothing to say{% else %}nothing to say{% endif %}</title>
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment