jekyll-theme-endless 0.11.2 → 0.12.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: b3dd13dce75a0036a4edc41f90ff6d204caef64c3da9c76fb4e4c20ddd0344f4
4
- data.tar.gz: 86fbc9da25d917ac634e20df3dc6d638a9cd5aad3ac7d88da27cb77e9628a3aa
3
+ metadata.gz: 60b46c41a7e2d1ea7e8d81a831eb2c845cb1f6c75644b948958d60c73f3574ae
4
+ data.tar.gz: e2a96a51e5daf2a464a5aa763dbf7bf34f0508d61f5536a32b764209b6c5ef96
5
5
  SHA512:
6
- metadata.gz: f32f493c7ce3600ced24043c872a6a8b0308e3fca667e7d2111b389ebd3b085f03b6fb88a5684693d4b6ee66b1ebd6797992bb96af2ac93742690ea91661ad10
7
- data.tar.gz: 7f1e0df11f26250c13653963da56570f783f7bb0e642e9c13065d147836c6303d703b4dea314e7a17cb79f879c7f663fa16fce58c08e48c009a24efc76183d09
6
+ metadata.gz: d9a0e06c8822104785c86231c4a10c649ea7ee8d2f2702e03caa034624d795c35c47f86a29bff6b2b50be1ff876df43b2582d1e607623ee202d8c5631b39c83f
7
+ data.tar.gz: 97f3aec66a0b12da78bf5e5d2f03a865e238ffbe43cc3a6e41ad40f57de1a4e67dc8351327e7ee88050185d397076e64de468e799c0a649418441ba70353bd86
data/README.adoc CHANGED
@@ -3,14 +3,16 @@
3
3
  :page-menu_position: 300
4
4
  :toc: preamble
5
5
  :toclevels: 3
6
+ :page-summary: "Explore the documentation for jekyll-theme-endless: a Jekyll theme for AsciiDoc blogging, featuring tag cloud, code highlighting, responsive design, and more."
6
7
 
7
8
 
8
9
 
9
10
  `jekyll-theme-endless` is a theme for the static site generator https://jekyllrb.com/[Jekyll].
10
11
  The theme is ready to be used with posts written in https://asciidoctor.org/[AsciiDoc] using the
11
12
  https://github.com/asciidoctor/jekyll-asciidoc[Jekyll AsciiDoc plugin].
12
- Moreover, it is shipped with a plugin that generates a *tag cloud*.
13
+ Moreover, it is shipped with a plugin that generates a *tag cloud* and a page for each tag, listing all posts associated with it.
13
14
  The syntax of source code is highlighted using https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers[Rouge].
15
+ Below you'll find a link:#features[list of the key features of this theme].
14
16
 
15
17
  The repository of this Jekyll theme is located at:
16
18
  https://gitlab.com/jekyll-theme-endless/jekyll-theme-endless.gitlab.io.
@@ -19,12 +21,18 @@ The gem is published on https://rubygems.org/gems/jekyll-theme-endless.
19
21
 
20
22
 
21
23
 
24
+
25
+
22
26
  == Quicktstart for testing
23
27
 
24
28
  * Clone the repository
25
29
  * Run `bundle exec jekyll serve --config _config.yml,_data.yml`
26
30
  * Open http://127.0.0.1:4000/ to view a page using this theme
27
31
 
32
+
33
+
34
+
35
+
28
36
  == Installation
29
37
 
30
38
  Add this line to your Jekyll site's `Gemfile`:
@@ -62,6 +70,22 @@ gem install jekyll-theme-endless
62
70
 
63
71
 
64
72
 
73
+
74
+
75
+ [[features]]
76
+ == Features
77
+
78
+ include::content/features.adoc[]
79
+
80
+
81
+ === Planned features
82
+
83
+ include::content/features-planned.adoc[]
84
+
85
+
86
+
87
+
88
+
65
89
  == General information
66
90
 
67
91
  The theme is styled using https://getbootstrap.com/[Bootstrap] that is added
@@ -74,6 +98,25 @@ If you want to use Markdown AND have HTML-commands in the title, simply escape t
74
98
 
75
99
 
76
100
 
