beautiful-jekyll-theme 1.1.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +5 -5
  2. data/404.html +13 -0
  3. data/{LICENSE.txt → LICENSE} +14 -5
  4. data/README.md +207 -203
  5. data/_data/ui-text.yml +494 -0
  6. data/_includes/comments.html +6 -0
  7. data/_includes/disqus.html +16 -14
  8. data/_includes/ext-css.html +7 -0
  9. data/_includes/ext-js.html +7 -0
  10. data/_includes/fb-comment.html +14 -0
  11. data/_includes/footer-minimal.html +6 -7
  12. data/_includes/footer-scripts.html +14 -16
  13. data/_includes/footer.html +23 -168
  14. data/_includes/google_analytics.html +13 -11
  15. data/_includes/gtag.html +11 -0
  16. data/_includes/gtm_body.html +6 -0
  17. data/_includes/gtm_head.html +9 -0
  18. data/_includes/head.html +41 -19
  19. data/_includes/header.html +37 -29
  20. data/_includes/matomo.html +17 -0
  21. data/_includes/nav.html +21 -23
  22. data/_includes/readtime.html +16 -0
  23. data/_includes/social-networks-links.html +207 -0
  24. data/_includes/social-share.html +25 -22
  25. data/_includes/staticman-comment.html +22 -0
  26. data/_includes/staticman-comments.html +83 -0
  27. data/_includes/utterances-comment.html +13 -0
  28. data/_layouts/base.html +4 -2
  29. data/_layouts/default.html +1 -1
  30. data/_layouts/home.html +75 -0
  31. data/_layouts/minimal.html +3 -3
  32. data/_layouts/page.html +1 -5
  33. data/_layouts/post.html +35 -11
  34. data/assets/css/main.css +233 -74
  35. data/assets/css/normalize.css +1 -1
  36. data/assets/css/pygment_highlights.css +0 -5
  37. data/assets/css/staticman.css +180 -0
  38. data/assets/img/404-southpark.jpg +0 -0
  39. data/assets/img/avatar-icon.png +0 -0
  40. data/assets/img/bgimage.png +0 -0
  41. data/assets/img/hello_world.jpeg +0 -0
  42. data/assets/img/install-steps.gif +0 -0
  43. data/assets/img/path.jpg +0 -0
  44. data/assets/js/main.js +21 -19
  45. data/assets/js/staticman.js +54 -0
  46. data/{assets/feed.xml → feed.xml} +8 -4
  47. data/tags.html +36 -0
  48. metadata +53 -17
  49. data/_includes/navbarlink.html +0 -16
  50. data/_layouts/tag_index.html +0 -41
@@ -0,0 +1,6 @@
1
+ {% if page.comments %}
2
+ {% include disqus.html %}
3
+ {% include fb-comment.html %}
4
+ {% include staticman-comments.html %}
5
+ {% include utterances-comment.html %}
6
+ {% endif %}
@@ -1,17 +1,19 @@
1
- {% if site.disqus %}
1
+ {%- if site.disqus -%}
2
+ <div class="disqus-comments">
2
3
  <div class="comments">
3
- <div id="disqus_thread"></div>
4
- <script type="text/javascript">
5
- var disqus_shortname = '{{ site.disqus }}';
6
- /* ensure that pages with query string get the same discussion */
4
+ <div id="disqus_thread"></div>
5
+ <script type="text/javascript">
6
+ var disqus_shortname = '{{ site.disqus }}';
7
+ /* ensure that pages with query string get the same discussion */
7
8
  var url_parts = window.location.href.split("?");
8
- var disqus_url = url_parts[0];
9
- (function() {
10
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
11
- dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
12
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
13
- })();
14
- </script>
15
- <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
9
+ var disqus_url = url_parts[0];
10
+ (function() {
11
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
12
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
13
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
14
+ })();
15
+ </script>
16
+ <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
16
17
  </div>
