j1-template 2023.4.4 → 2023.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/layout_metadata_generator.html +8 -1
  3. data/assets/themes/j1/adapter/js/analytics.js +6 -3
  4. data/lib/j1/version.rb +1 -1
  5. data/lib/starter_web/Gemfile +2 -2
  6. data/lib/starter_web/README.md +5 -5
  7. data/lib/starter_web/_config.yml +11 -10
  8. data/lib/starter_web/_data/modules/analytics.yml +4 -3
  9. data/lib/starter_web/_data/modules/defaults/analytics.yml +1 -1
  10. data/lib/starter_web/_data/templates/feed.xml +1 -1
  11. data/lib/starter_web/_data/templates/seo-tags.html +3 -6
  12. data/lib/starter_web/_data/templates/sitemap.xml +7 -5
  13. data/lib/starter_web/_plugins/filter/debug.rb +1 -1
  14. data/lib/starter_web/_plugins/filter/encodeBase64.rb +1 -1
  15. data/lib/starter_web/_plugins/filter/encryptAES.rb +1 -1
  16. data/lib/starter_web/_plugins/filter/filters.rb +1 -1
  17. data/lib/starter_web/_plugins/filter/liquify.rb +22 -0
  18. data/lib/starter_web/_plugins/filter/minifyJS.rb +1 -1
  19. data/lib/starter_web/_plugins/filter/minifyJSON.rb +1 -1
  20. data/lib/starter_web/_plugins/filter/prettify.rb +1 -1
  21. data/lib/starter_web/_plugins/filter/xml_prettify.rb +1 -1
  22. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  23. data/lib/starter_web/_plugins/seo/j1-seo-tags.rb +21 -19
  24. data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +5 -7
  25. data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +3 -0
  26. data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-static-site-generators.adoc +4 -1
  27. data/lib/starter_web/collections/posts/public/featured/_posts/2022-02-01-about-j1.adoc +3 -0
  28. data/lib/starter_web/index.html +12 -7
  29. data/lib/starter_web/package.json +2 -9
  30. data/lib/starter_web/pages/public/about/features.adoc +3 -3
  31. data/lib/starter_web/pages/public/about/reporting_issues.adoc +6 -3
  32. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +4 -1
  33. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +4 -1
  34. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +4 -1
  35. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/000_intro.asciidoc +1 -1
  36. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.a2p +3 -3
  37. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +5 -2
  38. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +5 -2
  39. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +5 -2
  40. data/lib/starter_web/pages/public/blog/navigator/archive/allview.html +5 -2
  41. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +5 -2
  42. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +5 -2
  43. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +5 -2
  44. data/lib/starter_web/pages/public/blog/navigator/index.html +5 -2
  45. data/lib/starter_web/pages/public/features/general.adoc +11 -8
  46. data/lib/starter_web/pages/public/features/template.adoc +18 -15
  47. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +4 -1
  48. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +4 -1
  49. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +3 -1
  50. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +3 -1
  51. data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +3 -1
  52. data/lib/starter_web/pages/public/learn/bs_sass_variables/bs_sass_variables.adoc +3 -1
  53. data/lib/starter_web/pages/public/learn/core_web_vitals/core_web_vitals.adoc +3 -1
  54. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_bootstrap.asciidoc +2 -2
  55. data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +13 -10
  56. data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +7 -4
  57. data/lib/starter_web/pages/public/learn/roundtrip/highlghter_rouge.adoc +5 -2
  58. data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +16 -13
  59. data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +9 -6
  60. data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +8 -5
  61. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +20 -17
  62. data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +9 -6
  63. data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +10 -7
  64. data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +8 -5
  65. data/lib/starter_web/pages/public/learn/where_to_go.adoc +10 -7
  66. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +4 -1
  67. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +4 -1
  68. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +5 -2
  69. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +4 -1
  70. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +12 -9
  71. data/lib/starter_web/pages/public/plans/plans.adoc +4 -1
  72. data/lib/starter_web/pages/public/tools/cheatsheet/gem.adoc +4 -1
  73. data/lib/starter_web/pages/public/tools/cheatsheet/git.adoc +4 -1
  74. data/lib/starter_web/pages/public/tools/cheatsheet/j1.adoc +4 -1
  75. data/lib/starter_web/pages/public/tools/cheatsheet/yaml.adoc +6 -3
  76. data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +11 -8
  77. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  78. data/lib/starter_web/utilsrv/package.json +1 -1
  79. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a0602a4e21fb5ba0f427922a2733fc0bda3ae77ca06dd50f18b02220772e575