101
+
102
+
103
+ == Example posts and pages
104
+
105
+ The project repository contains
106
+
107
+ * Two example posts with examples and explanations on which front matter variables you can use in posts and pages, and how to use them.
108
+ ** link:/asciidoc-example/[Example post for AsciiDoc with explanations]
109
+ ** link:/markdown-example/[Example post for Markdown with explanations]
110
+ * Two example pages (the showrooms) where you can explore the features of Markdown and AsciiDoc. In the source code, you can see how to implement these yourself.
111
+ ** link:/asciidoc-showroom/[AsciiDoc Showroom]
112
+ ** link:/markdown-showroom/[Markdown Showroom]
113
+
114
+ CAUTION: If you want to use special characters in your tags, you need to create them through the Jekyll front matter instead of the AsciiDoc variable `page-tags`. Further explanations can be found in the examples above and the link:/release-0.12.X/[release notes of version 0.12.0].
115
+
116
+
117
+
118
+
119
+
77
120
  == Usage
78
121
 
79
122
  Here I describe available layouts, includes, SASS- and other assets.
@@ -90,6 +133,8 @@ This will copy the theme-folder containing all its files into the current direct
90
133
  From there, you can selectively move files to your project and modify them as needed.
91
134
  Your (modified) copy will afterwards overwrite the contents provided by the theme.
92
135
 
136
+ NOTE: Whenever you create custom versions of files in this theme, consider whether they might also be useful for others. In that case, you could contribute the changes to the project. Feel free to contact me about it.
137
+
93
138
 
94
139
 
95
140
  === Layouts
@@ -99,6 +144,7 @@ Your (modified) copy will afterwards overwrite the contents provided by the them
99
144
  HTML boilerplate code used for all layouts.
100
145
 
101
146
 
147
+
102
148
  `_layouts/default.html`::
103
149
  +
104
150
  --
@@ -108,6 +154,8 @@ Contains a *navigation bar* with a configurable brand-label.
108
154
  Set `brand` in your `_config.yml`, to determine what is shown on the left side of the navigation.
109
155
  Example:
110
156
 
157
+ TIP: The values for `brand`, `title` and `subtitle` are _not_ escaped by the layout. Thus, you _can_ use HTML-commands.
158
+
111
159
  [source, yaml]
112
160
  ----
113
161
  brand: '"<i>endless</i>"-Theme'
@@ -141,6 +189,7 @@ disclaimer: >- # this means to ignore newlines until the next entry
141
189
  --
142
190
 
143
191
 
192
+
144
193
  `_layouts/page.html`::
145
194
  +
146
195
  --
@@ -174,10 +223,13 @@ Content
174
223
  ----
175
224
  --
176
225
 
226
+
227
+
177
228
  `_layouts/page-postlist.html`::
178
229
  Layout of page-content with a list of blog posts at the end.
179
230
 
180
231
 
232
+
181
233
  `_layouts/page-tag.html`::
182
234
  +
183
235
  --
@@ -202,6 +254,7 @@ include::_layouts/page-tag.html[]
202
254
  --
203
255
 
204
256
 
257
+
205
258
  `_layouts/page-tag-template.html`::
206
259
  +
207
260
  --
@@ -210,6 +263,7 @@ This file is a template layout that can be included in `page-tag.html`.
210
263
  --
211
264
 
212
265
 
266
+
213
267
  `_layouts/post.html`::
214
268
  +
215
269
  --
@@ -258,6 +312,28 @@ I typically use this page as a layout for my "about" page.
258
312
 
259
313
  === Includes
260
314
 
315
+ `_includes/aside_navigation.html`::
316
+
317
+ The first of three elements displayed alongside the page content (or at the end of the page on mobile devices).
318
+ This typically contains blog navigation elements such as 'Recent Articles,' 'Tag Cloud,' etc.
319
+ It's best practice to wrap the content in an `<aside>` element.
320
+
321
+
322
+
323
+ `_includes/aside_info.html`::
324
+
325
+ The second of the three elements, typically providing additional information about the blog (e.g., a link to the RSS feed).
326
+ This content is also ideally wrapped in an `<aside>` element.
327
+
328
+
329
+
330
+ `_includes/aside_more.html`::
331
+
332
+ The third of the three elements is typically used to display links to partner sites, sponsorships, or advertisements relevant to the blog's audience.
333
+ Similar to the other sections, this content is best organized within an `<aside>` element to ensure it complements the main content without disrupting the reader's experience.
334
+
335
+
336
+
261
337
  `_includes/container_end-of-document.html`::
262
338
 
263
339
  An empty file that can be overwritten by the user of the theme.
