···
1
-
<meta charset="UTF-8">
2
-
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
3
-
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
4
-
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
5
-
<meta name="robots" content="index, follow">
7
-
{% set title = page.title %}
8
-
{% elif section.title %}
9
-
{% set title = section.title %}
10
-
{% elif config.title %}
11
-
{% set title = config.title %}
13
-
{% if page.extra.author %}
14
-
{% set author = page.extra.author %}
15
-
{% elif section.extra.author %}
16
-
{% set author = section.extra.author %}
17
-
{% elif config.extra.author %}
18
-
{% set author = config.extra.author %}
20
-
{% if page.description %}
21
-
{% set description = page.description | truncate(length=150) %}
22
-
{% elif section.description %}
23
-
{% set description = section.description | truncate(length=150) %}
24
-
{% elif config.description %}
25
-
{% set description = config.description | truncate(length=150) %}
27
-
{% if page.extra.image %}
28
-
{% set image = get_url(path=page.extra.image, trailing_slash=false) %}
29
-
{% elif section.extra.image %}
30
-
{% set image = get_url(path=section.extra.image, trailing_slash=false) %}
31
-
{% elif config.extra.favicon %}
32
-
{% set image = get_url(path=config.extra.favicon, trailing_slash=false) %}
34
-
{% if page.permalink %}
35
-
{% set url = page.permalink %}
36
-
{% elif section.permalink %}
37
-
{% set url = section.permalink %}
38
-
{% elif config.base_url %}
39
-
{% set url = config.base_url %}
1
+
<meta charset="UTF-8" />
2
+
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
3
+
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
6
+
content="width=device-width, initial-scale=1, user-scalable=no"
8
+
<meta name="robots" content="index, follow" />
9
+
{% if page.title %} {% set title = page.title %} {% elif section.title %} {% set
10
+
title = section.title %} {% elif config.title %} {% set title = config.title %}
11
+
{% endif %} {% if page.extra.author %} {% set author = page.extra.author %} {%
12
+
elif section.extra.author %} {% set author = section.extra.author %} {% elif
13
+
config.extra.author %} {% set author = config.extra.author %} {% endif %} {% if
14
+
page.description %} {% set description = page.description | truncate(length=150)
15
+
%} {% elif section.description %} {% set description = section.description |
16
+
truncate(length=150) %} {% elif config.description %} {% set description =
17
+
config.description | truncate(length=150) %} {% endif %} {% if page.extra.image
18
+
%} {% set image = get_url(path=page.extra.image, trailing_slash=false) %} {%
19
+
elif section.extra.image %} {% set image = get_url(path=section.extra.image,
20
+
trailing_slash=false) %} {% elif config.extra.favicon %} {% set image =
21
+
get_url(path=config.extra.favicon, trailing_slash=false) %} {% endif %} {% if
22
+
page.permalink %} {% set url = page.permalink %} {% elif section.permalink %} {%
23
+
set url = section.permalink %} {% elif config.base_url %} {% set url =
24
+
config.base_url %} {% endif %} {% if title %}
<title>{{ title }}</title>
44
-
{% block metatags %}
46
-
<meta name="title" content="{{ title }}">
49
-
<meta name="author" content="{{ author }}">
51
-
{% if description %}
52
-
<meta name="description" content="{{ description }}">
54
-
<meta property="og:type" content="website">
55
-
<meta property="og:url" content="{{ url | safe }}">
57
-
<meta property="og:site_name" content="{{ config.title }}">
26
+
{% endif %} {% block metatags %} {% if title %}
27
+
<meta name="title" content="{{ title }}" />
28
+
{% endif %} {% if author %}
29
+
<meta name="author" content="{{ author }}" />
30
+
{% endif %} {% if description %}
31
+
<meta name="description" content="{{ description }}" />
33
+
<meta property="og:type" content="website" />
34
+
<meta property="og:url" content="{{ url | safe }}" />
60
-
<meta property="og:title" content="{{ title }}">
62
-
{% if description %}
63
-
<meta property="og:description" content="{{ description }}">
66
-
<meta property="og:image" content="{{ image }}">
68
-
{% set twitter_card = config.extra.twitter_card | default(value=true) %}
69
-
{% if twitter_card != false %}
70
-
<meta property="twitter:card" content="summary_large_image">
71
-
<meta property="twitter:url" content="{{ url | safe }}">
36
+
<meta property="og:site_name" content="{{ config.title }}" />
37
+
{% endif %} {% if title %}
38
+
<meta property="og:title" content="{{ title }}" />
39
+
{% endif %} {% if description %}
40
+
<meta property="og:description" content="{{ description }}" />
41
+
{% endif %} {% if image %}
42
+
<meta property="og:image" content="{{ image }}" />
43
+
{% endif %} {% set twitter_card = config.extra.twitter_card |
44
+
default(value=true) %} {% if twitter_card != false %}
45
+
<meta property="twitter:card" content="summary_large_image" />
46
+
<meta property="twitter:url" content="{{ url | safe }}" />
73
-
<meta property="twitter:title" content="{{ title }}">
75
-
{% if description %}
76
-
<meta property="twitter:description" content="{{ description }}">
48
+
<meta property="twitter:title" content="{{ title }}" />
49
+
{% endif %} {% if description %}
50
+
<meta property="twitter:description" content="{{ description }}" />
51
+
{% endif %} {% if image %}
52
+
<meta property="twitter:image" content="{{ image }}" />
53
+
{% endif %} {% endif %}
54
+
<link rel="canonical" href="{{ url | safe }}" />
79
-
<meta property="twitter:image" content="{{ image }}">
82
-
<link rel="canonical" href="{{ url | safe }}">
84
-
<link rel="shortcut icon" type="image/x-icon" href="{{ get_url(path=config.extra.favicon, trailing_slash=false) }}">
86
-
{% endblock metatags %}
87
-
{% if config.generate_feeds %}
89
-
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
93
-
<link rel="stylesheet" type="text/css" href="https://speyll.github.io/suCSS/reset-min.css"/>
94
-
<link rel="stylesheet" type="text/css" href="https://speyll.github.io/suCSS/suCSS-min.css"/>
95
-
<link rel="stylesheet" type="text/css" href="{{ get_url(path='css/style.css', trailing_slash=false) | safe }}"/>
59
+
href="{{ get_url(path=config.extra.favicon, trailing_slash=false) }}"
61
+
{% endif %} {% endblock metatags %} {% if config.generate_feeds %} {% block feed
62
+
%} <link rel="alternate" type="application/atom+xml" title="RSS" href="{{
63
+
get_url(path="atom.xml", trailing_slash=false) }}"> {% endblock feed %} {% endif
68
+
href="https://speyll.github.io/suCSS/reset-min.css"
73
+
href="https://speyll.github.io/suCSS/suCSS-min.css"
78
+
href="{{ get_url(path='css/style.css', trailing_slash=false) | safe }}"
97
-
<script src="{{ get_url(path='js/script.js', trailing_slash=false) | safe }}" defer></script>
82
+
src="{{ get_url(path='js/script.js', trailing_slash=false) | safe }}"