Browse Source

Added metadata for headers

redesign
Anxhelo Lushka 7 years ago
committed by GitHub
parent
commit
ffafc9e9cf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      _includes/head.html

20
_includes/head.html

@ -6,6 +6,26 @@
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<meta property="og:site_name" content="{{ site.title }}">
{% if page.title %}
<meta property="og:title" content="{{ page.title }}">
<meta property="og:type" content="article">
<meta property="og:description" content="{{ page.excerpt | strip_html }}"/>
{% else %}
<meta property="og:title" content="{{ site.title }}">
<meta property="og:type" content="website">
<meta property="og:description" content="{{ site.description }}">
{% endif %}
{% if page.date %}
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
{% endif %}
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
{% if page.tags %}
<meta itemprop="keywords" content="{{ page.tags | join: ',' }}" />
{% for tag in page.tags %}
<meta property="article:tag" content="{{ tag }}">
{% endfor %}
{% endif %}
<link rel="stylesheet" href="{{ "/css/app.css" | prepend: site.baseurl }}">
<link href="{{"/fonts/overpass/overpass.css" | prepend: site.baseurl}}" rel="stylesheet">

Loading…
Cancel
Save