mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-12-04 07:57:14 +00:00
e711f8b839
- Cleanup _config.yml - Move navigation and author info to data files - Convert .less stylesheets to .scss - Update documentation - Include Octopress gem for new post/page creation
19 lines
No EOL
1.3 KiB
HTML
19 lines
No EOL
1.3 KiB
HTML
<!-- Twitter Cards -->
|
|
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
|
{% if page.excerpt %}<meta name="twitter:description" content="{{ page.excerpt | strip_html }}">{% endif %}
|
|
{% if site.owner.twitter %}<meta name="twitter:site" content="@{{ site.owner.twitter }}">{% endif %}
|
|
{% if author.twitter %}<meta name="twitter:creator" content="@{{ author.twitter }}">{% endif %}
|
|
{% if page.image.feature %}
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:image" content="{{ site.url }}/images/{{ page.image.feature }}">
|
|
{% else %}
|
|
<meta name="twitter:card" content="summary">
|
|
<meta name="twitter:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}">
|
|
{% endif %}
|
|
<!-- Open Graph -->
|
|
<meta property="og:locale" content="{{ site.locale }}">
|
|
<meta property="og:type" content="article">
|
|
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
|
{% if page.excerpt %}<meta property="og:description" content="{{ page.excerpt | strip_html }}">{% endif %}
|
|
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
|
|
<meta property="og:site_name" content="{{ site.title }}"> |