17
- {% endif %}
18
+ </div>
19
+ {%- endif -%}
@@ -0,0 +1,7 @@
1
+ {% if include.css.sri %}
2
+ <link href="{{ include.css.href }}" rel="stylesheet" integrity="{{ include.css.sri }}" crossorigin="anonymous">
3
+ {% elsif include.css.href %}
4
+ <link rel="stylesheet" href="{{ include.css.href }}" />
5
+ {% else %}
6
+ <link rel="stylesheet" href="{{ include.css }}" />
7
+ {% endif %}
@@ -0,0 +1,7 @@
1
+ {% if include.js.sri %}
2
+ <script src="{{ include.js.href }}" integrity="{{ include.js.sri }}" crossorigin="anonymous"></script>
3
+ {% elsif include.js.href %}
4
+ <script src="{{ include.js.href }}"></script>
5
+ {% else %}
6
+ <script src="{{ include.js }}"></script>
7
+ {% endif %}
@@ -0,0 +1,14 @@
1
+ {%- if site.fb_comment_id -%}
2
+ <div class="comments">
3
+ <div id="fb-root"></div>
4
+ <script>(function(d, s, id) {
5
+ var js, fjs = d.getElementsByTagName(s)[0];
6
+ if (d.getElementById(id)) return;
7
+ js = d.createElement(s); js.id = id;
8
+ js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12&appId={{ site.fb_comment_id }}&autoLogAppEvents=1';
9
+ fjs.parentNode.insertBefore(js, fjs);
10
+ }(document, 'script', 'facebook-jssdk'));</script>
11
+ <div class="fb-comments" data-href="{{ page.url | absolute_url }}" data-width="100%" data-numposts="5"></div>
12
+ <noscript>Please enable JavaScript to view the comments powered by Facebook.</noscript>
13
+ </div>
14
+ {%- endif -%}
@@ -1,19 +1,18 @@
1
1
  <footer class="footer-min">
2
2
  <div class="text-muted">
3
- {{ site.author.name }}
3
+ {% if site.author %}
4
+ {{ site.author }}
4
5
  &nbsp;&nbsp;&bull;&nbsp;&nbsp;
6
+ {% endif %}
5
7
  {% if page.date %}
6
8
  {{ page.date }}
7
9
  {% else %}
8
10
  {{ site.time | date: '%Y' }}
9
11
  {% endif %}
10
- &nbsp;&nbsp;&bull;&nbsp;&nbsp;
11
-
12
+
12
13
  {% if site.url-pretty %}
13
- <a href="{{ site.url }}">{{ site.url-pretty }}</a>
14
14
  &nbsp;&nbsp;&bull;&nbsp;&nbsp;
15
- {% endif %}
16
-
17
- Theme by <a href="http://deanattali.com/beautiful-jekyll/">beautiful-jekyll</a>
15
+ <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
16
+ {% endif %}
18
17
  </div>
19
18
  </footer>
@@ -1,18 +1,6 @@
1
1
  {% if layout.common-ext-js %}
2
2
  {% for js in layout.common-ext-js %}
3
- <script src="{{ js }}"></script>
4
- {% endfor %}
5
- {% endif %}
6
-
7
- {% if page.ext-js %}
8
- {% for js in page.ext-js %}
9
- <script src="{{ js }}"></script>
10
- {% endfor %}
11
- {% endif %}
12
-
13
- {% if page.js %}
14
- {% for js in page.js %}
15
- <script src="{{ js | replace: '//', '/' }}"></script>
3
+ {% include ext-js.html js=js %}
16
4
  {% endfor %}
17
5
  {% endif %}
18
6
 
@@ -22,13 +10,23 @@
22
10
  {% if js contains 'jquery' %}
23
11
  <script>
24
12
  if (typeof jQuery == 'undefined') {
25
- document.write('<script src="{{ js | replace: "//", "/" }}"></scr' + 'ipt>');
13
+ document.write('<script src="{{ js | relative_url }}"></scr' + 'ipt>');
26
14
  }
27
15
  </script>
28
16
  {% else %}
29
- <script src="{{ js | replace: '//', '/' }}"></script>
17
+ <script src="{{ js | relative_url }}"></script>
30
18
  {% endif %}
31
19
  {% endfor %}
32
20
  {% endif %}
33
21
 
