jekyll-theme-endless 0.3.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9383008f153eb0b678be801500b2a806d5d384a77e643a8af2bb131944b62a3f
4
- data.tar.gz: 5364902b367bb5752fa6e751a9e82a544e6b83516573ae6ee5d4594b437527b8
3
+ metadata.gz: 5ae642c26adf0d100d6fef5595ade633b873f7c3a476260b62b6a53ec388c89e
4
+ data.tar.gz: aac144461e337811835964ff157c72ef4cb31a59e78172896bb6795026bdf9b8
5
5
  SHA512:
6
- metadata.gz: e4970875e16f5f5257fcc4defe679de7ce4452b7e4e5eac1f0d115926d32738edd95613f8af50e51cb1c063faf2dfe5ef34ac8abcdc65b4493e825da2a29291e
7
- data.tar.gz: 926e1e3779d2799122fddc966d0110a42fd4d6d873a89749f32420e0e73ebc565a27510250d0ce5eb64aa235cf7eb8402df07ad37402361c9f5f8c1011154c1a
6
+ metadata.gz: e1f8cf523275fbf7f910d62884b8f5b446d47fdd73cd11f2bcf34d5d7b0758110e1a816a8f3a3d8e2a07bf576aa1b5e58bf2f76cc7f555af1cc2fb1ebeebdaec
7
+ data.tar.gz: 02b41c8ca4db8f22cbf1c761e946bac3ee71b404612ceee0f49a7e5cac02e0e520934d55ac53722967ed9e72e4c3801c4e65f7298bdc2c23be412f7e105e1d06
@@ -3,6 +3,19 @@
3
3
  :page-menu_position: 300
4
4
 
5
5
 
6
+
7
+ `jekyll-theme-endless` is a theme for the static site generator https://jekyllrb.com/[Jekyll].
8
+ The theme is ready to be used with posts written in https://asciidoctor.org/[AsciiDoc] using the
9
+ https://github.com/asciidoctor/jekyll-asciidoc[Jekyll AsciiDoc plugin].
10
+ The syntax of source code is highlighted using https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers[Rouge].
11
+
12
+ The repository of this Jekyll theme is located at:
13
+ https://gitlab.com/jekyll-theme-endless/jekyll-theme-endless.gitlab.io.
14
+ An example page using this theme can be viewed at: https://jekyll-theme-endless.gitlab.io.
15
+ The gem is published on https://rubygems.org/gems/jekyll-theme-endless.
16
+
17
+
18
+
6
19
  == Quicktstart for testing
7
20
 
8
21
  * Clone the repository
@@ -200,6 +213,24 @@ username_xing: XXXX
200
213
  username_linkedin: XXXX
201
214
  ----
202
215
 
216
+ `_includes/function_tag-list.html`::
217
+ Generates a formatted list of tags.
218
+ This is e.g. used to display the tags of a blog post.
219
+
220
+ `_includes/function_show-dates.html`::
221
+ Show the creation date and (if present) the date a blog post was last edited.
222
+ The date of the last edit can be configured by setting a value for the page-variable `lastedit`.
223
+
224
+ In AsciiDoc this would be e.g.:
225
+
226
+ [source, AsciiDoc]
227
+ ----
228
+ :page-lastedit: 2020-10-29
229
+ ----
230
+
231
+ `_includes/function_show-prev-next-navigation.html`::
232
+ Displays links to the previous and the next post of your blog.
233
+
203
234
 
204
235
 
205
236
  === Plugins
@@ -23,6 +23,19 @@ url: "" # the base hostname & protocol for your site, e.g. http://example.com
23
23
 
24
24
 
25
25
 
26
+ # AsciiDoc settings
27
+ asciidoctor:
28
+ attributes:
29
+ # Highlighting source code using rouge
30
+ # https://github.com/asciidoctor/jekyll-asciidoc#stylesheet-for-code-highlighting
31
+ # https://github.com/asciidoctor/jekyll-asciidoc/issues/221#issuecomment-526857488
32
+ source-highlighter: rouge
33
+ # Activate font-based admonition icons
34
+ # https://github.com/asciidoctor/jekyll-asciidoc#font-based-admonition-and-inline-icons
35
+ icons: font
36
+
37
+
38
+
26
39
  # Theme specific settings
