mirror of
https://github.com/TrentSPalmer/attentionspanhistory.git
synced 2024-11-16 10:11:29 -08:00
add twitter card
This commit is contained in:
parent
fd435213c8
commit
6203cccb08
@ -39,16 +39,25 @@
|
||||
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" />
|
||||
<meta property="og:title" content="{{ article.title | replace("\"", """) }}" />
|
||||
<meta property="og:description" content="{{ article.content | striptags | replace("\"", """) | truncate(196, False, '...') }}" />
|
||||
<meta property="twitter:title" content="{{ article.title | replace("\"", """) }}" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:description" content="{{ article.content | striptags | replace("\"", """) | truncate(196, False, '...') }}" />
|
||||
{% elif page is defined %}
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ SITEURL }}/{{ page.url }}" />
|
||||
<meta property="og:title" content="{{ SITENAME }} - {{ page.title | replace("\"", """) }}" />
|
||||
<meta property="og:description" content="{{ page.content | striptags | replace("\"", """) | truncate(196, False, '...') }}" />
|
||||
<meta property="twitter:title" content="{{ SITENAME }} - {{ page.title | replace("\"", """) }}" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:description" content="{{ page.content | striptags | replace("\"", """) | truncate(196, False, '...') }}" />
|
||||
{% else %}
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ SITEURL }}/{{ output_file }}" />
|
||||
<meta property="og:title" content="{{ SITENAME }}" />
|
||||
<meta property="og:description" content="A page on Attention Span History" />
|
||||
<meta property="twitter:title" content="{{ SITENAME }}" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="twitter:description" content="A page on Attention Span History" />
|
||||
{% endif %}
|
||||
<meta property="og:image" content="{{ SITEURL }}/images/trent.jpg" />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user