beautiful-jekyll-theme 2.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +2 -11
  3. data/README.md +103 -129
  4. data/_includes/disqus.html +12 -12
  5. data/_includes/ext-css.html +2 -2
  6. data/_includes/fb-comment.html +12 -10
  7. data/_includes/footer-minimal.html +11 -11
  8. data/_includes/footer-scripts.html +2 -2
  9. data/_includes/footer.html +12 -7
  10. data/_includes/google_analytics.html +8 -8
  11. data/_includes/gtag.html +2 -3
  12. data/_includes/gtm_body.html +3 -4
  13. data/_includes/gtm_head.html +9 -7
  14. data/_includes/head.html +54 -44
  15. data/_includes/header.html +12 -12
  16. data/_includes/nav.html +33 -44
  17. data/_includes/readtime.html +10 -10
  18. data/_includes/social-networks-links.html +89 -29
  19. data/_includes/social-share.html +8 -3
  20. data/_includes/staticman-comments.html +9 -9
  21. data/_layouts/base.html +13 -8
  22. data/_layouts/default.html +1 -1
  23. data/_layouts/home.html +25 -12
  24. data/_layouts/minimal.html +11 -5
  25. data/_layouts/page.html +2 -2
  26. data/_layouts/post.html +8 -8
  27. data/assets/css/main-minimal.css +2 -2
  28. data/assets/css/main.css +349 -227
  29. data/assets/css/staticman.css +2 -2
  30. data/assets/img/thumb.png +0 -0
  31. data/assets/js/jquery-3.4.1.min.js +2 -0
  32. data/assets/js/main.js +58 -99
  33. data/assets/js/staticman.js +13 -13
  34. metadata +8 -14
  35. data/assets/css/bootstrap-theme.css +0 -476
  36. data/assets/css/bootstrap-theme.css.map +0 -1
  37. data/assets/css/bootstrap-theme.min.css +0 -5
  38. data/assets/css/bootstrap.css +0 -6566
  39. data/assets/css/bootstrap.css.map +0 -1
  40. data/assets/css/bootstrap.min.css +0 -5
  41. data/assets/css/normalize.css +0 -427
  42. data/assets/js/bootstrap.js +0 -2306
  43. data/assets/js/bootstrap.min.js +0 -7
  44. data/assets/js/jquery-1.11.2.min.js +0 -4
@@ -1,18 +1,18 @@
1
1
  <footer class="footer-min">
2
2
  <div class="text-muted">
3
- {% if site.author %}
4
- {{ site.author }}
5
- &nbsp;&nbsp;&bull;&nbsp;&nbsp;
6
- {% endif %}
7
- {% if page.date %}
8
- {{ page.date }}
9
- {% else %}
10
- {{ site.time | date: '%Y' }}
11
- {% endif %}
3
+ {% if site.author %}
4
+ {{ site.author }}
5
+ &nbsp;&nbsp;&bull;&nbsp;&nbsp;
6
+ {% endif %}
7
+ {% if page.date %}
8
+ {{ page.date }}
9
+ {% else %}
10
+ {{ site.time | date: '%Y' }}
11
+ {% endif %}
12
12
 
13
13
  {% if site.url-pretty %}
14
- &nbsp;&nbsp;&bull;&nbsp;&nbsp;
15
- <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
14
+ &nbsp;&nbsp;&bull;&nbsp;&nbsp;
15
+ <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
16
16
  {% endif %}
17
17
  </div>
18
18
  </footer>
@@ -9,9 +9,9 @@
9
9
  <!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
10
10
  {% if js contains 'jquery' %}
11
11
  <script>
12
- if (typeof jQuery == 'undefined') {
12
+ if (typeof jQuery == 'undefined') {
13
13
  document.write('<script src="{{ js | relative_url }}"></scr' + 'ipt>');
14
- }
14
+ }
15
15
  </script>
16
16
  {% else %}
17
17
  <script src="{{ js | relative_url }}"></script>
@@ -1,18 +1,23 @@
1
1
  <footer>
