beautiful-jekyll-theme 4.1.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,21 +28,27 @@
28
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
- {% if page.subtitle %}
32
- {% if include.type == "page" %}
33
- <hr class="small">
34
- <span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
35
- {% else %}
36
- <h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
37
- {% endif %}
38
- {% endif %}
39
-
40
- {% if include.type == "post" %}
41
- <span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
42
- {% if page.readtime %}
43
- {% include readtime.html %}
31
+ {% if page.subtitle %}
32
+ {% if include.type == "page" %}
33
+ <hr class="small">
34
+ <span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
35
+ {% else %}
36
+ <h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
37
+ {% endif %}
38
+ {% endif %}
39
+
40
+ {% if include.type == "post" %}
41
+ <span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
42
+ {% if page.last-updated %}
43
+ <span class="post-meta">
44
+ <span class="d-none d-md-inline middot">&middot;</span>
45
+ Last updated {{ page.last-updated | date: date_format }}
46
+ </span>
47
+ {% endif %}
48
+ {% if page.readtime %}
49
+ {% include readtime.html %}
50
+ {% endif %}
44
51
  {% endif %}
45
- {% endif %}
46
52
  </div>
47
53
  </div>
48
54
  </div>
@@ -56,21 +62,27 @@
56
62
  <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
57
63
  <div class="{{ include.type }}-heading">
58
64
  <h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
59
- {% if page.subtitle %}
60
- {% if include.type == "page" %}
61
- <hr class="small">
62
- <span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
63
- {% else %}
64
- <h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
65
- {% endif %}
66
- {% endif %}
67
-
68
- {% if include.type == "post" %}
69
- <span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
70
- {% if page.readtime %}
71
- {% include readtime.html %}
65
+ {% if page.subtitle %}
66
+ {% if include.type == "page" %}
67
+ <hr class="small">
68
+ <span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
69
+ {% else %}
70
+ <h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
71
+ {% endif %}
72
+ {% endif %}
73
+
74
+ {% if include.type == "post" %}
75
+ <span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
76
+ {% if page.last-updated %}
77
+ <span class="post-meta">
78
+ <span class="d-none d-md-inline middot">&middot;</span>
79
+ Last updated {{ page.last-updated | date: date_format }}
80
+ </span>
81
+ {% endif %}
82
+ {% if page.readtime %}
83
+ {% include readtime.html %}
84
+ {% endif %}
72
85
  {% endif %}
73
- {% endif %}
74
86
  </div>
75
87
  </div>
76
88
  </div>
@@ -1,4 +1,4 @@
1
- <nav class="navbar navbar-expand-md navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% endif %}">
1
+ <nav class="navbar navbar-expand-md navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% else %}top-nav-regular{% endif %}">
2
2
 
3
3
  {%- if site.title-img -%}
4
4
  <a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img }}"/></a>
@@ -33,11 +33,11 @@
33
33
  </ul>
34
34
  </div>
35
35
 
36
- {% if site.avatar and (layout.show-avatar or page.show-avatar) %}
36
+ {% if site.avatar and page.show-avatar != false %}
37
37
  <div class="avatar-container">
38
38
  <div class="avatar-img-border">
39
39
  <a href="{{ '' | absolute_url }}">
40
- <img alt="Navbar avatar" class="avatar-img" src="{{ site.avatar | relative_url }}" />
40
+ <img alt="Navigation bar avatar" class="avatar-img" src="{{ site.avatar | relative_url }}" />
41
41
  </a>
42
42
  </div>
43
43
  </div>
@@ -6,10 +6,10 @@
6
6
  {% assign number = finalReadTime | round %}
7
7
  {% if number >= 1 %}
8
8
  {% assign yesReadTime = number | append: " minute read" %}
9
- <span class="reader-time post-meta"><span class="d-none d-md-inline middot">&middot;</span> {{ yesReadTime }}</span>
9
+ <span class="post-meta"><span class="d-none d-md-inline middot">&middot;</span> {{ yesReadTime }}</span>
10
10
  {% elsif number < 1 %}
11
11
  {% assign minReadTime = '&lt; 1 minute read' %}
12
- <span class="reader-time post-meta"><span class="d-none d-md-inline middot">&middot;</span> {{ minReadTime }}</span>
12
+ <span class="post-meta"><span class="d-none d-md-inline middot">&middot;</span> {{ minReadTime }}</span>
13
13
  {% else %}