27
40
  # Find example data in _data.yml of the theme repository.
28
41
  # Run `bundle exec jekyll serve --config _config.yml,_data.yml`
@@ -0,0 +1,16 @@
1
+ <div class="text-right">
2
+
3
+ <time class="created" datetime="{{ include.created | date_to_xmlschema }}">
4
+ <span class="sr-only sr-only-focusable">created:</span>
5
+ <strong title="date of creation">{{ include.created | date: "%b %-d, %Y" }}</strong>
6
+ </time>
7
+
8
+ {% if include.edited != "" and include.edited %}
9
+ /
10
+ <time class="edited" datetime="{{ include.edited | date_to_xmlschema }}">
11
+ <span class="sr-only sr-only-focusable">edited:</span>
12
+ <strong title="date of last edit">{{ include.edited | date: "%b %-d, %Y" }}</strong>
13
+ </time>
14
+ {% endif %}
15
+
16
+ </div>
@@ -0,0 +1,19 @@
1
+ <div class="row text-left">
2
+ <div class="col">
3
+ {% if page.next %}
4
+ <a href="{{ page.next.url }}">
5
+ <i class="fa fa-arrow-left d-md-none"></i>
6
+ <span class="d-none d-md-inline">&laquo; {{page.next.title}}</span>
7
+ </a>
8
+ {% endif %}
9
+ </div>
10
+ <div class="col text-right">
11
+ {% if page.previous %}
12
+ <a href="{{ page.previous.url }}">
13
+ <span class="d-none d-md-inline">{{page.previous.title}} &raquo;</span>
14
+ <i class="fa fa-arrow-right d-md-none"></i>
15
+ </a>
16
+ {% endif %}
17
+ </div>
18
+ </div>
19
+
@@ -64,8 +64,16 @@ Assumption: Non of the tags occurs more than one million times.
64
64
  {% endcomment %}
65
65
 
66
66
  {% assign number = site.tags[tag] | size %}
67
- {% assign percent = number | times: 1.0 | minus: min | times: sizeDifference | divided_by: steps | plus: 100 %}
68
- {% assign tagname = tag | replace:'-', ' ' %}
67
+ {% comment %}
68
+ Tags that only occur once, should be displayed smaller than 100% in the tag cloud.
69
+ {% endcomment %}
70
+ {% if number == 1 %}
71
+ {% assign percent = 65 %}
72
+ {% else %}
73
+ {% assign percent = number | times: 1.0 | minus: min | times: sizeDifference | divided_by: steps | plus: 100 %}
74
+ {% endif %}
75
+
76
+ {% assign tagname = tag %}
69
77
 
70
78
  <a
71
79
  href = "/{{ site.tag_dir | default: 'tags' }}/{{ tag }}"
@@ -0,0 +1,15 @@
1
+ {% comment %}
2
+ Generates an unsorted list of tags.
3
+ Requires an array of tags beeing provided via the parameter `tags`.
4
+ {% endcomment %}
5
+ {% assign asize = include.tags | size %}
6
+ {% if asize > 0 %}
7
+ <ul class="list-inline">
8
+ {% for current_tag in include.tags %}
9
+ <li class="list-inline-item"><a
10
+ class="badge badge-pill badge-secondary"
11
+ href="/{{ site.tag_dir | default: 'tags' }}/{{ current_tag }}"
12
+ >{{ current_tag }}</a></li>
13
+ {% endfor %}
14
+ </ul>
15
+ {% endif %}
@@ -51,15 +51,15 @@ layout: html
51
51
 
52
52
 
53
53
  <!-- Page content -->
54
- <main class="container pt-4 pb-5" style="flex-grow: 1;" aria-label="Content">
54
+ <main class="container pt-4" style="flex-grow: 1;" aria-label="Content">
55
55
 
56
56
  <div class="row">
57
57
 
58
- <div class="col-lg-8">
58
+ <div class="col-lg-8 pb-5">
59
59
  {{ content }}
60
60
  </div>
61
61
 
62
- <div class="col-lg-4">
62
+ <div class="col-lg-4 pb-5">
63
63
  <aside>
64
64
  <h3>Blog Navigation</h3>