2
- <div class="container beautiful-jekyll-footer">
2
+ <div class="container-md beautiful-jekyll-footer">
3
3
  <div class="row">
4
- <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
4
+ <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
5
5
  {% include social-networks-links.html %}
6
+ {% if page.footer-extra %}
7
+ <div class="footer-custom-content">
8
+ {% include {{ page.footer-extra }} %}
9
+ </div>
10
+ {% endif %}
6
11
  <p class="copyright text-muted">
7
12
  {% if site.author %}
8
- {{ site.author }}
9
- &nbsp;&bull;&nbsp;
13
+ {{ site.author }}
14
+ &nbsp;&bull;&nbsp;
10
15
  {% endif %}
11
16
  {{ site.time | date: '%Y' }}
12
17
 
13
18
  {% if site.url-pretty %}
14
- &nbsp;&bull;&nbsp;
15
- <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
19
+ &nbsp;&bull;&nbsp;
20
+ <a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
16
21
  {% endif %}
17
22
 
18
23
  {% if site.matomo %}
@@ -25,7 +30,7 @@
25
30
  <!-- Please don't remove this, keep my open source work credited :) -->
26
31
  <p class="theme-by text-muted">
27
32
  Theme by
28
- <a href="https://deanattali.com/beautiful-jekyll/">beautiful-jekyll</a>
33
+ <a href="https://beautifuljekyll.com">beautiful-jekyll</a>
29
34
  </p>
30
35
  </div>
31
36
  </div>
@@ -1,14 +1,14 @@
1
1
  {% if site.google_analytics %}
2
2
  <!-- Google Analytics -->
3
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');
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
12
  </script>
13
13
  <!-- End Google Analytics -->
14
14
  {% endif %}
@@ -1,11 +1,10 @@
1
1
  {% if site.gtag %}
2
2
  <!-- Global site tag (gtag.js) - Google Analytics -->
3
3
  <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.gtag }}"></script>
4
- <script>
5
- window.dataLayer = window.dataLayer || [];
4
+ <script>
5
+ window.dataLayer = window.dataLayer || [];
6
6
  function gtag(){dataLayer.push(arguments);}
7
7
  gtag('js', new Date());
8
-
9
8
  gtag('config', '{{ site.gtag }}');
10
9
  </script>
11
10
  {% endif %}
@@ -1,6 +1,5 @@
1
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) -->
2
+ <!-- Google Tag Manager (noscript) -->
3
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ site.gtm }}" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
4
+ <!-- End Google Tag Manager (noscript) -->
6
5
  {% endif %}
@@ -1,9 +1,11 @@
1
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 -->
2
+ <!-- Google Tag Manager -->
3
+ <script>
4
+ (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
5
+ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
6
+ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
7
+ 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
8
+ })(window,document,'script','dataLayer','{{ site.gtm }}');
9
+ </script>
10
+ <!-- End Google Tag Manager -->
9
11
  {% endif %}
@@ -1,19 +1,18 @@
1
1
  <head>
2
- <meta charset="utf-8" />
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, viewport-fit=cover">
2
+ <meta charset="utf-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
5
4
 
6
5
  <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
6
 
8
7
  {% if site.author %}
9
- <meta name="author" content="{{ site.author }}" />
8
+ <meta name="author" content="{{ site.author }}">
10
9
  {% endif %}
11
10
 
12
11
  {% if page.subtitle %}
13
12
  <meta name="description" content="{{ page.subtitle }}">
14
13
  {% endif %}
15
14
 
16
- <link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}" />
15
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}">
17
16
 
18
17
  {% include gtag.html %}
19
18
  {% include gtm_head.html %}
@@ -27,13 +26,7 @@
27
26
 
28
27
  {% if layout.common-css %}
29
28
  {% for css in layout.common-css %}
30
- <link rel="stylesheet" href="{{ css | relative_url }}" />
31
- {% endfor %}
32
- {% endif %}
33
-
34
- {% if layout.common-googlefonts %}
35
- {% for font in layout.common-googlefonts %}
36
- <link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
29
+ <link rel="stylesheet" href="{{ css | relative_url }}">
37
30
  {% endfor %}
