|
1 | 1 | {% comment %} |
2 | 2 | # |
3 | 3 | # Liquid variables are created at the top to keep the source DRY and clean. |
4 | | -# Idea by ericcarlisle.com |
5 | 4 | # |
6 | 5 | # Variables › {{ url }} › site.url + site.baseurl |
7 | | -# Variables › {{ description }} › excerpt, page.meta_description, or site.description |
8 | | -# Variables › {{ title }} › page.title |
9 | 6 | # |
10 | | -{% endcomment %}{% capture ignore %} |
| 7 | +{% endcomment %} |
11 | 8 |
|
12 | 9 | {% assign url = site.baseurl | prepend: site.url %} |
13 | 10 |
|
14 | | -{% capture description %}{% if page.meta_description %}{{ page.meta_description }}{% elsif page.teaser %}{{ page.teaser }}{% elsif page.excerpt %}{{ page.excerpt }}{% elsif site.description %}{{ site.description }}{% endif %}{% endcapture %} |
15 | | -{% assign description = description | strip_html | escape | strip %} |
| 11 | +<meta charset="utf-8"> |
| 12 | +<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
16 | 13 |
|
17 | | -{% capture title %}{% if page.meta_title %}{{ page.meta_title}}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title | strip_html | strip }}{% endif %}{% endcapture %} |
| 14 | +<link rel="stylesheet" type="text/css" href="{{ url }}/assets/css/styles_feeling_responsive.css"> |
18 | 15 |
|
19 | | -{% assign title = title | strip_html | escape | strip_newlines %} |
| 16 | +{% if site.asciidoctor-enabled == true %} |
| 17 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.0/css/font-awesome.min.css"> |
| 18 | +{% endif %} |
20 | 19 |
|
21 | | -{% endcapture %}<meta charset="utf-8"> |
22 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
23 | | - <title>{{ title }}</title> |
| 20 | +<script src="{{ url }}/assets/js/modernizr.min.js"></script> |
24 | 21 |
|
25 | | - <link rel="stylesheet" type="text/css" href="{{ url }}/assets/css/styles_feeling_responsive.css"> |
| 22 | +<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js"></script> |
| 23 | +<script> |
| 24 | + WebFont.load({ |
| 25 | + google: { |
| 26 | + families: [ 'Lato:400,700,400italic:latin', 'Volkhov::latin' ] |
| 27 | + } |
| 28 | + }); |
| 29 | +</script> |
26 | 30 |
|
27 | | - {% if site.asciidoctor-enabled == true %} |
28 | | - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.0/css/font-awesome.min.css"> |
29 | | - {% endif %} |
| 31 | +<noscript> |
| 32 | + <link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic%7CVolkhov' rel='stylesheet' type='text/css'> |
| 33 | +</noscript> |
30 | 34 |
|
31 | | - <script src="{{ url }}/assets/js/modernizr.min.js"></script> |
| 35 | +<!-- Search Engine Optimization --> |
| 36 | +{% if page.noindex == true or layout.noindex == true %}<meta name="robots" content="noindex">{% endif %} |
32 | 37 |
|
33 | | - <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js"></script> |
34 | | - <script> |
35 | | - WebFont.load({ |
36 | | - google: { |
37 | | - families: [ 'Lato:400,700,400italic:latin', 'Volkhov::latin' ] |
38 | | - } |
39 | | - }); |
40 | | - </script> |
| 38 | +{% seo %} |
41 | 39 |
|
42 | | - <noscript> |
43 | | - <link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic%7CVolkhov' rel='stylesheet' type='text/css'> |
44 | | - </noscript> |
| 40 | +{% comment %} TODO: Refactor when https://github.com/jekyll/jekyll-seo-tag/pull/148 lands in 2.2.0 {% endcomment %} |
| 41 | +{% if site.bing_webmastertools_id %}<meta name="msvalidate.01" content="{{ site.bing_webmastertools_id }}" >{% endif %} |
| 42 | +{% if site.yandex_site_verification %}<meta name="yandex-verification" content="{{ site.yandex_site_verification }}">{% endif %} |
| 43 | +{% if site.alexa_verify_id %}<meta name="alexaVerifyID" content="{{ site.alexa_verify_id }}">{% endif %} |
45 | 44 |
|
| 45 | +{% comment %} TODO: Refactor image usage for jekyll-seo-tag {% endcomment %} |
| 46 | +{% if page.image.title %}<meta property="og:image" content="{{ site.urlimg }}{{ page.image.title }}">{% endif %} |
| 47 | +{% if page.image.title %}<meta name="twitter:image" content="{{ site.urlimg }}{{ page.image.title }}">{% endif %} |
46 | 48 |
|
47 | | - <!-- Search Engine Optimization --> |
48 | | - <meta name="description" content="{{ description }}"> |
49 | | - {% if site.google_site_verification %}<meta name="google-site-verification" content="{{ site.google_site_verification}}">{% endif %} |
50 | | - {% if site.bing_webmastertools_id %}<meta name="msvalidate.01" content="{{ site.bing_webmastertools_id }}" >{% endif %} |
51 | | - {% if site.google_author %}<link rel="author" href="{{ site.google_author }}">{% endif %} |
52 | | - {% if site.alexa_verify_id %}<meta name="alexaVerifyID" content="{{ site.alexa_verify_id }}">{% endif %} |
53 | | - {% if page.noindex == true or layout.noindex == true %}<meta name="robots" content="noindex">{% endif %} |
54 | | - <link rel="canonical" href="{{ url }}{{ page.url }}"> |
| 49 | +{% assign seo_author = page.author | default: page.authors[0] | default: site.author %} |
| 50 | +{% if site.data.authors[seo_author] %} |
| 51 | +{% assign seo_author_name = site.data.authors[seo_author].name %} |
| 52 | +{% assign seo_author_google_plus_url = site.data.authors[seo_author].google_plus_url %} |
| 53 | +{% assign seo_author_facebook_user = site.data.authors[seo_author].facebook %} |
| 54 | +{% endif %} |
55 | 55 |
|
| 56 | +{% comment %} TODO: Refactor when https://github.com/jekyll/jekyll-seo-tag/issues/96 is resolved {% endcomment %} |
| 57 | +{% if seo_author_name %}<meta name="author" content="{{ seo_author_name }}" />{% endif %} |
| 58 | +{% if seo_author_google_plus_url %}<link rel="author" href="{{ seo_author_google_plus_url }}">{% endif %} |
| 59 | +{% comment %} TODO: Refactor when https://github.com/jekyll/jekyll-seo-tag/issues/155 is resolved {% endcomment %} |
| 60 | +{% if seo_author_facebook_user %}<meta property="article:author" content="https://www.facebook.com/{{ seo_author_facebook_user }}">{% endif %} |
56 | 61 |
|
57 | | - <!-- Facebook Open Graph --> |
58 | | - <meta property="og:title" content="{{ title }}"> |
59 | | - <meta property="og:description" content="{{ description }}"> |
60 | | - <meta property="og:url" content="{{ url }}{{ page.url }}"> |
61 | | - <meta property="og:locale" content="{% if site.og_locale == nil %}en_EN{% else %}{{ site.og_locale }}{% endif %}"> |
62 | | - <meta property="og:type" content="website"> |
63 | | - <meta property="og:site_name" content="{{ site.title }}"> |
64 | | - {% if page.image.title %}<meta property="og:image" content="{{ site.urlimg }}{{ page.image.title }}">{% endif %} |
65 | | - {% if site.socialmedia.facebook %}<meta property="article:author" content="https://www.facebook.com/{{ site.socialmedia.facebook }}">{% endif %} |
| 62 | +<link type="text/plain" rel="author" href="{{ url}}/humans.txt"> |
66 | 63 |
|
| 64 | +{% if page.mediaplayer == true %} |
| 65 | + <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
| 66 | + <script src="{{ url }}/assets/mediaelement_js/mediaelement-and-player.min.js"></script> |
| 67 | + <link rel="stylesheet" href="{{ url }}/assets/mediaelement_js/mediaelementplayer.min.css"> |
| 68 | +{% endif %} |
67 | 69 |
|
68 | | - {% if site.socialmedia.twitter %} |
69 | | - <!-- Twitter --> |
70 | | - <meta name="twitter:card" content="summary"> |
71 | | - <meta name="twitter:site" content="{{ site.socialmedia.twitter }}"> |
72 | | - <meta name="twitter:creator" content="{{ site.socialmedia.twitter }}"> |
73 | | - <meta name="twitter:title" content="{{ title }}"> |
74 | | - <meta name="twitter:description" content="{{ description }}"> |
75 | | - {% if page.image.title %}<meta name="twitter:image" content="{{ site.urlimg }}{{ page.image.title }}">{% endif %} |
76 | | - {% endif %} |
| 70 | +{% include _favicon.html %} |
77 | 71 |
|
78 | | - <link type="text/plain" rel="author" href="{{ url}}/humans.txt"> |
79 | | - |
80 | | - {% if page.mediaplayer == true %} |
81 | | - <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
82 | | - <script src="{{ url }}/assets/mediaelement_js/mediaelement-and-player.min.js"></script> |
83 | | - <link rel="stylesheet" href="{{ url }}/assets/mediaelement_js/mediaelementplayer.min.css"> |
84 | | - {% endif %} |
85 | | - |
86 | | - {% include _favicon.html %} |
87 | | - |
88 | | - {% unless page.style == NULL %} |
89 | | - <style type="text/css">{{ page.style }}</style> |
90 | | - {% endunless %} |
| 72 | +{% unless page.style == NULL %} |
| 73 | + <style type="text/css">{{ page.style }}</style> |
| 74 | +{% endunless %} |
0 commit comments