14
14
  {% assign nilReadTime = number | replace:'0',' ' %}
15
15
  {{ nilReadTime }}
@@ -1,6 +1,6 @@
1
1
  <ul class="list-inline text-center footer-links">
2
2
 
3
- {%- if site.social-network-links.rss -%}
3
+ {%- if site.rss-description -%}
4
4
  <li class="list-inline-item">
5
5
  <a href="{{ '/feed.xml' | relative_url }}" title="RSS">
6
6
  <span class="fa-stack fa-lg" aria-hidden="true">
@@ -59,7 +59,7 @@
59
59
  </a>
60
60
  </li>
61
61
  {%- endif -%}
62
-
62
+
63
63
  {%- if site.social-network-links.github -%}
64
64
  <li class="list-inline-item">
65
65
  <a href="https://github.com/{{ site.social-network-links.github }}" title="GitHub">
@@ -75,7 +75,7 @@
75
75
  <!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
76
76
  <script>
77
77
  if (typeof jQuery == 'undefined') {
78
- document.write('<script src="{{ "/assets/js/jquery-3.4.1.min.js" | relative_url }}"></scr' + 'ipt>');
78
+ document.write('<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></scr' + 'ipt>');
79
79
  }
80
80
  </script>
81
81
  <script src="{{ "/assets/js/staticman.js" | relative_url }}"></script>
@@ -4,7 +4,7 @@
4
4
  repo="{{ site.utterances.repository }}"
5
5
  issue-term="{{ site.utterances.issue-term }}"
6
6
  theme="{{ site.utterances.theme}}"
7
- label="{{ site.utterances.label}}"
7
+ label="{{ site.utterances.label}}"
8
8
  crossorigin="anonymous"
9
9
  async>
10
10
  </script>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  common-css:
3
3
  - "/assets/css/bootstrap-social.css"
4
- - "/assets/css/main.css"
4
+ - "/assets/css/beautifuljekyll.css"
5
5
  common-ext-css:
6
6
  - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
7
7
  sri: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
@@ -9,32 +9,32 @@ common-ext-css:
9
9
  - "https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic"
10
10
  - "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
11
11
  common-ext-js:
12
- - href: "https://code.jquery.com/jquery-3.4.1.min.js"
13
- sri: "sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
12
+ - href: "https://code.jquery.com/jquery-3.5.1.slim.min.js"
13
+ sri: "sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs="
14
14
  - href: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
15
15
  sri: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
16
16
  - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
17
17
  sri: "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
18
18
  common-js:
19
- - "/assets/js/main.js"
19
+ - "/assets/js/beautifuljekyll.js"
20
20
  ---
21
21
 
22
22
  <!DOCTYPE html>
23
23
  <html lang="{{ page.language | default: site.language | default: 'en' }}">
24
- <!-- Beautiful Jekyll | MIT license | Copyright Dean Attali 2020 -->
25
- {% include head.html %}
24
+ <!-- Beautiful Jekyll 5.0.0 | Copyright Dean Attali 2020 -->
25
+ {% include head.html %}
26
26
 
27
- <body>
27
+ <body>
28
28
 
29
- {% include gtm_body.html %}
30
-
31
- {% include nav.html %}
29
+ {% include gtm_body.html %}
32
30
 
33
- {{ content }}
31
+ {% include nav.html %}
34
32
 
35
- {% include footer.html %}
36
-
37
- {% include footer-scripts.html %}
38
-
39
- </body>
33
+ {{ content }}
34
+
35
+ {% include footer.html %}
36
+
37
+ {% include footer-scripts.html %}
38
+
39
+ </body>
40
40
  </html>
@@ -4,6 +4,22 @@ layout: base
4
4
 
5
5
  <div class="intro-header"></div>
6
6
 
7
- <div role="main" class="container-md">
7
+ <div role="main" class="{% if page.full-width %} container-fluid {% else %} container-md {% endif %}">
8
+ {% if page.before-content %}
9
+ <div class="before-content">
10
+ {% for file in page.before-content %}
11
+ {% include {{ file }} %}
12
+ {% endfor %}
13
+ </div>
14
+ {% endif %}
15
+
8
16
  {{ content }}
17
+
18
+ {% if page.after-content %}
19
+ <div class="after-content">
20
+ {% for file in page.after-content %}
21
+ {% include {{ file }} %}
22
+ {% endfor %}
23
+ </div>
24
+ {% endif %}
9
25
  </div>