38
31
  {% endif %}
39
32
 
@@ -45,27 +38,21 @@
45
38
 
46
39
  {% if page.css %}
47
40
  {% for css in page.css %}
48
- <link rel="stylesheet" href="{{ css | relative_url }}" />
49
- {% endfor %}
50
- {% endif %}
51
-
52
- {% if page.googlefonts %}
53
- {% for font in page.googlefonts %}
54
- <link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
41
+ <link rel="stylesheet" href="{{ css | relative_url }}">
55
42
  {% endfor %}
56
43
  {% endif %}
57
44
 
58
- <!-- Facebook OpenGraph tags -->
45
+ <!-- Facebook OpenGraph tags -->
59
46
  {% if site.fb_app_id %}
60
- <meta property="fb:app_id" content="{{ site.fb_app_id }}" />
47
+ <meta property="fb:app_id" content="{{ site.fb_app_id }}">
61
48
  {% endif %}
62
49
 
63
50
  {% if page.meta-title %}
64
- <meta property="og:title" content="{{ page.meta-title }}" />
51
+ <meta property="og:title" content="{{ page.meta-title }}">
65
52
  {% elsif page.title %}
66
- <meta property="og:title" content="{{ page.title }}" />
53
+ <meta property="og:title" content="{{ page.title }}">
67
54
  {% elsif site.title %}
68
- <meta property="og:title" content="{{ site.title }}" />
55
+ <meta property="og:title" content="{{ site.title }}">
69
56
  {% endif %}
70
57
 
71
58
  {% if page.meta-description %}
@@ -77,34 +64,59 @@
77
64
  {% endif %}
78
65
 
79
66
 
80
- <meta property="og:type" content="website" />
67
+ {% if page.id %}
68
+ <meta property="og:type" content="article">
69
+ <meta property="og:article:author" content="{{ site.author }}">
70
+ <meta property="og:article:published_time" content="{{ page.date | date_to_xmlschema }}">
71
+ {% else %}
72
+ <meta property="og:type" content="website">
73
+ {% endif %}
81
74
 
82
75
  {% if page.id %}
83
- <meta property="og:url" content="{{ page.url | absolute_url }}" />
84
- <link rel="canonical" href="{{ page.url | absolute_url }}" />
76
+ <meta property="og:url" content="{{ page.url | absolute_url }}">
77
+ <link rel="canonical" href="{{ page.url | absolute_url }}">
85
78
  {% else %}
86
- <meta property="og:url" content="{{ page.url | absolute_url | strip_index }}" />
87
- <link rel="canonical" href="{{ page.url | absolute_url | strip_index }}" />
79
+ <meta property="og:url" content="{{ page.url | absolute_url | strip_index }}">
80
+ <link rel="canonical" href="{{ page.url | absolute_url | strip_index }}">
88
81
  {% endif %}
89
82
 
90
- {% if page.share-img %}
91
- <meta property="og:image" content="{{ page.share-img }}" />
92
- {% elsif site.avatar %}
93
- <meta property="og:image" content="{{ site.avatar | absolute_url }}" />
83
+ {%- capture shareimg -%}
84
+ {% if page.share-img %}
85
+ {{ page.share-img }}
86
+ {% elsif page.cover-img %}
87
+ {% if page.cover-img.first %}
88
+ {{ page.cover-img[0].first.first }}
89
+ {% else %}
90
+ {{ page.cover-img }}
91
+ {% endif %}
92
+ {% elsif page.thumbnail-img %}
93
+ {{ page.thumbnail-img }}
94
+ {% elsif site.avatar %}
95
+ {{ site.avatar }}
96
+ {% endif %}
97
+ {% endcapture %}
98
+ {% assign shareimg=shareimg | strip %}
99
+
100
+ {% if shareimg != "" %}
101
+ <meta property="og:image" content="{{ shareimg | absolute_url }}">
94
102
  {% endif %}
95
103
 
96
104
 
97
105
  <!-- Twitter summary cards -->