34
- {% include google_analytics.html %}
22
+ {% if page.ext-js %}
23
+ {% for js in page.ext-js %}
24
+ {% include ext-js.html js=js %}
25
+ {% endfor %}
26
+ {% endif %}
27
+
28
+ {% if page.js %}
29
+ {% for js in page.js %}
30
+ <script src="{{ js | relative_url }}"></script>
31
+ {% endfor %}
32
+ {% endif %}
@@ -2,176 +2,31 @@
2
2
  <div class="container beautiful-jekyll-footer">
3
3
  <div class="row">
4
4
  <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
5
- <ul class="list-inline text-center footer-links">
6
- {% if site.author.facebook %}
7
- <li>
8
- <a href="https://www.facebook.com/{{ site.author.facebook }}" title="Facebook">
9
- <span class="fa-stack fa-lg">
10
- <i class="fa fa-circle fa-stack-2x"></i>
11
- <i class="fa fa-facebook fa-stack-1x fa-inverse"></i>
12
- </span>
13
- </a>
14
- </li>
15
- {% endif %}
16
- {% if site.author.github %}
17
- <li>
18
- <a href="https://github.com/{{ site.author.github }}" title="GitHub">
19
- <span class="fa-stack fa-lg">
20
- <i class="fa fa-circle fa-stack-2x"></i>
21
- <i class="fa fa-github fa-stack-1x fa-inverse"></i>
22
- </span>
23
- </a>
24
- </li>
25
- {% endif %}
26
- {% if site.author.twitter %}
27
- <li>
28
- <a href="https://twitter.com/{{ site.author.twitter }}" title="Twitter">
29
- <span class="fa-stack fa-lg">
30
- <i class="fa fa-circle fa-stack-2x"></i>
31
- <i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
32
- </span>
33
- </a>
34
- </li>
35
- {% endif %}
36
- {% if site.author.reddit %}
37
- <li>
38
- <a href="https://reddit.com/u/{{ site.author.reddit }}" title="Reddit">
39
- <span class="fa-stack fa-lg">
40
- <i class="fa fa-circle fa-stack-2x"></i>
41
- <i class="fa fa-reddit fa-stack-1x fa-inverse"></i>
42
- </span>
43
- </a>
44
- </li>
45
- {% endif %}
46
- {% if site.author.google-plus %}
47
- <li>
48
- <a href="https://plus.google.com/{{ site.author.google-plus }}" title="Google+">
49
- <span class="fa-stack fa-lg">
50
- <i class="fa fa-circle fa-stack-2x"></i>
51
- <i class="fa fa-google-plus fa-stack-1x fa-inverse"></i>
52
- </span>
53
- </a>
54
- </li>
55
- {% endif %}
56
- {% if site.author.email %}
57
- <li>
58
- <a href="mailto:{{ site.author.email }}" title="Email me">
59
- <span class="fa-stack fa-lg">
60
- <i class="fa fa-circle fa-stack-2x"></i>
61
- <i class="fa fa-envelope fa-stack-1x fa-inverse"></i>
62
- </span>
63
- </a>
64
- </li>
65
- {% endif %}
66
- {% if site.author.linkedin %}
67
- <li>
68
- <a href="https://linkedin.com/in/{{ site.author.linkedin }}" title="LinkedIn">
69
- <span class="fa-stack fa-lg">
70
- <i class="fa fa-circle fa-stack-2x"></i>
71
- <i class="fa fa-linkedin fa-stack-1x fa-inverse"></i>
72
- </span>
73
- </a>
74
- </li>
75
- {% endif %}
76
- {% if site.author.xing %}
77
- <li>
78
- <a href="https://www.xing.com/profile/{{ site.author.xing }}" title="Xing">
79
- <span class="fa-stack fa-lg">
80
- <i class="fa fa-circle fa-stack-2x"></i>
81
- <i class="fa fa-xing fa-stack-1x fa-inverse"></i>
82
- </span>
83
- </a>
84
- </li>
85
- {% endif %}
86
- {% if site.author.stackoverflow %}
87
- <li>
88
- <a href="https://stackoverflow.com/users/{{ site.author.stackoverflow }}" title="StackOverflow">
89
- <span class="fa-stack fa-lg">
90
- <i class="fa fa-circle fa-stack-2x"></i>
91
- <i class="fa fa-stack-overflow fa-stack-1x fa-inverse"></i>
92
- </span>
93
- </a>
94
- </li>
95
- {% endif %}
96
- {% if site.author.snapchat %}
97
- <li>
98
- <a href="https://www.snapchat.com/add/{{ site.author.snapchat }}" title="Snapchat">
99
- <span class="fa-stack fa-lg">
100
- <i class="fa fa-circle fa-stack-2x"></i>
101
- <i class="fa fa-snapchat-ghost fa-stack-1x fa-inverse"></i>
102
- </span>
103
- </a>
104
- </li>
105
- {% endif %}
106
- {% if site.author.instagram %}
107
- <li>
108
- <a href="https://www.instagram.com/{{ site.author.instagram }}" title="Instagram">
109
- <span class="fa-stack fa-lg">
110
- <i class="fa fa-circle fa-stack-2x"></i>
111
- <i class="fa fa-instagram fa-stack-1x fa-inverse"></i>
112
- </span>
113
- </a>
114
- </li>
115
- {% endif %}
116
- {% if site.author.youtube %}
117
- <li>
118
- <a href="https://www.youtube.com/{{ site.author.youtube }}" title="YouTube">
119
- <span class="fa-stack fa-lg">
120
- <i class="fa fa-circle fa-stack-2x"></i>
121
- <i class="fa fa-youtube fa-stack-1x fa-inverse"></i>
122
- </span>
123
- </a>
124
- </li>
125
- {% endif %}
126
- {% if site.author.spotify %}
127
- <li>
128
- <a href="https://open.spotify.com/user/{{ site.author.spotify }}" title="Spotify">
129
- <span class="fa-stack fa-lg">
130
- <i class="fa fa-circle fa-stack-2x"></i>
131
- <i class="fa fa-spotify fa-stack-1x fa-inverse"></i>
132
- </span>
133
- </a>
134
- </li>
135
- {% endif %}
136
- {% if site.author.telephone %}
137
- <li>
138
- <a href="tel:{{ site.author.telephone }}" title="Phone">
139
- <span class="fa-stack fa-lg">
140
- <i class="fa fa-circle fa-stack-2x"></i>
141
- <i class="fa fa-phone fa-stack-1x fa-inverse"></i>
142
- </span>
143
- </a>
144
- </li>
145
- {% endif %}
146
- {% if site.rss-footer %}
147
- <li>
148
- <a href="/assets/feed.xml" title="RSS">
149
- <span class="fa-stack fa-lg">
150
- <i class="fa fa-circle fa-stack-2x"></i>
151
- <i class="fa fa-rss fa-stack-1x fa-inverse"></i>
152
- </span>
153
- </a>
154
- </li>
155
- {% endif %}
156
- </ul>
157
- <p class="copyright text-muted">
158
- {% if site.author.name %}
159
- {{ site.author.name }}
160
- &nbsp;&bull;&nbsp;
161
- {% endif %}
5
+ {% include social-networks-links.html %}
6
+ <p class="copyright text-muted">
7
+ {% if site.author %}
8
+ {{ site.author }}
9
+ &nbsp;&bull;&nbsp;
10
+ {% endif %}
11
+ {{ site.time | date: '%Y' }}
162
12
 