@@ -9,6 +9,31 @@ layout: page
9
9
  <div class="posts-list">
10
10
  {% for post in posts %}
11
11
  <article class="post-preview">
12
+
13
+ {%- capture thumbnail -%}
14
+ {% if post.thumbnail-img %}
15
+ {{ post.thumbnail-img }}
16
+ {% elsif post.cover-img %}
17
+ {% if post.cover-img.first %}
18
+ {{ post.cover-img[0].first.first }}
19
+ {% else %}
20
+ {{ post.cover-img }}
21
+ {% endif %}
22
+ {% else %}
23
+ {% endif %}
24
+ {% endcapture %}
25
+ {% assign thumbnail=thumbnail | strip %}
26
+
27
+ {% if site.feed_show_excerpt == false %}
28
+ {% if thumbnail != "" %}
29
+ <div class="post-image post-image-normal">
30
+ <a href="{{ post.url | absolute_url }}" aria-label="Thumbnail">
31
+ <img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail">
32
+ </a>
33
+ </div>
34
+ {% endif %}
35
+ {% endif %}
36
+
12
37
  <a href="{{ post.url | absolute_url }}">
13
38
  <h2 class="post-title">{{ post.title }}</h2>
14
39
 
@@ -24,47 +49,39 @@ layout: page
24
49
  Posted on {{ post.date | date: date_format }}
25
50
  </p>
26
51
 
27
- <div class="post-entry-container">
28
- {%- capture thumbnail -%}
29
- {% if post.thumbnail-img %}
30
- {{ post.thumbnail-img }}
31
- {% elsif post.cover-img %}
32
- {% if post.cover-img.first %}
33
- {{ post.cover-img[0].first.first }}
34
- {% else %}
35
- {{ post.cover-img }}
36
- {% endif %}
37
- {% else %}
38
- {% endif %}
39
- {% endcapture %}
40
- {% assign thumbnail=thumbnail | strip %}
41
- {% if thumbnail != "" %}
42
- <div class="post-image">
43
- <a href="{{ post.url | absolute_url }}">
44
- <img src="{{ thumbnail | absolute_url }}">
45
- </a>
46
- </div>
52
+ {% if thumbnail != "" %}
53
+ <div class="post-image post-image-small">
54
+ <a href="{{ post.url | absolute_url }}" aria-label="Thumbnail">
55
+ <img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail">
56
+ </a>
57
+ </div>
58
+ {% endif %}
59
+
60
+ {% unless site.feed_show_excerpt == false %}
61
+ {% if thumbnail != "" %}
62
+ <div class="post-image post-image-short">
63
+ <a href="{{ post.url | absolute_url }}" aria-label="Thumbnail">
64
+ <img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail">
65
+ </a>
66
+ </div>
67
+ {% endif %}
68
+
69
+ <div class="post-entry">
70
+ {% assign excerpt_length = site.excerpt_length | default: 50 %}
71
+ {{ post.excerpt | strip_html | xml_escape | truncatewords: excerpt_length }}
72
+ {% assign excerpt_word_count = post.excerpt | number_of_words %}
73
+ {% if post.content != post.excerpt or excerpt_word_count > excerpt_length %}
74
+ <a href="{{ post.url | absolute_url }}" class="post-read-more">[Read&nbsp;More]</a>
47
75
  {% endif %}
48
- <div class="post-entry">
49
- {% assign excerpt_length = site.excerpt_length | default: 50 %}
50
- {{ post.excerpt | strip_html | xml_escape | truncatewords: excerpt_length }}
51
- {% assign excerpt_word_count = post.excerpt | number_of_words %}
52
- {% if post.content != post.excerpt or excerpt_word_count > excerpt_length %}
53
- <a href="{{ post.url | absolute_url }}" class="post-read-more">[Read&nbsp;More]</a>
54
- {% endif %}
55
- </div>
56
76
  </div>
77
+ {% endunless %}
57
78
 
58
- {% if post.tags.size > 0 %}
79
+ {% if site.feed_show_tags != false and post.tags.size > 0 %}
59
80
  <div class="blog-tags">
60
- Tags:
61
- {% if site.link-tags %}
81
+ <span>Tags:</span>
62
82
  {% for tag in post.tags %}
63
83
  <a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a>
64
84
  {% endfor %}
