meta tag changes
This commit is contained in:
@@ -15,23 +15,41 @@
|
||||
<meta property="jekyll-source" content="https://raw.githubusercontent.com/dpb587/dpb587.me/master/{{ page.path }}" />
|
||||
{% endif %}
|
||||
|
||||
<meta property="twitter:site" content="dpb587" />
|
||||
<meta property="twitter:creator" content="dpb587" />
|
||||
|
||||
{% if page.description %}
|
||||
<meta name="description" content="{{ page.description }}" />
|
||||
<meta property="og:description" content="{{ page.description }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if page.tags %}
|
||||
<meta name="keywords" content="{{ page.tags|join(' ') }}" />
|
||||
{% endif %}
|
||||
|
||||
<meta name="viewport" content="width=756" />
|
||||
|
||||
<link href="http://dpb587.me{{ page.url|replace:'/index.html','/' }}" rel="canonical" />
|
||||
|
||||
<meta property="og:title" content="{% if page.title == 'Home' %}Danny Berger{% else %}{{ page.title }}{% endif %}" />
|
||||
<meta property="og:url" content="http://dpb587.me{% if page.url != '/index.html' %}{{ page.url }}{% endif %}?utm_campaign=ref&utm_medium=def&utm_source=opengraph" />
|
||||
<meta property="twitter:url" content="http://dpb587.me{% if page.url != '/index.html' %}{{ page.url }}{% endif %}?utm_campaign=ref&utm_medium=def&utm_source=twitter" />
|
||||
<meta name="viewport" content="width=756" />
|
||||
{% if page.description %}
|
||||
<meta property="og:description" content="{{ page.description }}" />
|
||||
{% endif %}
|
||||
|
||||
<meta name="twitter:domain" content="dpb587.me" />
|
||||
<meta name="twitter:site" content="@dpb587" />
|
||||
<meta name="twitter:creator" content="@dpb587" />
|
||||
<meta name="twitter:url" content="http://dpb587.me{% if page.url != '/index.html' %}{{ page.url }}{% endif %}?utm_campaign=ref&utm_medium=def&utm_source=twitter" />
|
||||
<meta name="twitter:title" content="{% if page.title == 'Home' %}Danny Berger{% else %}{{ page.title }}{% endif %}" />
|
||||
{% if page.description %}
|
||||
<meta name="twitter:description" content="{{ page.description }}" />
|
||||
{% endif %}
|
||||
{% if 'gallery-photo' == page.layout %}
|
||||
<meta name="twitter:card" content="photo" />
|
||||
<meta name="twitter:image:src" content="{{ site.asset_prefix }}{{ page.url|replace:".html","~640.jpg" }}" />
|
||||
{% else %}
|
||||
<meta name="twitter:card" content="summary">
|
||||
{% if page.primary_image %}
|
||||
<meta name="twitter:image:src" content="{{ page.primary_image }}">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<script type="text/javascript">
|
||||
var _gaq = _gaq || [];
|
||||
|
||||
Reference in New Issue
Block a user