_includes/head.html in jekyll-theme-prologue-0.2.3 vs _includes/head.html in jekyll-theme-prologue-0.2.4
- old
+ new
@@ -1,19 +1,48 @@
<head>
- <title>{{ site.title }} {{ site.subtitle }}</title>
+ {% if site.google_analytics and jekyll.environment == 'production' %}
+ {% include google_analytics.html %}
+ {% endif %}
+
+ <!-- Robots -->
+ <meta name="robots" content="{{ page.robots | default: 'index, follow' }}" />
+ {% unless page.canonical == false %}<link rel="canonical" href="{{ page.url | absolute_url }}" />{% endunless %}
+
+ <!-- Title, description, author -->
+ {% capture page_title %}
+ {% if page.title %}{{ page.title | append: ' | ' }}{% endif %}
+ {{ site.title }}
+ {% if site.subtitle %}{{ site.subtitle | prepend: ' - ' }}{% endif %}
+ {% endcapture %}
+ {% assign page_title = page_title | escape | normalize_whitespace %}
+ {% assign page_description = page.description | default: site.description | default: 'description missing' | escape %}
+
+ <title>{{ page_title }}</title>
+ <meta name="description" content="{{ page_description }}" />
+ <meta name="author" content="{{ site.author }}" />
+
+ <!-- Open Graph -->
+ <meta property="og:title" content="{{ page_title }}" />
+ <meta property="og:type" content="website" />
+ <meta property="og:image" content="{{ 'assets/images/avatar.jpg' | absolute_url }}" />
+ <meta property="og:url" content="{{ page.url | absolute_url }}" />
+ <meta property="og:site_name" content="{{ site.title | escape }}" />
+ <meta property="og:description" content="{{ page_description }}" />
+
+ <!-- Styles -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <!--[if lte IE 8]><script src="{{ 'assets/js/ie/html5shiv.js' | relative_url }}"></script><![endif]-->
+ <!--[if lte IE 8]><script src="{{ 'assets/js/ie/html5shiv.js' | relative_url }}" defer></script><![endif]-->
<link rel="stylesheet" href="{{ 'assets/css/main.css' | relative_url }}" />
<!--[if lte IE 8]><link rel="stylesheet" href="{{ 'assets/css/ie8.css' | relative_url }}" /><![endif]-->
<!--[if lte IE 9]><link rel="stylesheet" href="{{ 'assets/css/ie9.css' | relative_url }}" /><![endif]-->
<!-- Scripts -->
- <script src="assets/js/jquery.min.js" defer></script>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" defer></script>
<script src="assets/js/jquery.scrolly.min.js" defer></script>
<script src="assets/js/jquery.scrollzer.min.js" defer></script>
<script src="assets/js/skel.min.js" defer></script>
<script src="assets/js/util.js" defer></script>
- <!--[if lte IE 8]><script src="assets/js/ie/respond.min.js" defer></script><![endif]-->
+ <!--[if lte IE 8]><script src="{{ 'assets/js/ie/respond.min.js' | relative_url }}" defer></script><![endif]-->
<script src="assets/js/main.js" defer></script>
</head>
\ No newline at end of file