65
- {% else %}
66
- {{ post.tags | join: ", " }}
67
- {% endif %}
68
85
  </div>
69
86
  {% endif %}
70
87
 
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  common-css:
3
- - "/assets/css/main-minimal.css"
3
+ - "/assets/css/beautifuljekyll-minimal.css"
4
4
  common-ext-css:
5
5
  - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
6
6
  sri: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
7
7
  common-ext-js:
8
- - href: "https://code.jquery.com/jquery-3.4.1.min.js"
9
- sri: "sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
8
+ - href: "https://code.jquery.com/jquery-3.5.1.slim.min.js"
9
+ sri: "sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs="
10
10
  - href: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
11
11
  sri: "sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
12
12
  - href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
@@ -20,8 +20,24 @@ common-ext-js:
20
20
 
21
21
  <body>
22
22
 
23
- <div role="main" class="container-md main-content">
23
+ <div role="main" class="{% if page.full-width %} container-fluid {% else %} container-md {% endif %} main-content">
24
+ {% if page.before-content %}
25
+ <div class="before-content">
26
+ {% for file in page.before-content %}
27
+ {% include {{ file }} %}
28
+ {% endfor %}
29
+ </div>
30
+ {% endif %}
31
+
24
32
  {{ content }}
33
+
34
+ {% if page.after-content %}
35
+ <div class="after-content">
36
+ {% for file in page.after-content %}
37
+ {% include {{ file }} %}
38
+ {% endfor %}
39
+ </div>
40
+ {% endif %}
25
41
  </div>
26
42
 
27
43
  {% include footer-minimal.html %}
@@ -4,10 +4,27 @@ layout: base
4
4
 
5
5
  {% include header.html type="page" %}
6
6
 
7
- <div class="container-md" role="main">
7
+ <div class="{% if page.full-width %} container-fluid {% else %} container-md {% endif %}" role="main">
8
8
  <div class="row">
9
- <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
9
+ <div class="{% if page.full-width %} col {% else %} col-xl-8 offset-xl-2 col-lg-10 offset-lg-1 {% endif %}">
10
+ {% if page.before-content %}
11
+ <div class="before-content">
12
+ {% for file in page.before-content %}
13
+ {% include {{ file }} %}
14
+ {% endfor %}
15
+ </div>
16
+ {% endif %}
17
+
10
18
  {{ content }}
19
+
20
+ {% if page.after-content %}
21
+ <div class="after-content">
22
+ {% for file in page.after-content %}
23
+ {% include {{ file }} %}
24
+ {% endfor %}
25
+ </div>
26
+ {% endif %}
27
+
11
28
  {% include comments.html %}
12
29
  </div>
13
30
  </div>
@@ -4,9 +4,9 @@ layout: base
4
4
 
5
5
  {% include header.html type="post" %}
6
6
 
7
- <div class="container-md">
7
+ <div class="{% if page.full-width %} container-fluid {% else %} container-md {% endif %}">
8
8
  <div class="row">
9
- <div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
9
+ <div class="{% if page.full-width %} col {% else %} col-xl-8 offset-xl-2 col-lg-10 offset-lg-1 {% endif %}">
10
10
 
11
11
  {% if page.gh-repo %}
12
12
  {% assign gh_split = page.gh-repo | split:'/' %}
@@ -31,20 +31,32 @@ layout: base
31
31
  </div>
32
32
  {% endif %}
33
33
 
34
+ {% if page.before-content %}
35
+ <div class="before-content">
36
+ {% for file in page.before-content %}
37
+ {% include {{ file }} %}
38
+ {% endfor %}
39
+ </div>
40
+ {% endif %}
41
+
34
42
  <article role="main" class="blog-post">
35
43
  {{ content }}
36
44
  </article>
37
45
 
38
46
  {% if page.tags.size > 0 %}
39
47
  <div class="blog-tags">
40
- Tags:
41
- {% if site.link-tags %}
48
+ <span>Tags:</span>
42
49
  {% for tag in page.tags %}
43
50
  <a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a>
44
51
  {% endfor %}
45
- {% else %}
46
- {{ page.tags | join: ", " }}
47
- {% endif %}
52
+ </div>
53
+ {% endif %}
54
+
55
+ {% if page.after-content %}
56
+ <div class="after-content">
57
+ {% for file in page.after-content %}
58
+ {% include {{ file }} %}
59
+ {% endfor %}
48
60
  </div>
49
61
  {% endif %}
50
62