4
- data.tar.gz: b8a7226a6380d3f2b47a48a6d8f3dfee9cf7012fc356b400815eefbfcd546a07
3
+ metadata.gz: 3357c9d7d9711c56af69d9c6ee3cc05048714bed168b9454ff5451d97c754df2
4
+ data.tar.gz: 8fc09dac530f04af886ca684467a4f05041945bb57e0f5fd3db8a49b242ff45a
5
5
  SHA512:
6
- metadata.gz: e10f639399bce043328a4ab4ff32468e62cada7a0d29102665ca0b3262106d35876305499e9cd169c75e0855cda48352fda78bbb508d20e20c2af8dec2f870f6
7
- data.tar.gz: 8dd598470ce5d3406a951a7df9c8d362f07b20bc8b85a12ae2e3568b6b100aa919d506d0a8b4ee7b6cf1efec24ee7349ee58dbfab948ddbacee63946d753504c
6
+ metadata.gz: 18752113f0ee6d0eb35b5b3e907b4ca941926a06d908f9db77cbc3fb5038eee917e9c0b182fecafe1a271a99f61a3f948f7fa6edc6d34fc929f13eb63a48c7ec
7
+ data.tar.gz: 61b9f4c6bbfb21759f6ba504bbc166433c67c8c186781105a862dc3badbf549f817c804811770677050b327333d9e77a8faf19e4d1f856e59e305c870105a7c7
@@ -55,6 +55,13 @@
55
55
  {% assign ext_js = 'js' %}
56
56
  {% endcase %}
57
57
 
58
+ {% if site.keywords %}
59
+ {% assign keywords = site.keywords %}
60
+ {% elsif page.keywords %}
61
+ {% assign keywords = page.keywords %}
62
+ {% endif %}
63
+
64
+
58
65
  {% comment %} Main
59
66
  -------------------------------------------------------------------------------- {% endcomment %}
60
67
  <!-- [INFO ] [j1.layout.meta_data_generator.html ] [ start meta-data processing: place meta tags (taken from site config|page frontmatter) ] -->
@@ -69,7 +76,7 @@
69
76
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
70
77
 
71
78
  <!-- [INFO ] [j1.layout.meta_data_generator.html ] [ added keyords for backwards compatability ] -->
72
- <meta name="keywords" content="{{site.keywords}}">
79
+ <meta name="keywords" content="{{keywords}}">
73
80
 
74
81
  {% if template_config.translation.enabled %}
75
82
  <!-- [INFO ] [j1.layout.meta_data_generator.html ] [ add google translator meta tag to enable customized translations ] -->
@@ -165,7 +165,7 @@ var logText;
165
165
  // initialize state flag
166
166
  _this.setState('started');
167
167
  logger.debug('\n' + 'state: ' + _this.getState());
168
- logger.info('\n' + 'module is being initialized');
168
+ logger.info('\n' + 'module initializing: started');
169
169
 
170
170
  // remove cookies on invalid GA config or left from a previous
171
171
  // session/page view if they exists
@@ -216,7 +216,10 @@ var logText;
216
216
  GTagOptIn.register(providerID);
217
217
  GTagOptIn.optOut();
218
218
  }
219
-
219
+ _this.setState('finished');
220
+ logger.debug('\n' + 'state: ' + _this.getState());
221
+ logger.info('\n' + 'module initializing: finished');
222
+ clearInterval(dependencies_met_page_ready);
220
223
  {% when "custom" %}
221
224
  // [INFO ] [j1.adapter.analytics ] [ place provider: Custom Provider ]
222
225
  {% endcase %}
@@ -224,9 +227,9 @@ var logText;
224
227
  {% else %}
225
228
  logger = log4javascript.getLogger('j1.adapter.analytics');
226
229
  logger.info('\n' + 'Google Analytics: disabled');
230
+ clearInterval(dependencies_met_page_ready);
227
231
  {% endif %}
228
232
  }
229
- clearInterval(dependencies_met_page_ready);
230
233
  }, 10);