163
- {{ site.time | date: '%Y' }}
13
+ {% if site.url-pretty %}
14
+ &nbsp;&bull;&nbsp;
15
+ <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
16
+ {% endif %}
164
17
 
165
- {% if site.url-pretty %}
166
- &nbsp;&bull;&nbsp;
167
- <a href="{{ site.url }}">{{ site.url-pretty }}</a>
168
- {% endif %}
169
- </p>
170
- <!-- Please don't remove this, keep my open source work credited :) -->
171
- <p class="theme-by text-muted">
172
- Theme by
173
- <a href="http://deanattali.com/beautiful-jekyll/">beautiful-jekyll</a>
174
- </p>
18
+ {% if site.matomo %}
19
+ {% if site.matomo.opt-out %}
20
+ &nbsp;&bull;&nbsp;
21
+ <a href="http://{{- site.matomo.uri -}}/index.php?module=CoreAdminHome&action=optOut" target="_blank" class="text_muted">Do-not-Track</a>
22
+ {% endif %}
23
+ {% endif%}
24
+ </p>
25
+ <!-- Please don't remove this, keep my open source work credited :) -->
26
+ <p class="theme-by text-muted">
27
+ Theme by
28
+ <a href="https://deanattali.com/beautiful-jekyll/">beautiful-jekyll</a>
29
+ </p>
175
30
  </div>
