beautiful-jekyll-theme 4.1.0 → 6.0.1
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.
- checksums.yaml +4 -4
- data/404.html +1 -1
- data/LICENSE +1 -1
- data/README.md +96 -132
- data/_data/ui-text.yml +1 -1
- data/_includes/cloudflare_analytics.html +8 -0
- data/_includes/commentbox.html +7 -0
- data/_includes/comments.html +4 -2
- data/_includes/footer-scripts.html +6 -0
- data/_includes/footer.html +16 -7
- data/_includes/giscus-comment.html +16 -0
- data/_includes/google_analytics.html +12 -0
- data/_includes/head.html +67 -78
- data/_includes/header.html +42 -30
- data/_includes/nav.html +21 -5
- data/_includes/readtime.html +2 -2
- data/_includes/search.html +39 -0
- data/_includes/social-networks-links.html +81 -5
- data/_includes/social-share.html +9 -1
- data/_includes/staticman-comments.html +1 -1
- data/_includes/utterances-comment.html +1 -1
- data/_layouts/base.html +16 -16
- data/_layouts/default.html +17 -1
- data/_layouts/home.html +60 -35
- data/_layouts/minimal.html +20 -4
- data/_layouts/page.html +19 -2
- data/_layouts/post.html +21 -9
- data/assets/css/{main-minimal.css → beautifuljekyll-minimal.css} +1 -1
- data/assets/css/{main.css → beautifuljekyll.css} +334 -142
- data/assets/img/install-steps.gif +0 -0
- data/assets/js/{main.js → beautifuljekyll.js} +57 -14
- data/assets/js/staticman.js +39 -28
- data/feed.xml +6 -5
- data/staticman.yml +1 -1
- data/tags.html +1 -1
- metadata +43 -12
- data/assets/js/jquery-3.4.1.min.js +0 -2
data/_layouts/home.html
CHANGED
@@ -6,25 +6,12 @@ layout: page
|
|
6
6
|
|
7
7
|
{% assign posts = paginator.posts | default: site.posts %}
|
8
8
|
|
9
|
-
|
9
|
+
<!-- role="list" needed so that `list-style: none` in Safari doesn't remove the list semantics -->
|
10
|
+
<ul class="posts-list list-unstyled" role="list">
|
10
11
|
{% for post in posts %}
|
11
|
-
<
|
12
|
-
<
|
13
|
-
<h2 class="post-title">{{ post.title }}</h2>
|
12
|
+
<li class="post-preview">
|
13
|
+
<article>
|
14
14
|
|
15
|
-
{% if post.subtitle %}
|
16
|
-
<h3 class="post-subtitle">
|
17
|
-
{{ post.subtitle }}
|
18
|
-
</h3>
|
19
|
-
{% endif %}
|
20
|
-
</a>
|
21
|
-
|
22
|
-
<p class="post-meta">
|
23
|
-
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
|
24
|
-
Posted on {{ post.date | date: date_format }}
|
25
|
-
</p>
|
26
|
-
|
27
|
-
<div class="post-entry-container">
|
28
15
|
{%- capture thumbnail -%}
|
29
16
|
{% if post.thumbnail-img %}
|
30
17
|
{{ post.thumbnail-img }}
|
@@ -38,39 +25,77 @@ layout: page
|
|
38
25
|
{% endif %}
|
39
26
|
{% endcapture %}
|
40
27
|
{% assign thumbnail=thumbnail | strip %}
|
28
|
+
|
29
|
+
{% if site.feed_show_excerpt == false %}
|
41
30
|
{% if thumbnail != "" %}
|
42
|
-
<div class="post-image">
|
43
|
-
<a href="{{ post.url | absolute_url }}">
|
44
|
-
<img src="{{ thumbnail | absolute_url }}">
|
31
|
+
<div class="post-image post-image-normal">
|
32
|
+
<a href="{{ post.url | absolute_url }}" aria-label="Thumbnail">
|
33
|
+
<img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail">
|
45
34
|
</a>
|
46
35
|
</div>
|
47
36
|
{% endif %}
|
37
|
+
{% endif %}
|
38
|
+
|
39
|
+
<a href="{{ post.url | absolute_url }}">
|
40
|
+
<h2 class="post-title">{{ post.title | strip_html }}</h2>
|
41
|
+
|
42
|
+
{% if post.subtitle %}
|
43
|
+
<h3 class="post-subtitle">
|
44
|
+
{{ post.subtitle | strip_html }}
|
45
|
+
</h3>
|
46
|
+
{% endif %}
|
47
|
+
</a>
|
48
|
+
|
49
|
+
<p class="post-meta">
|
50
|
+
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
|
51
|
+
Posted on {{ post.date | date: date_format }}
|
52
|
+
</p>
|
53
|
+
|
54
|
+
{% if thumbnail != "" %}
|
55
|
+
<div class="post-image post-image-small">
|
56
|
+
<a href="{{ post.url | absolute_url }}" aria-label="Thumbnail">
|
57
|
+
<img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail">
|
58
|
+
</a>
|
59
|
+
</div>
|
60
|
+
{% endif %}
|
61
|
+
|
62
|
+
{% unless site.feed_show_excerpt == false %}
|
63
|
+
{% if thumbnail != "" %}
|
64
|
+
<div class="post-image post-image-short">
|
65
|
+
<a href="{{ post.url | absolute_url }}" aria-label="Thumbnail">
|
66
|
+
<img src="{{ thumbnail | absolute_url }}" alt="Post thumbnail">
|
67
|
+
</a>
|
68
|
+
</div>
|
69
|
+
{% endif %}
|
70
|
+
|
48
71
|
<div class="post-entry">
|
49
72
|
{% assign excerpt_length = site.excerpt_length | default: 50 %}
|
50
|
-
{{ post.excerpt | strip_html |
|
73
|
+
{{ post.excerpt | strip_html | truncatewords: excerpt_length }}
|
51
74
|
{% assign excerpt_word_count = post.excerpt | number_of_words %}
|
52
75
|
{% if post.content != post.excerpt or excerpt_word_count > excerpt_length %}
|
53
76
|
<a href="{{ post.url | absolute_url }}" class="post-read-more">[Read More]</a>
|
54
77
|
{% endif %}
|
55
78
|
</div>
|
56
|
-
|
79
|
+
{% endunless %}
|
57
80
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
81
|
+
{% if site.feed_show_tags != false and post.tags.size > 0 %}
|
82
|
+
<div class="blog-tags">
|
83
|
+
<span>Tags:</span>
|
84
|
+
<!-- role="list" needed so that `list-style: none` in Safari doesn't remove the list semantics -->
|
85
|
+
<ul class="d-inline list-inline" role="list">
|
86
|
+
{% for tag in post.tags %}
|
87
|
+
<li class="list-inline-item">
|
88
|
+
<a href="{{ '/tags' | absolute_url }}#{{- tag -}}">{{- tag -}}</a>
|
89
|
+
</li>
|
90
|
+
{% endfor %}
|
91
|
+
</ul>
|
92
|
+
</div>
|
67
93
|
{% endif %}
|
68
|
-
</div>
|
69
|
-
{% endif %}
|
70
94
|
|
71
|
-
|
95
|
+
</article>
|
96
|
+
</li>
|
72
97
|
{% endfor %}
|
73
|
-
</
|
98
|
+
</ul>
|
74
99
|
|
75
100
|
{% if paginator.total_pages > 1 %}
|
76
101
|
<ul class="pagination main-pager">
|
data/_layouts/minimal.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
---
|
2
2
|
common-css:
|
3
|
-
- "/assets/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.
|
9
|
-
sri: "sha256-
|
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 %}
|
data/_layouts/page.html
CHANGED
@@ -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>
|
data/_layouts/post.html
CHANGED
@@ -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
|
-
|
46
|
-
|
47
|
-
|
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
|
|
@@ -55,12 +67,12 @@ layout: base
|
|
55
67
|
<ul class="pagination blog-pager">
|
56
68
|
{% if page.previous.url %}
|
57
69
|
<li class="page-item previous">
|
58
|
-
<a class="page-link" href="{{ page.previous.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">← Previous Post</a>
|
70
|
+
<a class="page-link" href="{{ page.previous.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title | strip_html | xml_escape}}">← Previous Post</a>
|
59
71
|
</li>
|
60
72
|
{% endif %}
|
61
73
|
{% if page.next.url %}
|
62
74
|
<li class="page-item next">
|
63
|
-
<a class="page-link" href="{{ page.next.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post →</a>
|
75
|
+
<a class="page-link" href="{{ page.next.url | relative_url }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title | strip_html | xml_escape}}">Next Post →</a>
|
64
76
|
</li>
|
65
77
|
{% endif %}
|
66
78
|
</ul>
|