231
234
 
232
235
  return;
data/lib/j1/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module J1
2
- VERSION = '2023.4.4'
2
+ VERSION = '2023.5.2'
3
3
  end
@@ -75,11 +75,11 @@ end
75
75
  # Specify the THEME GEM used for the project
76
76
 
77
77
  # Loaded from RubyGems
78
- gem 'j1-template', '~> 2023.4.0'
78
+ gem 'j1-template', '~> 2023.5.2'
79
79
 
80
80
  # Loaded from gem.fury.io
81
81
  #source 'https://gem.fury.io/jekyll-one-org/' do
82
- # gem 'j1-template', '~> 2023.4.0'
82
+ # gem 'j1-template', '~> 2023.5.2'
83
83
  #end
84
84
 
85
85
  # ------------------------------------------------------------------------------
@@ -379,7 +379,7 @@ This command creates a **initial** project in folder **my-starter**.
379
379
  2023-02-28 18:12:12 - GENERATE: Resolving dependencies...
380
380
  2023-02-28 18:12:12 - GENERATE: Using bundler 2.3.7
381
381
  ...
382
- 2023-02-28 18:12:12 - GENERATE: Using j1-template 2023.4.4
382
+ 2023-02-28 18:12:12 - GENERATE: Using j1-template 2023.5.2
383
383
  2023-02-28 18:12:12 - GENERATE: Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
384
384
  2023-02-28 18:12:12 - GENERATE: Bundled gems are installed into `../../.gem`
385
385
  2023-02-28 18:12:12 - GENERATE: C:/Users/xxx/.gem/ruby/3.1.0;C:/DevTools/Ruby31-x64/lib/ruby/gems/3.1.0;
@@ -415,7 +415,7 @@ commands are available as well.
415
415
  2023-02-28 18:17:48 - SETUP: Initialize the project ...
416
416
  2023-02-28 18:17:48 - SETUP: Be patient, this will take a while ...
417
417
  2023-02-28 18:17:49 - SETUP:
418
- 2023-02-28 18:17:49 - SETUP: > j1@2023.4.4 setup C:\Users\xxx\j1-projects\my-starter
418
+ 2023-02-28 18:17:49 - SETUP: > j1@2023.5.2 setup C:\Users\xxx\j1-projects\my-starter
419
419
  2023-02-28 18:17:49 - SETUP: > npm --silent run setup-start && npm --silent run setup-base && run-s -s setup:*
420
420
  2023-02-28 18:17:49 - SETUP:
421
421
  2023-02-28 18:17:50 - SETUP: Setup project for first use ..
@@ -460,7 +460,7 @@ browser. Let's start the journey ...
460
460
  Check setup state of the J1 project ...
461
461
  2023-02-28 18:26:18 - SITE: Starting up your site ...
462
462
  2023-02-28 18:26:18 - SITE:
463
- 2023-02-28 18:26:18 - SITE: > j1@2023.4.4 j1-site C:\Users\jadams\j1-projects\my-starter
463
+ 2023-02-28 18:26:18 - SITE: > j1@2023.5.2 j1-site C:\Users\jadams\j1-projects\my-starter
464
464
  2023-02-28 18:26:18 - SITE: > run-p -s j1-site:*
465
465
  2023-02-28 18:26:18 - SITE:
466
466
  2023-02-28 18:26:20 - SITE: Startup UTILSRV ..
@@ -499,7 +499,7 @@ Check setup state of the J1 project ...
499
499
  REBUILD: Rebuild the projects website ...
500
500
  REBUILD: Be patient, this will take a while ...
501
501
  2023-02-28 18:45:09 - REBUILD:
502
- 2023-02-28 18:45:09 - REBUILD: > j1@2023.4.4 rebuild C:\Users\xxx\j1-projects\my-starter
502
+ 2023-02-28 18:45:09 - REBUILD: > j1@2023.5.2 rebuild C:\Users\xxx\j1-projects\my-starter
503
503
  2023-02-28 18:45:09 - REBUILD: > run-s -s rebuild:* && run-s -s post-rebuild:*
504
504
  2023-02-28 18:45:09 - REBUILD:
505
505
  2023-02-28 18:45:10 - REBUILD: Rebuild site incremental ..
