Changeset View
Changeset View
Standalone View
Standalone View
_includes/head.html
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | <link rel="alternate" type="application/rss+xml" title="{{ site.title }} {{ site.title-separator }} {{ site.description }}" href="{{ site.baseurl }}/feed.xml" /> | ||||
{% endfor %} | {% endfor %} | ||||
{% endif %} | {% endif %} | ||||
<!-- Facebook OpenGraph tags --> | <!-- Facebook OpenGraph tags --> | ||||
{% if site.fb_app_id %} | {% if site.fb_app_id %} | ||||
<meta property="fb:app_id" content="{{ site.fb_app_id }}" /> | <meta property="fb:app_id" content="{{ site.fb_app_id }}" /> | ||||
{% endif %} | {% endif %} | ||||
{% if page.meta-title %} | {% if page.title %} | ||||
<meta property="og:title" content="{{ page.meta-title }}" /> | |||||
{% elsif page.title %} | |||||
<meta property="og:title" content="{{ page.title }}" /> | <meta property="og:title" content="{{ page.title }}" /> | ||||
{% else %} | {% else %} | ||||
<meta property="og:title" content="{{ site.title }}" /> | <meta property="og:title" content="{{ site.title }}" /> | ||||
{% endif %} | {% endif %} | ||||
{% if page.meta-description %} | {% if page.subtitle %} | ||||
<meta property="og:description" content="{{ page.meta-description }}"> | |||||
{% elsif page.subtitle %} | |||||
<meta property="og:description" content="{{ page.subtitle }}"> | <meta property="og:description" content="{{ page.subtitle }}"> | ||||
{% else %} | {% else %} | ||||
<meta property="og:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}"> | <meta property="og:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}"> | ||||
{% endif %} | {% endif %} | ||||
<meta property="og:type" content="website" /> | <meta property="og:type" content="website" /> | ||||
{% if page.id %} | {% if page.id %} | ||||
<meta property="og:url" content="{{ site.url }}{{ page.url }}" /> | <meta property="og:url" content="{{ site.url }}{{ page.url }}" /> | ||||
<link rel="canonical" href="{{ site.url }}{{ page.url }}" /> | <link rel="canonical" href="{{ site.url }}{{ page.url }}" /> | ||||
{% else %} | {% else %} | ||||
<meta property="og:url" content="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" /> | <meta property="og:url" content="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" /> | ||||
<link rel="canonical" href="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" /> | <link rel="canonical" href="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" /> | ||||
{% endif %} | {% endif %} | ||||
{% if page.share-img %} | {% if page.share-img %} | ||||
<meta property="og:image" content="{{ page.share-img }}" /> | <meta property="og:image" content="{{ page.share-img }}" /> | ||||
{% endif %} | {% endif %} | ||||
<!-- Twitter summary cards --> | <!-- Twitter summary cards --> | ||||
<meta name="twitter:card" content="summary" /> | <meta name="twitter:card" content="summary" /> | ||||
<meta name="twitter:site" content="@{{ site.author.twitter }}" /> | <meta name="twitter:site" content="@{{ site.author.twitter }}" /> | ||||
<meta name="twitter:creator" content="@{{ site.author.twitter }}" /> | <meta name="twitter:creator" content="@{{ site.author.twitter }}" /> | ||||
{% if page.meta-title %} | {% if page.title %} | ||||
<meta name="twitter:title" content="{{ page.meta-title }}" /> | |||||
{% elsif page.title %} | |||||
<meta name="twitter:title" content="{{ page.title }}" /> | <meta name="twitter:title" content="{{ page.title }}" /> | ||||
{% else %} | {% else %} | ||||
<meta name="twitter:title" content="{{ site.title }}" /> | <meta name="twitter:title" content="{{ site.title }}" /> | ||||
{% endif %} | {% endif %} | ||||
{% if page.meta-description %} | {% if page.subtitle %} | ||||
<meta name="twitter:description" content="{{ page.meta-description }}"> | |||||
{% elsif page.subtitle %} | |||||
<meta name="twitter:description" content="{{ page.subtitle }}"> | <meta name="twitter:description" content="{{ page.subtitle }}"> | ||||
{% else %} | {% else %} | ||||
<meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}"> | <meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}"> | ||||
{% endif %} | {% endif %} | ||||
{% if page.share-img %} | {% if page.share-img %} | ||||
<meta name="twitter:image" content="{{ page.share-img }}" /> | <meta name="twitter:image" content="{{ page.share-img }}" /> | ||||
{% endif %} | {% endif %} | ||||
</head> | </head> |