@@ -266,6 +342,43 @@ It can be used to e.g. append JavaScript commands to the end of the file
266
342
  without having to rewrite a complete layout file.
267
343
 
268
344
 
345
+
346
+ `_includes/container_start-of-main.html`::
347
+
348
+ The content of this file is inserted *above* the main content area (the section containing the page content and blog navigation). The content should be wrapped in a `<div>` element.
349
+
350
+
351
+
352
+ `_includes/container_end-of-main.html`::
353
+
354
+ The content of this file is inserted *below* the main content area — above the footer. The content should be wrapped in a `<div>` element.
355
+
356
+
357
+
358
+ `_includes/container_start-of-page.html`::
359
+
360
+ The content of this file is inserted between the heading and the main content of the page. The content should be enclosed within a `<div>` element.
361
+
362
+
363
+
364
+ `_includes/container_end-of-page.html`::
365
+
366
+ The content of this file is inserted at the end of the page content—directly after the main page content. The content should be enclosed within a `<div>` element.
367
+
368
+
369
+
370
+ `_includes/container_start-of-post.html`::
371
+
372
+ The content of this file is inserted between the tag list and the main content of the post. The content should be enclosed within a `<div>` element.
373
+
374
+
375
+
376
+ `_includes/container_end-of-post.html`::
377
+
378
+ The content of this file is inserted at the end of the post, below the navigation buttons linking to the previous and next posts. The content should be enclosed within a `<div>` element.
379
+
380
+
381
+
269
382
  `_includes/function_list-pages.html`::
270
383
  +
271
384
  --
@@ -284,20 +397,31 @@ This can be useful for your 404 page, which should be generated by Jekyll, but n
284
397
  --
285
398
 
286
399
 
400
+
287
401
  `_includes/function_list-posts.html`::
288
402
  Generates a list containing blog posts.
289
403
 
290
404
 
405
+
291
406
  `_includes/function_post-in-list-short.html`::
292
407
  Generates the code to display a single post in the list of blog posts.
293
408
  An entry consists of the title of the blog post linked to the article.
294
409
  If a permalink is configured for the article, this is indicated by an icon.
295
410
 
296
411
 
412
+
297
413
  `_includes/function_tag-cloud.html`::
298
414
  Generates a tag cloud.
299
415
 
300
416
 
417
+
418
+ `_includes/content_footer-powered-by.html`::
419
+
420
+ Contains the information at the very bottom right of the footer, where the powered-by details are displayed.
421
+ This section can be replaced or removed as desired.
422
+
423
+
424
+
301
425
  `_includes/content_footer-usernames.html`::
302
426
  +
303
427
  --
@@ -317,25 +441,29 @@ username_linkedin: XXXX
317
441
  --
318
442
 
319
443
 
444
+
320
445
  `_includes/function_tag-list.html`::
321
446
  Generates a formatted list of tags.
322
447
  This is e.g. used to display the tags of a blog post.
323
448
 
449
+
450
+
324
451
  `_includes/function_show-dates.html`::
325
452
  +
326
453
  --
327
454
  Show the creation date and (if present) the date a blog post was last edited.
328
- The date of the last edit can be configured by setting a value for the page-variable `lastedit`.
455
+ The date of the last edit can be configured by setting a value for the page-variable `last_modified_at`.
329
456
 
330
457
  In AsciiDoc this would be e.g.:
331
458
 
332
459
  [source, asciidoc]
333
460
  ----
334
- :page-lastedit: 2020-10-29
461
+ :page-last_modified_at: 2024-10-27
335
462
  ----
336
463
  --
337
464
 
338
465
 
466
+
339
467
  `_includes/function_show-prev-next-navigation.html`::
340
468
  Displays links to the previous and the next post of your blog.
341
469
 
@@ -365,6 +493,7 @@ tag_title_prefix: "Posts tagged with: "
365
493
  --
366
494
 
367
495
 
496
+
368
497
  === Styles
369
498
 
370
499
  In order to contribute SCSS-code, simply add a file `_sass/user.scss`, containing your SCSS-code.
@@ -384,6 +513,7 @@ additional-stylesheets:
384
513
  ----
385
514
 
386
515
 
516
+
387
517
  === Data-files
388
518
 
389
519
  `_data/tag-description.yml`::
@@ -425,6 +555,9 @@ I use, for example:
425
555
  --
426
556
 
427
557
 
558
+
559
+
560
+
428
561
  == Settings
429
562
 