@@ -547,7 +547,7 @@ using Lerna for all packages:
547
547
  2023-02-28 18:29:07 - RESET: Reset the project to factory state ...
548
548
  2023-02-28 18:29:07 - RESET: Be patient, this will take a while ...
549
549
  2023-02-28 18:29:08 - RESET:
550
- 2023-02-28 18:29:08 - RESET: > j1@2023.4.4 reset C:\Users\xxx\j1-projects\my-starter
550
+ 2023-02-28 18:29:08 - RESET: > j1@2023.5.2 reset C:\Users\xxx\j1-projects\my-starter
551
551
  2023-02-28 18:29:08 - RESET: > run-s -s reset:*
552
552
  2023-02-28 18:29:08 - RESET:
553
553
  2023-02-28 18:29:08 - RESET: Reset project to factory state ..
@@ -53,7 +53,7 @@ environment: development
53
53
  # ------------------------------------------------------------------------------
54
54
  # Sets the build version of the site
55
55
  #
56
- version: 2023.4.4
56
+ version: 2023.5.2
57
57
 
58
58
  # copyright
59
59
  # ------------------------------------------------------------------------------
@@ -216,17 +216,18 @@ doctype: html
216
216
  # default: false
217
217
  # ------------------------------------------------------------------------------
218
218
  #
219
- title: Starter
220
- tagline: The Build-In Theme
219
+ title: J1 Starter
220
+ title_extention: Free Template for Jekyll and Bootstrap
221
+
221
222
  description: >
222
- Jekyll One Starter Theme. This template gives web developers
223
- and hobbyists a clean implementation in Jekyll for starting
224
- new projects and combines the best of open source software
225
- for the Web. Jekyll One is open source and the modules packed
226
- as well. No pain for private or professional purposes.
223
+ J1 Template gives web developers and hobbyists a clean
224
+ implementation in Jekyll for starting new projects
225
+ based on Bootstap V5. The template combines the best
226
+ software for the Web. Jekyll One is open source,
227
+ free to use, and the modules packed as well.
227
228
  keywords: >
228
- opensource, free, j1, template, jekyll, jekyllone, web, sites,
229
- static, jamstack
229
+ open source, free, template, jekyll, jekyllone, web,
230
+ sites, static, jamstack, bootstap
230
231
 
231
232
  # Crawling/Indexing ENABLED for default. Settings managed page-wise using
232
233
  # frontmatter defaults or by page default settings to make sure that only
@@ -23,14 +23,15 @@ description:
23
23
  # User configuration settings
24
24
  #
25
25
  settings:
26
- enabled: false
27
- trackingID: '<your-tracking-id>'
26
+ enabled: true
27
+ skipAllHosts: localhost, 127.0.0.1
28
+ trackingID: <your-tracking-id>
28
29
 
29
30
  # ----------------------------------------------------------------------------
30
31
  # Provider settings
31
32
  # ----------------------------------------------------------------------------
32
33
  google:
33
- anonymizeIP: true
34
+ anonymizeIP: false
34
35
 
35
36
  # ------------------------------------------------------------------------------
36
37
  # END config
@@ -98,7 +98,7 @@ defaults:
98
98
  # --------------------------------------------------------------------------
99
99
  #
100
100
  optInOut: true
101
- anonymizeIP: false
101
+ anonymizeIP: true
102
102
 
103
103
  # ------------------------------------------------------------------------------
104
104
  # END config
@@ -57,7 +57,7 @@
57
57
  <id>{{ page.url | absolute_url | xml_escape }}</id>
58
58
  <post_limited>{{ limit_posts }}</post_limited>
59
59
  <template_name>J1 Theme</template_name>
60
- <template_version>2023.4.4</template_version>
60
+ <template_version>2023.5.2</template_version>
61
61
 
62
62
  {% assign title = site.title | default: site.name %}
63
63
  {% if page.collection != "posts" %}
@@ -18,15 +18,12 @@
18
18
 
19
19
  <!-- Begin J1 SEO tags -->
20
20
 
21
- {% if seo_tag.title? %}
22
- <title>{{ seo_tag.title }}</title>
23
- {% endif %}
24
-
25
21
  <meta name="generator" content="Jekyll v{{ jekyll.version }}">