176
31
  </div>
177
32
  </div>
@@ -1,12 +1,14 @@
1
1
  {% if site.google_analytics %}
2
- <!-- Google Analytics -->
3
- <script>
4
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
6
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
7
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
8
- ga('create', '{{ site.google_analytics }}', 'auto');
9
- ga('send', 'pageview');
10
- </script>
11
- <!-- End Google Analytics -->
12
- {% endif %}
2
+ <!-- Google Analytics -->
3
+ <script>
4
+ (function (i, s, o, g, r, a, m) {
5
+ i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
6
+ (i[r].q = i[r].q || []).push(arguments)
7
+ }, i[r].l = 1 * new Date(); a = s.createElement(o),
8
+ m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
9
+ })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
10
+ ga('create', '{{ site.google_analytics }}', 'auto');
11
+ ga('send', 'pageview');
12
+ </script>
13
+ <!-- End Google Analytics -->
14
+ {% endif %}
@@ -0,0 +1,11 @@
1
+ {% if site.gtag %}
2
+ <!-- Global site tag (gtag.js) - Google Analytics -->
3
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.gtag }}"></script>
4
+ <script>
5
+ window.dataLayer = window.dataLayer || [];
6
+ function gtag(){dataLayer.push(arguments);}
7
+ gtag('js', new Date());
8
+
9
+ gtag('config', '{{ site.gtag }}');
10
+ </script>
11
+ {% endif %}
@@ -0,0 +1,6 @@
1
+ {% if site.gtm %}
2
+ <!-- Google Tag Manager (noscript) -->
3
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ site.gtm }}"
4
+ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
5
+ <!-- End Google Tag Manager (noscript) -->
6
+ {% endif %}
@@ -0,0 +1,9 @@
1
+ {% if site.gtm %}
2
+ <!-- Google Tag Manager -->
3
+ <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4
+ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5
+ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6
+ 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7
+ })(window,document,'script','dataLayer','{{ site.gtm }}');</script>
8
+ <!-- End Google Tag Manager -->
9
+ {% endif %}
@@ -1,25 +1,33 @@
1
1
  <head>
2
2
  <meta charset="utf-8" />
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
5
-
6
- <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7
-
8
- <meta name="author" content="{{ site.author.name }}" />
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover">
9
5
 
6
+ <title>{% if page.use-site-title %}{{ site.title }} {{ site.title-separator | default: '-' }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7
+
8
+ {% if site.author %}
9
+ <meta name="author" content="{{ site.author }}" />
10
+ {% endif %}
11
+
10
12
  {% if page.subtitle %}
11
13
  <meta name="description" content="{{ page.subtitle }}">
12
14
  {% endif %}
13
15
 
16
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}" />
17
+
18
+ {% include gtag.html %}
19
+ {% include gtm_head.html %}
20
+ {% include google_analytics.html %}
21
+
14
22
  {% if layout.common-ext-css %}
15
23
  {% for css in layout.common-ext-css %}
16
- <link rel="stylesheet" href="{{ css }}" />
24
+ {% include ext-css.html css=css %}
17
25
  {% endfor %}
18
26
  {% endif %}
19
27
 
20
28
  {% if layout.common-css %}
21
29
  {% for css in layout.common-css %}
22
- <link rel="stylesheet" href="{{ css | replace: '//', '/' }}" />
30
+ <link rel="stylesheet" href="{{ css | relative_url }}" />
23
31
  {% endfor %}