430
563
  === Language
@@ -438,6 +571,8 @@ The default is `en`.
438
571
 
439
572
 
440
573
 
574
+
575
+
441
576
  == Contributing
442
577
 
443
578
  Bug reports and pull requests are welcome on GitLab at https://gitlab.com/jekyll-theme-endless/jekyll-theme-endless.gitlab.io.
@@ -446,6 +581,8 @@ and contributors are expected to adhere to the http://contributor-covenant.org[C
446
581
 
447
582
 
448
583
 
584
+
585
+
449
586
  == Development
450
587
 
451
588
  To set up your environment to develop this theme:
@@ -470,6 +607,8 @@ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-t
470
607
 
471
608
 
472
609
 
610
+
611
+
473
612
  == License
474
613
 
475
614
  The theme is available as open source under the terms of the https://opensource.org/licenses/MIT[MIT License].
data/_config.yml CHANGED
@@ -54,7 +54,7 @@ asciidoctor:
54
54
 
55
55
  # `plugins` specifies the list of plugins that are installed via RubyGems and managed through Bundler.
56
56
  # These are typically shared or third-party plugins available in the RubyGems ecosystem.
57
- #plugins:
57
+ plugins:
58
58
  # Required to load the plugin that generates the tag pages.
59
59
  # jekyll-theme-endless is both a theme AND a plugin.
60
60
  # NOT required in the repository that provides the plugin.
@@ -62,8 +62,9 @@ asciidoctor:
62
62
  # Local plugins are configured via the `plugins_dir` setting,
63
63
  # which in this project has been outsourced to `_data.yml`.
64
64
  #- jekyll-theme-endless
65
- # Feed plugin currently not used
66
- # - jekyll-feed
65
+ # Generate an RSS-file with the blog-content
66
+ # See https://github.com/jekyll/jekyll-feed for configuration
67
+ - jekyll-feed
67
68
 
68
69
  # Exclude files from processing.
69
70
  #
@@ -1,3 +1,34 @@
1
+ GDPR:
2
+ short: "GDPR (General Data Protection Regulation) is a regulation enacted by the European Union to protect individuals' privacy and personal data. It imposes strict guidelines on how organizations collect, store, process, and share personal data of EU residents. Compliance with GDPR is essential for businesses handling such data, with requirements including data protection by design, user consent, and the right to access and erase data. Non-compliance can result in significant penalties."
3
+ Schema.org:
4
+ short: "Schema.org is a collaborative, standardized vocabulary that provides structured data markup to help search engines better understand the content on web pages. By adding Schema.org tags to HTML, content such as events, reviews, and products can appear as rich snippets in search results, enhancing visibility and user engagement. In Jekyll, Schema.org markup can be added to templates to improve SEO and provide more context to search engines."
5
+ SEO:
6
+ short: "SEO (Search Engine Optimization) refers to strategies and practices aimed at improving a website's visibility in search engine results. Effective SEO enhances a site's ranking by optimizing content, keywords, meta tags, and site structure to attract more organic traffic. In Jekyll, SEO best practices can be implemented through plugins, structured data, and thoughtful content organization."
7
+ known issues:
8
+ short: "Known issues are documented problems or limitations within a software application that are acknowledged by developers but may not yet have a solution. These can include bugs, compatibility issues, or performance limitations. Known issues are often shared in release notes or support documentation to keep users informed and to suggest potential workarounds until fixes are available."
9
+ A&B:
10
+ short: "Tag for testing the escaping bahaviour of Markdown and AsciiDoc frontmatter."
11
+ escaping:
12
+ short: "The process of using special characters or sequences to prevent specific symbols from being interpreted in code or markup, often necessary for handling HTML, YAML, or Markdown."
13
+ security:
14
+ short: "Measures and practices used to protect software, systems, and data from unauthorized access, attacks, or vulnerabilities, essential in all stages of development."
15
+ special chars:
16
+ short: "Characters with special functions in code or markup, like &, <, >, which may need to be escaped to ensure proper display or functionality in web content or code."
17
+ test-page:
18
+ short: "A page created to test functionality, design, or layout before publishing. Useful for checking formatting, scripts, or custom styles in a controlled environment."
19
+ frontmatter:
20
+ short: "A YAML or JSON block at the beginning of a Jekyll file that contains metadata about the page, such as title, layout, and tags, which Jekyll uses to generate content dynamically."
21
+ permalink:
22
+ short: "A permalink (permanent link) is a stable URL that links to a specific page, post, or content piece on a website. Permalinks are designed to remain unchanged indefinitely, ensuring that links to the content will not break over time. In Jekyll, permalinks can be customized to control the URL structure for individual pages or posts, improving both user experience and SEO."
23
+ release notes:
24
+ short: "Release notes are documents that provide information about new features, bug fixes, improvements, and known issues in a new software version. They help users and developers understand changes between versions and can include details on compatibility, upgrade steps, and resolved issues. Release notes are essential for keeping stakeholders informed about software progress and updates."
25
+ pages:
26
+ short: "Static or dynamic web pages in a Jekyll site, typically containing content that isn't organized chronologically, such as 'About' or 'Contact' sections."
27
+ _includes:
28
+ short: "A special directory in Jekyll where reusable code snippets or partial templates, such as headers, footers, or navigation menus, are stored. Files in the _includes folder can be inserted into other templates using Liquid tags, allowing for modular and maintainable site layouts."
29
+ RSS:
30
+ short: "RSS (Really Simple Syndication) is a web feed format that allows users and applications to receive updates from websites in a standardized format. By subscribing to an RSS feed, users can stay informed about new content, such as blog posts or news articles, without visiting the site directly. RSS feeds are commonly used in news aggregators and feed readers."
31
+
1
32
  TOC:
2
33
  short: "TOC (Table of Contents) is a navigational aid that lists the main sections or headings of a document, allowing readers to quickly find and jump to specific content. In web content, a TOC is often generated automatically based on headings and can be particularly useful for lengthy pages or articles."
3
34
  .gitlab-ci.yml:
data/_data.yml CHANGED
@@ -6,13 +6,12 @@
6
6
 
7
7
  # Language. Is overriden by value of page.lang.
8
8
  lang: en
9
- # Brand is not escaped in the layout.
10
- # Thus, HTML-commands can be used.
11
- brand: '"<i>endless</i>"-Theme'
12
9
 
13
- # Title and subtile of the page
14
- title: jekyll-theme-endless
15
- subtitle: A Jekyll theme ready for AsciiDoc
10
+ # NOTE: The values of the variables 'brand', 'title' and 'subtitle'
11
+ # are NOT escaped in the layout. This allows you to use HTML commands.
12
+ brand: '"<em>endless</em>"-Theme'
13
+ title: "<code>jekyll-theme-endless</code>"
14
+ subtitle: "A Jekyll Theme ready for <strong><em>AsciiDoc</em></strong>"
16
15
 
17
16
  author: Sven Boekhoff
18
17
  copydate: 2020-2024
@@ -39,6 +38,10 @@ tag_dir: posts-for-tag
39
38
  # Prefix to be used for the title of the tag-page
40
39
  # default: `Tag: `
41
40
  tag_title_prefix: "Posts tagged with: "
41
+ # Should the tag descriptions be displayed as titles in the tag cloud?
42
+ # This can make individual pages very large, especially with a high number of terms.
43
+ # On the individual tag pages, the description will still be displayed regardless of this setting.
44
+ tag_show_description_in_tagcloud: true
42
45
 
43
46
  # You can dynamically add import statements to assets/css/main.css
44
47
  # Just add the path (relative to the folder `_sass`) to this array
@@ -46,6 +49,11 @@ tag_title_prefix: "Posts tagged with: "
46
49
  additional-stylesheets:
47
50
  - "../theme-specific/debug"
48
51
 
52
+ # Use CDN for external JavaScript libraries (e.g., jQuery, Bootstrap).
53
+ # Set to true to load scripts from a CDN for faster loading times.
54
+ # If not specified, defaults to true.
55
+ use-cdn: true
56
+
49
57
 
50
58
 
51
59
 
