jekyll-theme-endless 0.13.3 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +5 -5
- data/_data.yml +1 -1
- data/_includes/aside_more.html +1 -1
- data/_includes/aside_navigation.html +1 -1
- data/_includes/function_list-pages.html +1 -1
- data/_includes/function_post-in-list-long.html +2 -1
- data/_includes/function_post-in-list-short.html +1 -1
- data/_includes/function_show-prev-next-navigation.html +2 -2
- data/_includes/function_tag-cloud.html +4 -4
- data/_layouts/html.html +23 -3
- data/_layouts/page-minimal.html +1 -1
- data/_layouts/page-postlist.html +1 -1
- data/_layouts/page-tag-template.html +2 -2
- data/_layouts/page.html +1 -1
- data/_layouts/post.html +1 -1
- data/_sass/adoc-stem.scss +19 -0
- data/assets/css/main.scss +2 -1
- data/lib/jekyll-theme-endless/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d27d233219c7a772a86ff82b83d7b7bf33b49da821037e7567ef55a6601d669f
|
4
|
+
data.tar.gz: 185bbe4b4b9576520ad7efcd4c188016d16252f7b2800fe9d3c43ac0f5e6b5b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 851322bc67d541b746674de44a31f28d6edf782f671870da127253d43d0aae7d02746625bd77b54fe5642ae4baf9c2123c51607e9b4672d6b7f6642ab2d3584b
|
7
|
+
data.tar.gz: e00b97d79adde47ab35f96904cb4771855f9d3f81a34b5ef9d434a1c427132ecd28956345c613be1cba4427f3ff7a27536ee44692961ed4c8e755664b3282652
|
data/README.adoc
CHANGED
@@ -214,7 +214,7 @@ Start a new page in *Markdown* by adding a file ending with `.md`.
|
|
214
214
|
----
|
215
215
|
---
|
216
216
|
layout: page
|
217
|
-
# Use either a `# Heading` OR set the title in the
|
217
|
+
# Use either a `# Heading` OR set the title in the front matter.
|
218
218
|
# Using both will result in two headings.
|
219
219
|
---
|
220
220
|
# Page title
|
@@ -229,7 +229,7 @@ Content
|
|
229
229
|
+
|
230
230
|
--
|
231
231
|
The page-postlist layout is designed to add a list of blog posts at the end of any page that uses this layout.
|
232
|
-
The post list can currently be *configured* using two values via Jekyll
|
232
|
+
The post list can currently be *configured* using two values via Jekyll front matter or page variables:
|
233
233
|
|
234
234
|
`page-postlist-css-class`:
|
235
235
|
This specifies the CSS class for the <ul> element where the posts will be listed, allowing for different list styles.
|
@@ -454,7 +454,7 @@ In AsciiDoc files this could be e.g.: `:page-menu_label: 'AnotherText'`.
|
|
454
454
|
|
455
455
|
By default, the links in the menu are ordered alphabetically.
|
456
456
|
The order of the links can be explicitly determined using the page variable `menu_position`
|
457
|
-
(in AsciiDoc e.g. `:page-menu_position: 100`; in
|
457
|
+
(in AsciiDoc page attributes e.g. `:page-menu_position: 100`; in Jekyll front matter e.g. `menu_position: 50`).
|
458
458
|
Pages with higher numbers appear on the left side of the menu.
|
459
459
|
Pages with a negative value for `menu_position` will be hidden from the menu.
|
460
460
|
This can be useful for your 404 page, which should be generated by Jekyll, but not visible in the menu.
|
@@ -639,8 +639,8 @@ I use, for example:
|
|
639
639
|
The language of the content can be set using `page.lang` which overrides `site.lang`.
|
640
640
|
The default is `en`.
|
641
641
|
|
642
|
-
* use e.g. `:page-lang: en` in AsciiDoc
|
643
|
-
* use e.g. `lang: en` in
|
642
|
+
* use e.g. `:page-lang: en` in AsciiDoc page attributes
|
643
|
+
* use e.g. `lang: en` in Jekyll front matter
|
644
644
|
* use e.g. `lang: en` in `_config.yml`
|
645
645
|
|
646
646
|
|
data/_data.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Theme-specific settings
|
2
2
|
################################################################################
|
3
3
|
# All configuration options for the theme jekyll-theme-endless are listed here.
|
4
|
-
# These settings are outsourced into a separate file because they contain the values for the theme
|
4
|
+
# These settings are outsourced into a separate file because they contain the values for the theme's website.
|
5
5
|
# This way, these values are not used as default settings when you integrate the theme into your own project.
|
6
6
|
|
7
7
|
# Language. Is overriden by value of page.lang.
|
data/_includes/aside_more.html
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{% comment %}
|
2
2
|
This file contains the third of the three elements, often used to display links to partner sites or advertisements.
|
3
|
-
This section is intended to showcase external resources or sponsored content relevant to the blog
|
3
|
+
This section is intended to showcase external resources or sponsored content relevant to the blog's audience,
|
4
4
|
and it is also best placed within an <aside> element.
|
5
5
|
|
6
6
|
<aside>
|
@@ -16,7 +16,7 @@ It typically includes blog navigation, such as 'Recent Articles' or 'Tag Cloud,'
|
|
16
16
|
{% assign postlist = site.posts | sort:"date" | reverse %}
|
17
17
|
{% for post in postlist offset: 0 limit: 5 %}
|
18
18
|
{% comment %}
|
19
|
-
'title' is not escaped, as the value should already be escaped by AsciiDoc
|
19
|
+
'title' is not escaped, as the value should already be escaped by the AsciiDoc processor.
|
20
20
|
{% endcomment %}
|
21
21
|
<li><a href="{{ post.url | relative_url }}">{{ post.title }}</a></li>
|
22
22
|
{% endfor %}
|
@@ -25,7 +25,7 @@ Descending order according to their position value.
|
|
25
25
|
{% if label and position >= 0 %}
|
26
26
|
<li class="nav-item">
|
27
27
|
{% comment %}
|
28
|
-
'label' is not escaped, as the value should already be escaped by AsciiDoc
|
28
|
+
'label' is not escaped, as the value should already be escaped by the AsciiDoc processor.
|
29
29
|
{% endcomment %}
|
30
30
|
<a class="nav-link" href="{{ current_page.url | relative_url }}">{{ label }}</a>
|
31
31
|
</li>
|
@@ -27,7 +27,8 @@ Call via:
|
|
27
27
|
The strip_html filter removes any HTML tags from excerpt,
|
28
28
|
ensuring that only plain text is displayed.
|
29
29
|
{% endcomment %}
|
30
|
-
|
30
|
+
{% assign summary_default = post.excerpt | strip_html %}
|
31
|
+
<p class="summary" itemprop="description">{{ post.summary | asciidocify: 'inline' | default: summary_default }}</p>
|
31
32
|
<p>
|
32
33
|
{% comment %}
|
33
34
|
Assign the edited date with fallback logic.
|
@@ -26,7 +26,7 @@ Call via:
|
|
26
26
|
{% endif %}
|
27
27
|
|
28
28
|
{% comment %}
|
29
|
-
'title' is not escaped, as the value should already be escaped by AsciiDoc
|
29
|
+
'title' is not escaped, as the value should already be escaped by the AsciiDoc processor.
|
30
30
|
{% endcomment %}
|
31
31
|
<a href="{{ post.url | relative_url }}" itemprop="url">
|
32
32
|
<span itemprop="headline">{{ post.title }}</span>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<span class="d-inline d-md-none">Newer Posts</span>
|
15
15
|
<!-- Full title on larger screens -->
|
16
16
|
{% comment %}
|
17
|
-
'title' is not escaped, as the value should already be escaped by AsciiDoc
|
17
|
+
'title' is not escaped, as the value should already be escaped by the AsciiDoc processor.
|
18
18
|
{% endcomment %}
|
19
19
|
<span class="d-none d-md-inline">{{ page.next.title }}</span>
|
20
20
|
</a>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<span class="d-inline d-md-none">Older Posts</span>
|
34
34
|
<!-- Full title on larger screens -->
|
35
35
|
{% comment %}
|
36
|
-
'title' is not escaped, as the value should already be escaped by AsciiDoc
|
36
|
+
'title' is not escaped, as the value should already be escaped by the AsciiDoc processor.
|
37
37
|
{% endcomment %}
|
38
38
|
<span class="d-none d-md-inline">{{ page.previous.title }}</span>
|
39
39
|
</a>
|
@@ -88,7 +88,7 @@ Assumption: Non of the tags occurs more than one million times.
|
|
88
88
|
{% if site.tag_show_description_in_tagcloud %}
|
89
89
|
{% comment %}
|
90
90
|
'tagname' is escaped, assuming it does not contain special characters
|
91
|
-
that were already escaped by
|
91
|
+
that were already escaped by the AsciiDoc processor, or, if special characters are present,
|
92
92
|
the tags were set unescaped through the Jekyll front matter.
|
93
93
|
'tag-description' is escaped, since it is set in a data-file.
|
94
94
|
{% endcomment %}
|
@@ -96,7 +96,7 @@ Assumption: Non of the tags occurs more than one million times.
|
|
96
96
|
{% else %}
|
97
97
|
{% comment %}
|
98
98
|
'tagname' is escaped, assuming it does not contain special characters
|
99
|
-
that were already escaped by
|
99
|
+
that were already escaped by the AsciiDoc processor, or, if special characters are present,
|
100
100
|
the tags were set unescaped through the Jekyll front matter.
|
101
101
|
{% endcomment %}
|
102
102
|
title = "Number of posts with the tag '{{ tagname | escape }}': {{ number }}"
|
@@ -105,7 +105,7 @@ Assumption: Non of the tags occurs more than one million times.
|
|
105
105
|
class = "no-tag-description"
|
106
106
|
{% comment %}
|
107
107
|
'tagname' is escaped, assuming it does not contain special characters
|
108
|
-
that were already escaped by
|
108
|
+
that were already escaped by the AsciiDoc processor, or, if special characters are present,
|
109
109
|
the tags were set unescaped through the Jekyll front matter.
|
110
110
|
{% endcomment %}
|
111
111
|
title = "Number of posts with the tag '{{ tagname | escape }}': {{ number }}"
|
@@ -113,7 +113,7 @@ Assumption: Non of the tags occurs more than one million times.
|
|
113
113
|
|
114
114
|
{% comment %}
|
115
115
|
'tagname' is escaped, assuming it does not contain special characters
|
116
|
-
that were already escaped by
|
116
|
+
that were already escaped by the AsciiDoc processor, or, if special characters are present,
|
117
117
|
the tags were set unescaped through the Jekyll front matter.
|
118
118
|
{% endcomment %}
|
119
119
|
>{{ tagname | escape }}</a>
|
data/_layouts/html.html
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
<title>
|
22
22
|
{% comment %}
|
23
|
-
'title' is not escaped, as the value should already be escaped by AsciiDoc
|
23
|
+
'title' is not escaped, as the value should already be escaped by the AsciiDoc processor.
|
24
24
|
HTML commands are removed because they have no effect in the title and
|
25
25
|
would otherwise be displayed as the commands themselves.
|
26
26
|
{% endcomment %}
|
@@ -63,10 +63,30 @@
|
|
63
63
|
|
64
64
|
{{ content }}
|
65
65
|
|
66
|
+
|
67
|
+
<!-- Configuration for MathJax (for STEM expressions) -->
|
68
|
+
<script type="text/x-mathjax-config">
|
69
|
+
MathJax.Hub.Config({
|
70
|
+
messageStyle: "none",
|
71
|
+
tex2jax: {
|
72
|
+
inlineMath: [["\\(", "\\)"]],
|
73
|
+
displayMath: [["\\[", "\\]"]],
|
74
|
+
ignoreClass: "nostem|nolatexmath"
|
75
|
+
},
|
76
|
+
asciimath2jax: {
|
77
|
+
delimiters: [["\\$", "\\$"]],
|
78
|
+
ignoreClass: "nostem|noasciimath"
|
79
|
+
},
|
80
|
+
TeX: { equationNumbers: { autoNumber: "none" } }
|
81
|
+
});
|
82
|
+
</script>
|
83
|
+
|
66
84
|
{% if site.use-cdn == true or site.use-cdn == nil %}
|
67
85
|
<!-- Load from CDN -->
|
68
|
-
|
69
|
-
|
86
|
+
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
|
87
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha256-jXCJJT3KKcnNjZ3rfsabCj1EX4j2omR4xxm+H5CtywE=" crossorigin="anonymous"></script>
|
88
|
+
<!-- MathJax (for STEM expressions) -->
|
89
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_HTMLorMML"></script>
|
70
90
|
{% else %}
|
71
91
|
<!-- Load local versions -->
|
72
92
|
{% endif %}
|
data/_layouts/page-minimal.html
CHANGED
@@ -6,7 +6,7 @@ layout: default-minimal
|
|
6
6
|
<section class="detached">
|
7
7
|
|
8
8
|
{% comment %}
|
9
|
-
'title' is not escaped, as the value should already be escaped by AsciiDoc
|
9
|
+
'title' is not escaped, as the value should already be escaped by the AsciiDoc processor.
|
10
10
|
{% endcomment %}
|
11
11
|
<h1 class="post-title">{{ page.title }}</h1>
|
12
12
|
|
data/_layouts/page-postlist.html
CHANGED
@@ -6,7 +6,7 @@ layout: page
|
|
6
6
|
|
7
7
|
{% comment %}
|
8
8
|
The page-postlist layout is designed to add a list of blog posts at the end of any page that uses this layout.
|
9
|
-
The post list can currently be configured using two values via Jekyll
|
9
|
+
The post list can currently be configured using two values via Jekyll front matter or page variables:
|
10
10
|
|
11
11
|
page-postlist-css-class:
|
12
12
|
This specifies the CSS class for the <ul> element where the posts will be listed, allowing for different list styles.
|
@@ -10,7 +10,7 @@ page.tag and page.title are set by the plugin `generate-taglist`.
|
|
10
10
|
<p>
|
11
11
|
{% comment %}
|
12
12
|
'tag' is escaped, assuming it does not contain special characters
|
13
|
-
that were already escaped by
|
13
|
+
that were already escaped by the AsciiDoc processor, or, if special characters are present,
|
14
14
|
the tags were set unescaped through the Jekyll front matter.
|
15
15
|
'tag-description' is escaped, since it is set in a data-file.
|
16
16
|
{% endcomment %}
|
@@ -22,7 +22,7 @@ page.tag and page.title are set by the plugin `generate-taglist`.
|
|
22
22
|
<p>
|
23
23
|
{% comment %}
|
24
24
|
'tag' is escaped, assuming it does not contain special characters
|
25
|
-
that were already escaped by
|
25
|
+
that were already escaped by the AsciiDoc processor, or, if special characters are present,
|
26
26
|
the tags were set unescaped through the Jekyll front matter.
|
27
27
|
{% endcomment %}
|
28
28
|
Number of posts tagged with "<em>{{ page.tag | escape }}</em>": <strong>{{ site.tags[ page.tag ] | size }}</strong>
|
data/_layouts/page.html
CHANGED
@@ -9,7 +9,7 @@ Either set `title` in the frontmater, or use a `# Heading` on the page.
|
|
9
9
|
{% endcomment %}
|
10
10
|
{% if page.title %}
|
11
11
|
{% comment %}
|
12
|
-
'title' is not escaped, as the value should already be escaped by AsciiDoc
|
12
|
+
'title' is not escaped, as the value should already be escaped by the AsciiDoc processor.
|
13
13
|
{% endcomment %}
|
14
14
|
<h1>{{ page.title }}</h1>
|
15
15
|
{% endif %}
|
data/_layouts/post.html
CHANGED
@@ -30,7 +30,7 @@ layout: default
|
|
30
30
|
{% endcomment %}
|
31
31
|
{% if page.title %}
|
32
32
|
{% comment %}
|
33
|
-
'title' is not escaped, as the value should already be escaped by AsciiDoc
|
33
|
+
'title' is not escaped, as the value should already be escaped by the AsciiDoc processor.
|
34
34
|
{% endcomment %}
|
35
35
|
<h1 itemprop="headline">{{ page.title }}</h1>
|
36
36
|
{% endif %}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
div.stemblock {
|
4
|
+
text-align: center;
|
5
|
+
|
6
|
+
div.content {
|
7
|
+
/* See also `img-fluid` class from Bootstrap. */
|
8
|
+
display: inline-block;
|
9
|
+
max-width: 100%;
|
10
|
+
height: auto;
|
11
|
+
width: auto;
|
12
|
+
background: #fff;
|
13
|
+
border: 1px solid #aaa;
|
14
|
+
padding: 10px 10px;
|
15
|
+
border-radius: 5px;
|
16
|
+
margin-bottom: 2em;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
data/assets/css/main.scss
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
# The
|
2
|
+
# The front matter ensures that Jekyll reads the file and transforms it to CSS.
|
3
3
|
# See https://jekyllrb.com/docs/themes/#assets
|
4
4
|
# Only main files contain this front matter, not partials that are placed in _scss.
|
5
5
|
---
|
@@ -39,6 +39,7 @@
|
|
39
39
|
@use "adoc-code";
|
40
40
|
@use "adoc-text";
|
41
41
|
@use "adoc-toc";
|
42
|
+
@use "adoc-stem";
|
42
43
|
|
43
44
|
/*
|
44
45
|
* Dynamically add stylesheets as configured by the user in `_config.yml`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-endless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Boekhoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll-asciidoc
|
@@ -114,6 +114,7 @@ files:
|
|
114
114
|
- _sass/adoc-images.scss
|
115
115
|
- _sass/adoc-lists.scss
|
116
116
|
- _sass/adoc-quote.scss
|
117
|
+
- _sass/adoc-stem.scss
|
117
118
|
- _sass/adoc-tables.scss
|
118
119
|
- _sass/adoc-text.scss
|
119
120
|
- _sass/adoc-toc.scss
|