24
32
  {% endif %}
25
33
 
@@ -31,13 +39,13 @@
31
39
 
32
40
  {% if page.ext-css %}
33
41
  {% for css in page.ext-css %}
34
- <link rel="stylesheet" href="{{ css }}" />
42
+ {% include ext-css.html css=css %}
35
43
  {% endfor %}
36
44
  {% endif %}
37
45
 
38
46
  {% if page.css %}
39
47
  {% for css in page.css %}
40
- <link rel="stylesheet" href="{{ css | replace: '//', '/' }}" />
48
+ <link rel="stylesheet" href="{{ css | relative_url }}" />
41
49
  {% endfor %}
42
50
  {% endif %}
43
51
 
@@ -47,11 +55,16 @@
47
55
  {% endfor %}
48
56
  {% endif %}
49
57
 
58
+ <!-- Facebook OpenGraph tags -->
59
+ {% if site.fb_app_id %}
60
+ <meta property="fb:app_id" content="{{ site.fb_app_id }}" />
61
+ {% endif %}
62
+
50
63
  {% if page.meta-title %}
51
64
  <meta property="og:title" content="{{ page.meta-title }}" />
52
65
  {% elsif page.title %}
53
66
  <meta property="og:title" content="{{ page.title }}" />
54
- {% else %}
67
+ {% elsif site.title %}
55
68
  <meta property="og:title" content="{{ site.title }}" />
56
69
  {% endif %}
57
70
 
@@ -67,24 +80,24 @@
67
80
  <meta property="og:type" content="website" />
68
81
 
69
82
  {% if page.id %}
70
- <meta property="og:url" content="{{ site.url }}{{ page.url }}" />
71
- <link rel="canonical" href="{{ site.url }}{{ page.url }}" />
83
+ <meta property="og:url" content="{{ page.url | absolute_url }}" />
84
+ <link rel="canonical" href="{{ page.url | absolute_url }}" />
72
85
  {% else %}
73
- <meta property="og:url" content="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" />
74
- <link rel="canonical" href="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" />
86
+ <meta property="og:url" content="{{ page.url | absolute_url | strip_index }}" />
87
+ <link rel="canonical" href="{{ page.url | absolute_url | strip_index }}" />
75
88
  {% endif %}
76
89
 
77
90
  {% if page.share-img %}
78
91
  <meta property="og:image" content="{{ page.share-img }}" />
79
92
  {% elsif site.avatar %}
80
- <meta property="og:image" content="{{ site.url }}{{ site.avatar }}" />
93
+ <meta property="og:image" content="{{ site.avatar | absolute_url }}" />
81
94
  {% endif %}
82
-
95
+
83
96
 
84
97
  <!-- Twitter summary cards -->
85
98
  <meta name="twitter:card" content="summary" />
86
- <meta name="twitter:site" content="@{{ site.author.twitter }}" />
87
- <meta name="twitter:creator" content="@{{ site.author.twitter }}" />
99
+ <meta name="twitter:site" content="@{{ site.social-network-links.twitter }}" />
100
+ <meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}" />
88
101
 
89
102
  {% if page.meta-title %}
90
103
  <meta name="twitter:title" content="{{ page.meta-title }}" />
@@ -105,7 +118,16 @@
105
118
  {% if page.share-img %}
106
119
  <meta name="twitter:image" content="{{ page.share-img }}" />
107
120
  {% elsif site.avatar %}
108
- <meta name="twitter:image" content="{{ site.url }}{{ site.avatar }}" />
121
+ <meta name="twitter:image" content="{{ site.avatar | absolute_url }}" />
122
+ {% endif %}
123
+
124
+ {% if site.matomo %}
125
+ {% include matomo.html %}
126
+ {% endif %}
127
+
128
+ {% if page.comments and site.staticman.repository and site.staticman.branch %}
129
+ <!-- Staticman -->
130
+ <link rel="stylesheet" href="{{ "/css/staticman.css" | relative_url }}" />
109
131
  {% endif %}
110
132
 
111
133
  </head>