26
22
  <meta name="builder" content="J1 Template v{{ site.version }}">
27
23
 
28
- {% if seo_tag.page_title %}
29
- <meta property="og:title" content="{{ seo_tag.page_title }}">
24
+ {% if seo_tag.title? %}
25
+ <title>{{ seo_tag.title }}</title>
26
+ <meta property="og:title" content="{{ seo_tag.title }}">
30
27
  {% endif %}
31
28
 
32
29
  {% if seo_tag.author.name %}
@@ -18,6 +18,8 @@
18
18
  # -----------------------------------------------------------------------------
19
19
  {% endcomment %}
20
20
 
21
+ {% assign time_now = site.time | date_to_xmlschema %}
22
+
21
23
  {% comment %} main
22
24
  -------------------------------------------------------------------------------- {% endcomment %}
23
25
  <?xml version="1.0" encoding="UTF-8"?>
@@ -31,8 +33,8 @@
31
33
  {% for doc in docs %}
32
34
  <url>
33
35
  <loc>{{ doc.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
34
- {% if doc.last_modified_at or doc.date %}
35
- <lastmod>{{ doc.last_modified_at | default: doc.date | date_to_xmlschema }}</lastmod>
36
+ {% if time_now or doc.last_modified %}
37
+ <lastmod>{{ doc.last_modified | default: time_now | date_to_xmlschema }}</lastmod>
36
38
  {% endif %}
37
39
  </url>
38
40
  {% endfor %}
@@ -42,8 +44,8 @@
42
44
  {% for page in pages %}
43
45
  <url>
44
46
  <loc>{{ page.url | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
45
- {% if page.last_modified_at %}
46
- <lastmod>{{ page.last_modified_at | date_to_xmlschema }}</lastmod>
47
+ {% if time_now or page.last_modified %}
48
+ <lastmod>{{ doc.last_modified | default: time_now | date_to_xmlschema }}</lastmod>
47
49
  {% endif %}
48
50
  </url>
49
51
  {% endfor %}
@@ -52,7 +54,7 @@
52
54
  {% for file in static_files %}
53
55
  <url>
54
56
  <loc>{{ file.path | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
55
- <lastmod>{{ file.modified_time | date_to_xmlschema }}</lastmod>
57
+ <lastmod>{{ doc.last_modified | default: time_now | date_to_xmlschema }}</lastmod>
56
58
  </url>
57
59
  {% endfor %}
58
60
  </urlset>
@@ -1,5 +1,5 @@
1
1
  # ------------------------------------------------------------------------------
2
- # ~/_plugins/debug.rb
2
+ # ~/_plugins/filter/debug.rb
3
3
  # Helper to inspect liquid template variables for Jekyll
4
4
  #
5
5
  # Product/Info:
@@ -1,5 +1,5 @@
1
1
  # ------------------------------------------------------------------------------
2
- # ~/_plugins/encodeBase64.rb
2
+ # ~/_plugins/filter/encodeBase64.rb
3
3
  # Liquid filter for J1 Theme to Base64 encode
4
4
  #
5
5
  # Product/Info:
@@ -1,5 +1,5 @@
1
1
  # ------------------------------------------------------------------------------
2
- # ~/_plugins/encode64JSON.rb
2
+ # ~/_plugins/filter/encode64JSON.rb
3
3
  # Liquid filter for J1 Theme to Base64 encode a JSON string
4
4
  #
5
5
  # Product/Info:
@@ -1,5 +1,5 @@
1
1
  # ------------------------------------------------------------------------------
2
- # ~/_plugins/filters.rb
2
+ # ~/_plugins/filter/filters.rb
3
3
  # Liquid filtersfor J1 Theme
4
4
  #
5
5
  # Product/Info:
@@ -0,0 +1,22 @@
1
+ # ------------------------------------------------------------------------------
2
+ # ~/_plugins/filter/liquify.rb
3
+ # Liquid filter to expand nested liquid-variables in the front matter
4
+ #
5
+ # Product/Info:
6
+ # http://jekyll.one
7
+ #
8
+ # Copyright (C) 2023 Juergen Adams
9
+ #
10
+ # J1 Theme is licensed under the MIT License.
11
+ # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
12
+ # See: http://acegik.net/blog/ruby/jekyll/plugins/howto-nest-liquid-template-variables-inside-yaml-front-matter-block.html
13
+ # ------------------------------------------------------------------------------
14
+ module Jekyll
15
+ module ExpandNestedVariableFilter
16
+ def liquify(input)
17
+ Liquid::Template.parse(input).render(@context)
18
+ end
19
+ end
20
+ end
21
+
22
+ Liquid::Template.register_filter(Jekyll::ExpandNestedVariableFilter)
@@ -1,5 +1,5 @@
1
1
  # ------------------------------------------------------------------------------
2
- # ~/_plugins/uglify.rb
2
+ # ~/_plugins/filter/uglify.rb
3
3
  # Liquid filter for J1 Theme to uglify JS
4
4
  #
5
5
  # Product/Info:
@@ -1,5 +1,5 @@
1
1
  # ------------------------------------------------------------------------------
2
- # ~/_plugins/minifyJSON.rb
2
+ # ~/_plugins/filter/minifyJSON.rb
3
3
  # Liquid filter for J1 Theme to minify a JSON string
4
4
  #
5
5
  # Product/Info:
@@ -1,5 +1,5 @@
1
1
  # ------------------------------------------------------------------------------
2
- # ~/_plugins/prettify.rb
2
+ # ~/_plugins/filter/prettify.rb
3
3
  # Liquid filter for J1 Theme to beautify HTML code
4
4
  #
5
5
  # Product/Info:
@@ -1,5 +1,5 @@
1
1
  # ------------------------------------------------------------------------------
2
- # ~/_plugins/xml_prettify.rb
2
+ # ~/_plugins/filter/xml_prettify.rb
3
3
  # Liquid filter for J1 Theme to beautify XML code
4
4
  #
5
5
  # Product/Info:
@@ -391,6 +391,6 @@ end
391
391
 
392
392
  module Jekyll
393
393
  module J1LunrSearch
394
- VERSION = '2023.4.4'
394
+ VERSION = '2023.5.2'
395
395
  end
396
396
  end
@@ -275,7 +275,7 @@ module Jekyll
275
275
  class Drop < Jekyll::Drops::Drop
276
276
  include Jekyll::SeoTag::UrlHelper
277
277
 
278
- TITLE_SEPARATOR = " | "
278
+ TITLE_SEPARATOR = " - "
279
279
  FORMAT_STRING_METHODS = [
280
280
  :markdownify, :strip_html, :normalize_whitespace, :escape_once,
281
281
  ].freeze
@@ -304,41 +304,41 @@ module Jekyll
304
304
  end
305
305
 
306
306
  def site_title
307
- @site_title ||= format_string(site["title"] || site["name"])
307
+ @site_title ||= format_string site["title"]
308
308
  end
309
309
 
310
- def site_tagline
311
- @site_tagline ||= format_string site["tagline"]
310
+ # Page title without site title or description appended
311
+ def page_title
312
+ @page_title ||= format_string page["title"] # || site_title
312
313
  end
313
314
 
314
- def site_description
315
- @site_description ||= format_string site["description"]
315
+ def site_title_extention
316
+ @site_title_extention ||= format_string site["title_extention"]
316
317
  end
317
318
 
318
- # Page title without site title or description appended
319
- def page_title
320
- @page_title ||= format_string(page["title"]) || site_title
319
+ def page_title_extention
320
+ @site_title_extention ||= format_string page["title_extention"]
321
321
  end
322
322
 
323
- def site_tagline_or_description
324
- site_tagline || site_description
323
+ def site_description
324
+ @site_description ||= format_string site["description"]
325
+ end
326
+
327
+ def title_extention_or_description
328
+ page_title_extention || site_title_extention || site_description
325
329
  end
326
330
 
327
331
  # Page title with site title or description appended
328
332
  # rubocop:disable Metrics/CyclomaticComplexity
329
333
  def title
330
334
  @title ||= begin
331
- if site_title && page_title != site_title
332
- page_title + TITLE_SEPARATOR + site_title
333
- elsif site_description && site_title
334
- site_title + TITLE_SEPARATOR + site_tagline_or_description
335
+ if page_title != site_title
336
+ page_title + TITLE_SEPARATOR + title_extention_or_description
335
337
  else
336
- page_title || site_title
338
+ site_title + TITLE_SEPARATOR + title_extention_or_description
337
339
  end
338
340
  end
339
341
 
340
- return page_number + @title if page_number
341
-
342
342
  @title
343
343
  end
344
344
  # rubocop:enable Metrics/CyclomaticComplexity
@@ -382,7 +382,9 @@ module Jekyll
382
382
 
383
383
  def date_modified
384
384
  @date_modified ||= begin
385
- date = page_seo["date_modified"] || page["last_modified_at"].to_liquid || page["date"]
385
+ time_now = Time.new
386
+ current_time = time_now.strftime("%Y-%m-%d %H:%M:%S")
387
+ date = current_time.to_liquid || page["last_modified"].to_liquid
386
388
  filters.date_to_xmlschema(date) if date
387
389
  end
388
390
  end
@@ -1,15 +1,11 @@
1
1
  ---
2
2
  title: Welcome to Jekyll
3
3
  tagline: Websites For Everyone
4
- #date: <%= Time.now.strftime('%Y-%m-%d') %> 00:00:00 +0100
5
- description: >
6
- Jekyll is a static site generator that allows you to build websites using
7
- Markdown, HTML, and CSS. It uses templates and layouts to generate the static
8
- files that make up your website, which can be hosted on any web server.
9
- Jekyll is built with Ruby and requires basic command line knowledge.
4
+ #date: <%= Time.now.strftime('%Y-%m-%d') %>
5
+ #last_modified: 2023-01-01
10
6
 
11
7
  categories: [ Jekyll, Featured ]
12
- tags: [ Template, Jekyll ]
8
+ tags: [ Post, Template ]
13
9
 
14
10
  image:
15
11
  path: /assets/images/modules/attics/katie-moum-1920x1280.jpg
@@ -47,6 +43,8 @@ resource_options:
47
43
  // Place an excerpt at the most top position
48
44
  // -----------------------------------------------------------------------------
49
45
  [role="dropcap"]
46
+ J1 Template is a Bootstrap V5 website template for the static
47
+ site generator Jekyll.
50
48
  Jekyll is a static site generator that allows you to build websites using
51
49
  Markdown, HTML, and CSS. It uses templates and layouts to generate the static
52
50
  files that make up your website, which can be hosted on any web server.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: Cookies
3
3
  tagline: Good To Know
4
+ #last_modified: 2023-01-01
4
5
 
5
6
  categories: [ Technology, Featured ]
6
7
  tags: [ Cookies ]
@@ -47,6 +48,8 @@ resource_options:
47
48
  // Place an excerpt at the most top position
48
49
  // -----------------------------------------------------------------------------
49
50
  [role="dropcap"]
51
+ J1 Template is a Bootstrap V5 website template for the static
52
+ site generator Jekyll.
50
53
  Is it needed for visitors to know what cookies are about? No doubts, you're
51
54
  requested to inform - in Europe for legal reasons. All users visiting websites
52
55
  are bothered all the time to accept cookies. For good reasons.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: Static Site Generators
3
3
  tagline: Top Open Source SSGs
4
+ #last_modified: 2023-01-01
4
5
 
5
6
  categories: [ Jekyll, Featured ]
6
7
  tags: [ Generators ]
@@ -42,7 +43,9 @@ resource_options:
42
43
  // Place an excerpt at the most top position
43
44
  // -----------------------------------------------------------------------------
44
45
  [role="dropcap"]
45
- This article highlights the top OpenSource Projects providing static site
46
+ J1 Template is a Bootstrap V5 website template for the static
47
+ site generator Jekyll.
48
+ This article highlights the top open source projects providing static site
46
49
  generators (SSG) in many different programming languages. You'll find Jekyll
47
50
  one of them. Look at the top open-source SSGs if a full-blown CMS is needed
48
51
  for your project.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: J1 Theme
3
3
  tagline: First Version Out
4
+ #last_modified: 2023-01-01
4
5
 
5
6
  categories: [ Jekyll, Featured ]
6
7
  tags: [ Theme ]
@@ -42,6 +43,8 @@ resource_options:
42
43
  // Place an excerpt at the most top position
43
44
  // -----------------------------------------------------------------------------
44
45
  [role="dropcap"]
46
+ J1 Template is a Bootstrap V5 website template for the static
47
+ site generator Jekyll.
45
48
  The template system J1 was initially developed to create a simple but fully
46
49
  configurable creation tool for document servers. Document servers provide
47
50
  websites, or other digital content like PDF files, to publish the project
@@ -2,16 +2,21 @@
2
2
  layout: home
3
3
  compress: true
4
4
 
5
- title: Starter
5
+ title: J1 Starter
6
6
  tagline: The Build-In Theme
7
+
8
+ date: 2023-01-01 00:00:00
9
+ #last_modified: 2023-07-18 00:00:00
10
+
7
11
  description: >
8
- The Jekyll One Starter theme gives web developers and
9
- hobbyists a clean implementation in Jekyll for starting
10
- new projects and combines the best of open source software
11
- for the Web. Jekyll One is open source and the modules packed
12
- as well. No pain for private or professional purposes.
12
+ J1 Template gives web developers and hobbyists a clean
13
+ implementation in Jekyll for starting new projects
14
+ based on Bootstap V5. The template combines the best
15
+ software for the Web. Jekyll One is open source,
16
+ free to use, and the modules packed as well.
13
17
  keywords: >
14
- Jekyll, Jekyll, JekyllOne, Theme, Template, Ruby, Gem
18
+ open source, free, template, jekyll, jekyllone, web,
19
+ sites, static, jamstack
15
20
 
16
21
  categories: [ Site ]
17
22
  tags: [ Home ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "j1",
4
- "version": "2023.4.4",
4
+ "version": "2023.5.2",
5
5
  "description": "J1 Theme Starter Web",
6
6
  "homepage": "https://your.site",
7
7
  "author": {
@@ -50,12 +50,6 @@
50
50
  "opt_livereload": "--livereload",
51
51
  "opt_livereload_port": "30001"
52
52
  },
53
- "nbi": {
54
- "opt_output_type": "plain",
55
- "opt_credentials": "fake/fake",
56
- "opt_nbi_input_folder": "FULL_PATH_TBD",
57
- "opt_nbi_output_folder": "FULL_PATH_TBD"
58
- },
59
53
  "algolia": {
60
54
  "admin_key": "your-algolia-admin-key"
61
55
  },
@@ -134,8 +128,7 @@
134
128
  "bump:project": "cross-var cross-env npm version $npm_package_config_bumplevel",
135
129
  "bump-no-git": "cross-var cross-env npm --no-git-tag-version version $npm_package_config_bumplevel",
136
130
  "get_version": "run-s get_version:*",
137
- "get_version:jekyll": "cross-var cross-env JEKYLL_ENV=$npm_package_config_mode BUNDLE_GEMFILE=$npm_package_jekyll_gemfile bundle exec jekyll --version",
138
- "nbi-export--all": "cross-var nbinteract -r $npm_package_nbi_opt_nbi_input_folder -o $npm_package_nbi_opt_nbi_output_folder -t $npm_package_nbi_opt_output_type -s $npm_package_nbi_opt_credentials"
131
+ "get_version:jekyll": "cross-var cross-env JEKYLL_ENV=$npm_package_config_mode BUNDLE_GEMFILE=$npm_package_jekyll_gemfile bundle exec jekyll --version"
139
132
  },
140
133
  "dependencies": {
141
134
  "bootstrap": "^5.2",
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  title: Starter
3
3
  tagline: Learn The Features
4
- date: 2022-12-31 00:00:00
4
+ date: 2022-12-31
5
5
  description: >
6
- JekyllOne Theme is a website template for the static
6
+ J1 Template is a Bootstrap V5 website template for the static
7
7
  site generator Jekyll. The Theme is free to use and
8
8
  can be downloaded at RubyGems as a Ruby Gem. The
9
9
  Theme supports a wide range of websites, from a personal
@@ -59,7 +59,7 @@ endif::[]
59
59
  // Page content
60
60
  // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61
61
  [role="dropcap"]
62
- JekyllOne Theme is a website template for the static site generator Jekyll.
62
+ J1 Template is a Bootstrap V5 website template for the static site generator Jekyll.
63
63
  The Theme is free to use and can be downloaded at
64
64
  link:{url-j1--download}[RubyGems, {browser-window--new}] as a Ruby Gem.
65
65
  The Theme supports a wide range of websites, from a personal website,