98
- <meta name="twitter:card" content="summary" />
99
- <meta name="twitter:site" content="@{{ site.social-network-links.twitter }}" />
100
- <meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}" />
106
+ {% if shareimg != "" and shareimg != site.avatar %}
107
+ <meta name="twitter:card" content="summary_large_image">
108
+ {% else %}
109
+ <meta name="twitter:card" content="summary">
110
+ {% endif %}
111
+ <meta name="twitter:site" content="@{{ site.social-network-links.twitter }}">
112
+ <meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}">
101
113
 
102
114
  {% if page.meta-title %}
103
- <meta name="twitter:title" content="{{ page.meta-title }}" />
115
+ <meta name="twitter:title" content="{{ page.meta-title }}">
104
116
  {% elsif page.title %}
105
- <meta name="twitter:title" content="{{ page.title }}" />
117
+ <meta name="twitter:title" content="{{ page.title }}">
106
118
  {% else %}
107
- <meta name="twitter:title" content="{{ site.title }}" />
119
+ <meta name="twitter:title" content="{{ site.title }}">
108
120
  {% endif %}
109
121
 
110
122
  {% if page.meta-description %}
@@ -115,10 +127,8 @@
115
127
  <meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
116
128
  {% endif %}
117
129
 
118
- {% if page.share-img %}
119
- <meta name="twitter:image" content="{{ page.share-img }}" />
120
- {% elsif site.avatar %}
121
- <meta name="twitter:image" content="{{ site.avatar | absolute_url }}" />
130
+ {% if shareimg != "" %}
131
+ <meta name="twitter:image" content="{{ shareimg | absolute_url }}">
122
132
  {% endif %}
123
133
 
124
134
  {% if site.matomo %}
@@ -127,7 +137,7 @@
127
137
 
128
138
  {% if page.comments and site.staticman.repository and site.staticman.branch %}
129
139
  <!-- Staticman -->
130
- <link rel="stylesheet" href="{{ "/css/staticman.css" | relative_url }}" />
140
+ <link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}">
131
141
  {% endif %}
132
142
 
133
143
  </head>
@@ -2,30 +2,30 @@
2
2
 
3
3
  {% assign date_format = site.date_format | default: "%B %-d, %Y" %}
4
4
 
5
- {% if page.bigimg or page.title %}
5
+ {% if page.cover-img or page.title %}
6
6
 
7
- {% if page.bigimg %}
8
- <div id="header-big-imgs" data-num-img={% if page.bigimg.first %}{{ page.bigimg.size }}{% else %}1{% endif %}
9
- {% for bigimg in page.bigimg %}
7
+ {% if page.cover-img %}
8
+ <div id="header-big-imgs" data-num-img={% if page.cover-img.first %}{{ page.cover-img.size }}{% else %}1{% endif %}
9
+ {% for bigimg in page.cover-img %}
10
10
  {% assign imgnum = forloop.index %}
11
11
  {% for imginfo in bigimg %}
12
12
  {% if imginfo[0] %}
13
- data-img-src-{{ imgnum }}="{{ imginfo[0] | relative_url }}"
13
+ data-img-src-{{ imgnum }}="{{ imginfo[0] | absolute_url }}"
14
14
  data-img-desc-{{ imgnum }}="{{ imginfo[1] }}"
15
15
  {% else %}
16
- data-img-src-{{ imgnum }}="{{ imginfo | relative_url }}"
16
+ data-img-src-{{ imgnum }}="{{ imginfo | absolute_url }}"
17
17
  {% endif %}
18
18
  {% endfor %}
19
19
  {% endfor %}
20
20
  ></div>
21
21
  {% endif %}
22
22
 
23
- <header class="header-section {% if page.bigimg %}has-img{% endif %}">
24
- {% if page.bigimg %}
23
+ <header class="header-section {% if page.cover-img %}has-img{% endif %}">
24
+ {% if page.cover-img %}
25
25
  <div class="big-img intro-header">
26
- <div class="container">
26
+ <div class="container-md">
27
27
  <div class="row">
28
- <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
28
+ <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
29
29
  <div class="{{ include.type }}-heading">
30
30
  <h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
31
31
  {% if page.subtitle %}