@@ -0,0 +1,13 @@
1
+ {% comment %}
2
+ This file contains the second of the three elements, which provides additional information about the blog, such as a link to the RSS feed.
3
+ This content is also best organized within an <aside> element to keep it distinct from the main content.
4
+ {% endcomment %}
5
+ <aside>
6
+ <h3>InfoBox</h3>
7
+ <div class="col">
8
+ <p class="rss-subscribe">
9
+ You can also follow this blog <a href="{{ "/feed.xml" | relative_url }}" class="rss">via RSS</a>.
10
+ </p>
11
+ </div>
12
+ </aside>
13
+
@@ -0,0 +1,14 @@
1
+ {% comment %}
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’s audience,
4
+ and it is also best placed within an <aside> element.
5
+
6
+ <aside>
7
+ <h3>Ads</h3>
8
+ <div class="col">
9
+ Ads
10
+ </div>
11
+ </aside>
12
+
13
+ {% endcomment %}
14
+
@@ -0,0 +1,30 @@
1
+ {% comment %}
2
+ This file contains the first of the three elements displayed alongside the page content (or at the end of the page on mobile devices).
3
+ It typically includes blog navigation, such as 'Recent Articles' or 'Tag Cloud,' and is ideally wrapped in an <aside> element.
4
+ {% endcomment %}
5
+ <aside>
6
+ <h3>Blog Navigation</h3>
7
+
8
+ <!-- Number of posts -->
9
+ <p>
10
+ Total number of posts: <strong>{{ site.posts | size }}</strong>
11
+ </p>
12
+
13
+ <!-- Recent Posts -->
14
+ <h4>Recent Posts:</h4>
15
+ <ul>
16
+ {% assign postlist = site.posts | sort:"date" | reverse %}
17
+ {% for post in postlist offset: 0 limit: 5 %}
18
+ {% comment %}
19
+ 'title' is not escaped, as the value should already be escaped by AsciiDoc through asciidocify.
20
+ {% endcomment %}
21
+ <li><a href="{{ post.url | relative_url }}">{{ post.title }}</a></li>
22
+ {% endfor %}
23
+ </ul>
24
+
25
+ <!-- Tag Cloud -->
26
+ <h4>Tag Cloud:</h4>
27
+ {% include function_tag-cloud.html %}
28
+
29
+ </aside>
30
+
@@ -0,0 +1,14 @@
1
+ {% comment %}
2
+ This document is empty by default.
3
+ It can be supplemented with user content that will be displayed below the main content area — above the footer.
4
+ This allows you to add content without needing to modify the entire layout.
5
+ The content should be enclosed within a <div> element.
6
+
7
+ If you want to check the position of this element, simply move the following code block from the comment section down to where it will render.
8
+
9
+ <div style="background-color: blueviolet; font-size: 3em; font-weight: bold; text-align: center;">
10
+ END of MAIN
11
+ </div>
12
+
13
+ {% endcomment %}
14
+
@@ -0,0 +1,14 @@
1
+ {% comment %}
2
+ This document is empty by default.
3
+ It can be extended with user content that will display at the end of the page content — directly after the main content.
4
+ This allows you to add content without needing to change the entire layout.
5
+ The content should be enclosed within a <div> element.
6
+
7
+ To check the position of this element, simply move the following code block from the comment section down to where it will render.
8
+
9
+ <div style="background-color: blueviolet; font-size: 3em; font-weight: bold; text-align: center;">
10
+ END of PAGE
11
+ </div>
12
+
13
+ {% endcomment %}
14
+
@@ -0,0 +1,14 @@
1
+ {% comment %}
2
+ This document is empty by default.
3
+ It can be extended with user content that will display at the end of the post, below the navigation buttons linking to the previous and next posts.
4
+ This allows you to add content without needing to modify the entire layout.
5
+ The content should be enclosed within a <div> element.
6
+
7
+ To check the position of this element, simply move the following code block from the comment section down to where it will render.
8
+
9
+ <div style="background-color: blueviolet; font-size: 3em; font-weight: bold; text-align: center;">
10
+ END of POST
11
+ </div>
12
+
13
+ {% endcomment %}
14
+
@@ -0,0 +1,14 @@
1
+ {% comment %}
2
+ This document is empty by default.
3
+ It can be extended with user content that will display above the main content area (the section containing the page content and blog navigation).
4
+ This allows you to add content without needing to modify the entire layout.
5
+ The content should be enclosed within a <div> element.
6
+
7
+ To check the position of this element, simply move the following code block from the comment section down to where it will render.
8
+
9
+ <div style="background-color: greenyellow; font-size: 3em; font-weight: bold; text-align: center;">
10
+ START of MAIN
11
+ </div>
12
+
13
+ {% endcomment %}
14
+
@@ -0,0 +1,14 @@
1
+ {% comment %}
2
+ This document is empty by default.
3
+ It can be extended with user content that will display between the heading and the main content of the page.
4
+ This allows you to add content without needing to modify the entire layout.
5
+ The content should be enclosed within a <div> element.
6
+
7
+ To check the position of this element, simply move the following code block from the comment section down to where it will render.
8
+
9
+ <div style="background-color: greenyellow; font-size: 3em; font-weight: bold; text-align: center;">
10
+ START of PAGE
11
+ </div>
12
+
13
+ {% endcomment %}
14
+
@@ -0,0 +1,14 @@
1
+ {% comment %}
2
+ This document is empty by default.
3
+ It can be extended with user content that will display between the tag list and the main content of the post.
4
+ This allows you to add content without needing to modify the entire layout.
5
+ The content should be enclosed within a <div> element.
6
+
7
+ To check the position of this element, simply move the following code block from the comment section down to where it will render.
8
+
9
+ <div style="background-color: greenyellow; font-size: 3em; font-weight: bold; text-align: center;">
10
+ START of POST
11
+ </div>
12
+
13
+ {% endcomment %}
14
+
@@ -0,0 +1,7 @@
1
+ {% comment %}
2
+ "Powered by" information in the footer.
3
+ {% endcomment %}
4
+
5
+ <p>
6
+ Powered by <a href="https://jekyll-theme-endless.gitlab.io/">jekyll-theme-endless</a>.
7
+ </p>
@@ -6,31 +6,31 @@ List of contacts in adress-bar.
6
6
  {% if site.username_gitlab %}