65
65
 
@@ -8,7 +8,7 @@
8
8
  <meta charset="utf-8">
9
9
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
10
10
  <title>
11
- {{ page.title }}
11
+ {{ page.title | default: page.menu_label | strip_html }}
12
12
  </title>
13
13
 
14
14
  <!-- Font-awesome CSS: https://www.bootstrapcdn.com/fontawesome/ -->
@@ -9,6 +9,10 @@ page.tag and page.title are set by the plugin `generate-taglist`.
9
9
  <h1>{{ page.title }}</h1>
10
10
  {% endif %}
11
11
 
12
+ <p>
13
+ Number of posts tagged with "<em>{{ page.tag }}</em>": <strong>{{ site.tags[ page.tag ] | size }}</strong>
14
+ </p>
15
+
12
16
  <ul>
13
17
  {% for post in site.tags[ page.tag ] %}
14
18
 
@@ -1,12 +1,42 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% comment %}
5
- In Markdown posts, page.title defaults to parts of the filename.
6
- Thus, do not use `# Heading` in Blog posts, otherwise two H1-heading will appear.
7
- {% endcomment %}
8
- {% if page.title %}
9
- <h1>{{ page.title }}</h1>
10
- {% endif %}
11
-
12
- {{ content }}
4
+ <article>
5
+ <header>
6
+
7
+ {% comment %}Show link to previous/next post.{% endcomment %}
8
+ {% include function_show-prev-next-navigation.html %}
9
+
10
+ {% comment %}Show dates of the post.{% endcomment %}
11
+ {% include function_show-dates.html
12
+ created = page.date
13
+ edited = page.lastedit
14
+ %}
15
+
16
+ {% comment %}
17
+ In Markdown posts, page.title defaults to parts of the filename.
18
+ Thus, do not use `# Heading` in Blog posts, otherwise two H1-heading will appear.
19
+ {% endcomment %}
20
+ {% if page.title %}
21
+ <h1>{{ page.title }}</h1>
22
+ {% endif %}
23
+
24
+ {% comment %}Show tags of the post.{% endcomment %}
25
+ {% include function_tag-list.html
26
+ tags=page.tags
27
+ %}
28
+
29
+ </header>
30
+
31
+ <div>
32
+ {{ content }}
33
+ </div>
34
+
35
+ {% comment %}Show link to previous/next post.{% endcomment %}
36
+ {% include function_show-prev-next-navigation.html %}
37
+
38
+ </article>
39
+
40
+
41
+
42
+
@@ -0,0 +1,51 @@
1
+ div.admonitionblock {
2
+ border-radius: 5px;
3
+ box-shadow: 0 1px 4px #aaa;
4
+ background: #fff;
5
+ color: #111;
6
+ }
7
+ .admonitionblock table {
8
+ background-color: transparent;
9
+ width: 100%;
10
+ td {
11
+ padding: .75em .25em;
12
+ }
13
+ }
14
+ /* See:
15
+ * https://github.com/asciidoctor/jekyll-asciidoc#font-based-admonition-and-inline-icons
16
+ */
17
+ span.icon>.fa {
18
+ cursor: default;
19
+ }
20
+ .admonitionblock td.icon {
21
+ text-align: center;
22
+ width: 66px;
23
+
24
+ [class^="fa icon-"] {
25
+ font-size: 1.5em;
26
+ text-shadow: 1px 1px 2px rgba(0,0,0,.5);
27
+ cursor: default;
28
+ }
29
+ .icon-note:before {
30
+ content: "\f05a";
31
+ color: #19407c;
32
+ }
33
+ .icon-tip:before {
34
+ content: "\f0eb";
35
+ text-shadow: 1px 1px 2px rgba(155,155,0,.8);
36
+ color: #111;
37
+ }
38
+ .icon-warning:before {
39
+ content: "\f071";
40
+ color: #bf6900;
41
+ }
42
+ .icon-caution:before {
43
+ content: "\f06d";
44
+ color: #bf3400;
45
+ }
46
+ .icon-important:before {
47
+ content: "\f06a";
48
+ color: #bf0000;
49
+ }
50
+
51
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Table blocks.
3
+ */
4
+
5
+ table.tableblock {
6
+
7
+ thead,
8
+ tfoot {
9
+ background: #e7e8e7;
10
+ font-weight: bold;
11
+ }
12
+
13
+ th.tableblock,
14
+ td.tableblock {
15
+ border: 0 solid #f00;
16
+ border: 0 solid #dedede;
17
+ padding: .5em .625em;
18
+ }
19
+
20
+ }
21
+
22
+ p.tableblock {
23
+ margin-bottom: 0;
24
+ }
25
+
26
+ table.grid-all {
27
+ th.tableblock,
28
+ td.tableblock {
29
+ border-width: 1px;
30
+ }
31
+ }
32
+
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Applies to adminition blocks and table blocks
3
+ */
4
+ table {
5
+ background: #fff;
6
+ margin: .5em auto;
7
+ }
8
+
9
+ table tr.even,
10
+ table tr.alt,
11
+ table tr:nth-of-type(even) {
12
+ background: #f8f8f7;
13
+ }
14
+
@@ -0,0 +1,16 @@
1
+ time {
2
+ color: #999;
3
+
4
+ &:before {
5
+ font-family: FontAwesome;
6
+ top:0;
7
+ padding-right:-1px;
8
+
9
+ &.created {
10
+ content: "\f017";
11
+ }
12
+ &.edited {
13
+ content: "\f044";
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Based on "Manni" from https://github.com/jwarby/jekyll-pygments-themes
3
+ */
4
+
5
+ .highlight {
6
+ @at-root pre#{&} {
7
+ -moz-tab-size: 2;
8
+ tab-size: 2;
9
+ background-color: #f8f8f8;
10
+ padding: .5em 1em;
11
+ }
12
+ .hll { background-color: #ffffcc }
13
+ .c { color: #080; font-style: italic } /* Comment */
14
+ .err { color: #AA0000; background-color: #FFAAAA } /* Error */
15
+ .k { color: #006699; font-weight: bold } /* Keyword */
16
+ .o { color: #555555 } /* Operator */
17
+ .cm { color: #080; font-style: italic } /* Comment.Multiline */
18
+ .cp { color: #08F } /* Comment.Preproc */
19
+ .c1 { color: #080; font-style: italic } /* Comment.Single */
20
+ .cs { color: #08F; font-weight: bold; font-style: italic } /* Comment.Special */
21
+ .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */
22
+ .ge { font-style: italic } /* Generic.Emph */
23
+ .gr { color: #FF0000 } /* Generic.Error */
24
+ .gh { color: #003300; font-weight: bold } /* Generic.Heading */
25
+ .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */
26
+ .go { color: #AAAAAA } /* Generic.Output */
27
+ .gp { color: #000099; font-weight: bold } /* Generic.Prompt */
28
+ .gs { font-weight: bold } /* Generic.Strong */
29
+ .gu { color: #003300; font-weight: bold } /* Generic.Subheading */
30
+ .gt { color: #99CC66 } /* Generic.Traceback */
31
+ .kc { color: #006699; font-weight: bold } /* Keyword.Constant */
32
+ .kd { color: #006699; font-weight: bold } /* Keyword.Declaration */
33
+ .kn { color: #006699; font-weight: bold } /* Keyword.Namespace */
34
+ .kp { color: #006699 } /* Keyword.Pseudo */
35
+ .kr { color: #006699; font-weight: bold } /* Keyword.Reserved */
36
+ .kt { color: #007788; font-weight: bold } /* Keyword.Type */
37
+ .m { color: #FF6600 } /* Literal.Number */
38
+ .s { color: #CC3300 } /* Literal.String */
39
+ .na { color: #330099 } /* Name.Attribute */
40
+ .nb { color: #336666 } /* Name.Builtin */
41
+ .nc { color: #00AA88; font-weight: bold } /* Name.Class */
42
+ .no { color: #336600 } /* Name.Constant */
43
+ .nd { color: #9999FF } /* Name.Decorator */
44
+ .ni { color: #999999; font-weight: bold } /* Name.Entity */
45
+ .ne { color: #CC0000; font-weight: bold } /* Name.Exception */
46
+ .nf { color: #CC00FF } /* Name.Function */
47
+ .nl { color: #9999FF } /* Name.Label */
48
+ .nn { color: #00CCFF; font-weight: bold } /* Name.Namespace */
49
+ .nt { color: #330099; font-weight: bold } /* Name.Tag */
50
+ .nv { color: #003333 } /* Name.Variable */
51
+ .ow { color: #000000; font-weight: bold } /* Operator.Word */
52
+ .w { color: #bbbbbb } /* Text.Whitespace */
53
+ .mf { color: #FF6600 } /* Literal.Number.Float */
54
+ .mh { color: #FF6600 } /* Literal.Number.Hex */
55
+ .mi { color: #FF6600 } /* Literal.Number.Integer */
56
+ .mo { color: #FF6600 } /* Literal.Number.Oct */
57
+ .sb { color: #CC3300 } /* Literal.String.Backtick */
58
+ .sc { color: #CC3300 } /* Literal.String.Char */
59
+ .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */
60
+ .s2 { color: #CC3300 } /* Literal.String.Double */
61
+ .se { color: #CC3300; font-weight: bold } /* Literal.String.Escape */
62
+ .sh { color: #CC3300 } /* Literal.String.Heredoc */
63
+ .si { color: #AA0000 } /* Literal.String.Interpol */
64
+ .sx { color: #CC3300 } /* Literal.String.Other */
65
+ .sr { color: #33AAAA } /* Literal.String.Regex */
66
+ .s1 { color: #CC3300 } /* Literal.String.Single */
67
+ .ss { color: #FFCC33 } /* Literal.String.Symbol */
68
+ .bp { color: #336666 } /* Name.Builtin.Pseudo */
69
+ .vc { color: #003333 } /* Name.Variable.Class */
70
+ .vg { color: #003333 } /* Name.Variable.Global */
71
+ .vi { color: #003333 } /* Name.Variable.Instance */
72
+ .il { color: #FF6600 } /* Literal.Number.Integer.Long */
73
+ }
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Styles of structuring elements.
3
+ */
4
+ h2 {
5
+ padding-top: 1em;
6
+ }
7
+
8
+
@@ -6,6 +6,7 @@
6
6
 
7
7
  li {
8
8
  display: inline;
9
+ line-height: 1;
9
10
  }
10
11
  /* Every tag in the tag cloud should have a point as a separator. */
11
12
  li::after {
@@ -10,6 +10,20 @@
10
10
  @import "background";
11
11
  @import "address";
12
12
  @import "tag-cloud";
13
+ @import "posts";
14
+ @import "structure";
15
+
16
+ /*
17
+ * import styles for highlighting source code that was annotated using rouge.
18
+ */
19
+ @import "rouge-highlight";
20
+
21
+ /*
22
+ * import styles for AsciiDoc.
23
+ */
24
+ @import "adoc";
25
+ @import "adoc-admonition";
26
+ @import "adoc-tables";
13
27
 
14
28
  /*
15
29
  * import SCSS-Code contributed by the user of the theme.
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Endless
3
- VERSION = '0.3.3'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
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.3.3
4
+ version: 0.6.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: 2020-10-28 00:00:00.000000000 Z
11
+ date: 2020-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -37,7 +37,10 @@ files:
37
37
  - _includes/content_footer-usernames.html
38
38
  - _includes/function_list-pages.html
39
39
  - _includes/function_list-posts.html
40
+ - _includes/function_show-dates.html
41
+ - _includes/function_show-prev-next-navigation.html
40
42
  - _includes/function_tag-cloud.html
43
+ - _includes/function_tag-list.html
41
44
  - _layouts/default.html
42
45
  - _layouts/html.html
43
46
  - _layouts/page-postlist.html
@@ -45,7 +48,13 @@ files:
45
48
  - _layouts/page.html
46
49
  - _layouts/post.html
47
50
  - _sass/address.scss
51
+ - _sass/adoc-admonition.scss
52
+ - _sass/adoc-tables.scss
53
+ - _sass/adoc.scss
48
54
  - _sass/background.scss
55
+ - _sass/posts.scss
56
+ - _sass/rouge-highlight.scss
57
+ - _sass/structure.scss
49
58
  - _sass/tag-cloud.scss
50
59
  - _sass/user.scss
51
60
  - assets/css/main.scss