@@ -51,9 +51,9 @@
51
51
  </div>
52
52
  {% endif %}
53
53
  <div class="intro-header no-img">
54
- <div class="container">
54
+ <div class="container-md">
55
55
  <div class="row">
56
- <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
56
+ <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
57
57
  <div class="{{ include.type }}-heading">
58
58
  <h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
59
59
  {% if page.subtitle %}
@@ -1,57 +1,46 @@
1
- <nav class="navbar navbar-default navbar-fixed-top navbar-custom">
2
- <div class="container-fluid">
3
- <div class="navbar-header">
4
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
5
- <span class="sr-only">Toggle navigation</span>
6
- <span class="icon-bar"></span>
7
- <span class="icon-bar"></span>
8
- <span class="icon-bar"></span>
9
- </button>
10
- {%- if site.title-img -%}
11
- <a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img src="{{ site.title-img }}"/></a>
12
- {%- elsif site.title -%}
13
- <a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
14
- {%- endif -%}
15
- </div>
1
+ <nav class="navbar navbar-expand-md navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% endif %}">
2
+
3
+ {%- if site.title-img -%}
4
+ <a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img }}"/></a>
5
+ {%- elsif site.title -%}
6
+ <a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
7
+ {%- endif -%}
16
8
 
17
- <div class="collapse navbar-collapse" id="main-navbar">
18
- <ul class="nav navbar-nav navbar-right">
9
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar" aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
10
+ <span class="navbar-toggler-icon"></span>
11
+ </button>
12
+
13
+ <div class="collapse navbar-collapse" id="main-navbar">
14
+ <ul class="navbar-nav ml-auto">
19
15
  {%- for link in site.navbar-links -%}
20
16
  {%- if link[1].first %}
21
- <li class="navlinks-container">
22
- <a class="navlinks-parent" href="javascript:void(0)">{{ link[0] }}</a>
23
- <div class="navlinks-children">
17
+ <li class="nav-item dropdown">
18
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ link[0] }}</a>
19
+ <div class="dropdown-menu" aria-labelledby="navbarDropdown">
24
20
  {%- for childlink in link[1] -%}
25
- {%- for linkparts in childlink %}
26
- <a href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>
27
- {%- endfor -%}
21
+ {%- for linkparts in childlink %}
22
+ <a class="dropdown-item" href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>
23
+ {%- endfor -%}
28
24
  {%- endfor %}
29
25
  </div>
30
26
  </li>
31
27
  {% else %}
32
- <li><a href="{{ link[1] | relative_url }}">{{ link[0] }}</a></li>
28
+ <li class="nav-item">
29
+ <a class="nav-link" href="{{ link[1] | relative_url }}">{{ link[0] }}</a>
30
+ </li>
33
31
  {%- endif -%}
34
32
  {%- endfor -%}
35
- </ul>
36
- </div>
33
+ </ul>
34
+ </div>
37
35
 
38
- {% if page.image and (layout.show-avatar or page.show-avatar) %}
39
- <div class="avatar-container">
40
- <div class="avatar-img-border">
41
- <a href="{{ '' | absolute_url }}">
42
- <img class="avatar-img" src="{{ page.image | relative_url }}" />
43
- </a>
44
- </div>
45
- </div>
46
- {% elsif site.avatar and (layout.show-avatar or page.show-avatar) %}
47
- <div class="avatar-container">
48
- <div class="avatar-img-border">
49
- <a href="{{ '' | absolute_url }}">
50
- <img class="avatar-img" src="{{ site.avatar | relative_url }}" />
51
- </a>
52
- </div>
53
- </div>
54
- {% endif %}
36
+ {% if site.avatar and (layout.show-avatar or page.show-avatar) %}
37
+ <div class="avatar-container">
38
+ <div class="avatar-img-border">
39
+ <a href="{{ '' | absolute_url }}">
40
+ <img alt="Navbar avatar" class="avatar-img" src="{{ site.avatar | relative_url }}" />
41
+ </a>
42
+ </div>
43
+ </div>
44
+ {% endif %}
55
45
 
56
- </div>
57
46
  </nav>