7
7
  <li>
8
8
  <i class="fa fa-gitlab"></i>
9
- <a href="https://gitlab.com/{{ site.username_gitlab }}">{{ site.username_gitlab }}</a>
9
+ <a href="https://gitlab.com/{{ site.username_gitlab | escape }}">{{ site.username_gitlab | escape }}</a>
10
10
  </li>
11
11
  {% endif %}
12
12
  {% if site.username_github %}
13
13
  <li>
14
14
  <i class="fa fa-github"></i>
15
- <a href="https://github.com/{{ site.username_github }}">{{ site.username_github }}</a>
15
+ <a href="https://github.com/{{ site.username_github | escape }}">{{ site.username_github | escape }}</a>
16
16
  </li>
17
17
  {% endif %}
18
18
  {% if site.username_xing %}
19
19
  <li>
20
20
  <i class="fa fa-xing"></i>
21
- <a href="https://www.xing.com/profile/{{ site.username_xing }}">{{ site.username_xing }}</a>
21
+ <a href="https://www.xing.com/profile/{{ site.username_xing | escape }}">{{ site.username_xing | escape }}</a>
22
22
  </li>
23
23
  {% endif %}
24
24
  {% if site.username_linkedin %}
25
25
  <li>
26
26
  <i class="fa fa-linkedin"></i>
27
- <a href="https://de.linkedin.com/in/{{ site.username_linkedin }}">{{ site.username_linkedin }}</a>
27
+ <a href="https://de.linkedin.com/in/{{ site.username_linkedin | escape }}">{{ site.username_linkedin | escape }}</a>
28
28
  </li>
29
29
  {% endif %}
30
30
  {% if site.email %}
31
31
  <li>
32
32
  <i class="fa fa-at"></i>
33
- <a href="mailto:{{ site.email }}">{{ site.email }}</a>
33
+ <a href="mailto:{{ site.email | escape }}">{{ site.email | escape }}</a>
34
34
  </li>
35
35
  {% endif %}
36
36
  </ul>
@@ -24,7 +24,10 @@ Descending order according to their position value.
24
24
 
25
25
  {% if label and position >= 0 %}
26
26
  <li class="nav-item">
27
- <a class="nav-link" href="{{ current_page.url }}">{{ label }}</a>
27
+ {% comment %}
28
+ 'label' is not escaped, as the value should already be escaped by AsciiDoc through asciidocify.
29
+ {% endcomment %}
30
+ <a class="nav-link" href="{{ current_page.url | relative_url }}">{{ label }}</a>
28
31
  </li>
29
32
  {% endif %}
30
33
 
@@ -22,4 +22,7 @@ Call via:
22
22
  {% endcomment %}
23
23
  <i class="fa fa-link text-success" title="This article has a permalink."></i>
24
24
  {% endif %}
25
- <a href="{{ post.url }}">{{ post.title }}</a>
25
+ {% comment %}
26
+ 'title' is not escaped, as the value should already be escaped by AsciiDoc through asciidocify.
27
+ {% endcomment %}
28
+ <a href="{{ post.url | relative_url }}">{{ post.title }}</a>