j1-template 2021.1.29 → 2021.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_post.html +3 -0
  3. data/_includes/themes/j1/procedures/posts/create_series_header.proc +6 -6
  4. data/assets/data/mdil_icons.json +2417 -0
  5. data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.css +1222 -0
  6. data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.min.css +1 -0
  7. data/assets/themes/j1/core/css/icon-fonts/materialdesign.css +1 -1
  8. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +1 -1
  9. data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/eot/materialdesignicons-light-webfont.eot +0 -0
  10. data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/materialdesignicons-light-webfont.woff +0 -0
  11. data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/materialdesignicons-light-webfont.woff2 +0 -0
  12. data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/svg/materialdesignicons-light-webfont.svg +801 -0
  13. data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/ttf/materialdesignicons-light-webfont.ttf +0 -0
  14. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +1 -1
  15. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +1 -1
  16. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +5 -15
  17. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +1 -1
  18. data/assets/themes/j1/modules/mdilPreviewer/css/previewer.css +97 -0
  19. data/assets/themes/j1/modules/mdilPreviewer/css/previewer.min.css +15 -0
  20. data/assets/themes/j1/modules/mdilPreviewer/js/previewer.js +125 -0
  21. data/assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js +15 -0
  22. data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.js +73 -73
  23. data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.min.js +15 -15
  24. data/lib/j1/commands/generate.rb +5 -8
  25. data/lib/j1/version.rb +1 -1
  26. data/lib/starter_web/Gemfile +1 -1
  27. data/lib/starter_web/_config.yml +3 -3
  28. data/lib/starter_web/_data/blocks/banner.yml +4 -5
  29. data/lib/starter_web/_data/modules/j1scroll.yml +2 -2
  30. data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
  31. data/lib/starter_web/_data/resources.yml +22 -0
  32. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  33. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  34. data/lib/starter_web/assets/images/modules/attics/annie-spratt-1920x1280.jpg +0 -0
  35. data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
  36. data/lib/starter_web/assets/images/modules/attics/humble-lamb-1920x1280.jpg +0 -0
  37. data/lib/starter_web/assets/images/modules/attics/library-1920x1280.jpg +0 -0
  38. data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
  39. data/lib/starter_web/assets/images/modules/attics/sigmund-1920x1280.jpg +0 -0
  40. data/lib/starter_web/assets/images/{pages/videos → modules/attics}/szabo-viktor-1920x1280.jpg +0 -0
  41. data/lib/starter_web/assets/images/pages/asciidoc_skeletons/example-pdf-screenshot.png +0 -0
  42. data/lib/starter_web/collections/posts/public/featured/_posts/{2020-01-01-about-cookies.adoc → 2021-01-01-about-cookies.adoc} +0 -0
  43. data/lib/starter_web/collections/posts/public/featured/_posts/{2021-03-01-site-generators.adoc → 2021-02-01-site-generators.adoc} +0 -0
  44. data/lib/starter_web/collections/posts/public/{wikipedia/_posts/2016-11-20-minneapolis.adoc → series/_posts/2020-01-01-post-wiki-series.adoc} +11 -10
  45. data/lib/starter_web/collections/posts/public/{wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc → series/_posts/2020-01-02-post-wiki-series.adoc} +15 -13
  46. data/lib/starter_web/collections/posts/public/{wikipedia/_posts/2016-11-26-columbia-river.adoc → series/_posts/2020-01-03-post-wiki-series.adoc} +28 -11
  47. data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/attributes.asciidoc +0 -0
  48. data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/documents/readme +0 -0
  49. data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/tables/readme +0 -0
  50. data/lib/starter_web/index.html +2 -2
  51. data/lib/starter_web/package.json +1 -1
  52. data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/000_intro.adoc +5 -7
  53. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +43 -0
  54. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +61 -0
  55. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/attributes.asciidoc +95 -0
  56. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/000_intro.asciidoc +54 -0
  57. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/000_basic_example.asciidoc +31 -0
  58. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +111 -0
  59. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +95 -0
  60. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/113_themes.asciidoc +39 -0
  61. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter.asciidoc +8 -0
  62. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/211_language_overview.asciidoc +122 -0
  63. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/212_values.asciidoc +502 -0
  64. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/213_fonts.asciidoc +261 -0
  65. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes.asciidoc +8 -0
  66. data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/a2p.bat +1 -1
  67. data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/a2p.sh +2 -2
  68. data/lib/starter_web/pages/public/asciidoc_skeletons/{book/book.a2p → documentation/documentation.a2p} +2 -8
  69. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +86 -0
  70. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/100_chapter.asciidoc +848 -40
  71. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/200_chapter.asciidoc +149 -38
  72. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +2 -7
  73. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +312 -119
  74. data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +2 -2
  75. data/lib/starter_web/pages/public/previewer/mdil_icons_preview.adoc +76 -0
  76. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  77. data/lib/starter_web/utilsrv/package.json +1 -1
  78. metadata +50 -53
  79. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +0 -128
  80. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +0 -131
  81. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +0 -131
  82. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +0 -132
  83. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/blindtext.asciidoc +0 -11
  84. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/font_icons.asciidoc +0 -23
  85. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/gallery.asciidoc +0 -5
  86. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/lightbox.asciidoc +0 -7
  87. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/documents/chapter_document.asciidoc +0 -9
  88. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/documents/entry_document.asciidoc +0 -3
  89. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/images/image.asciidoc +0 -6
  90. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_2_column.asciidoc +0 -12
  91. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_2_column_options.asciidoc +0 -30
  92. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_3_column.asciidoc +0 -16
  93. data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_4_column.asciidoc +0 -25
  94. data/lib/starter_web/pages/public/asciidoc_skeletons/book/100_chapter.adoc +0 -62
  95. data/lib/starter_web/pages/public/asciidoc_skeletons/book/200_chapter.adoc +0 -64
  96. data/lib/starter_web/pages/public/asciidoc_skeletons/book/900_references.adoc +0 -73
  97. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/attributes.asciidoc +0 -74
  98. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/000_intro.asciidoc +0 -33
  99. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter/100_chapter_document.asciidoc +0 -21
  100. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter/110_chapter_document.asciidoc +0 -36
  101. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter.asciidoc +0 -7
  102. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/200_chapter/200_chapter_document.asciidoc +0 -53
  103. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/200_chapter.asciidoc +0 -5
  104. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/000_intro.asciidoc +0 -23
  105. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/100_chapter_document.asciidoc +0 -33
  106. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/200_chapter_document.asciidoc +0 -26
  107. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/900_sources.asciidoc +0 -81
  108. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references.asciidoc +0 -23
  109. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/tables/110_material_design_icons.asciidoc +0 -102
  110. data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +0 -136
  111. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/100_chapter.asciidoc +0 -60
  112. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/200_chapter.asciidoc +0 -59
  113. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/tables/110_material_design_icons.asciidoc +0 -102
  114. data/lib/starter_web/pages/public/features/modules.adoc +0 -104
  115. data/lib/starter_web/pages/public/features/platform.adoc +0 -104
@@ -1,53 +1,164 @@
1
- // ~/document_base_folder/_includes/documents
2
- // Sublevel Entry Document: 200_chapter.asciidoc
3
- // -----------------------------------------------------------------------------
1
+ == Jekyll Variables
4
2
 
5
- == Chapter 2
3
+ Jekyll traverses your site looking for files to process. Any files with `YAML
4
+ front matter` are subject to processing. For each of these files, Jekyll makes
5
+ a variety of data available via the `Liquid templating system`.
6
6
 
7
- A Lightbox, in general, is a helper which displays enlarged, almost
8
- screen-filling versions of pictures (or videos), while dimming the rest of the
9
- page. The technique, introduced by Lightbox V2, gained widespread popularity
10
- due to its simple and elegant style. The term lightbox is used since then for
11
- Javascript libraries to support such functionality.
7
+ The following is a reference of the available data.
12
8
 
13
- For J1 Template, two different lightboxes can be used:
14
9
 
15
- * Lightbox V2 (lightbox)
16
- * LightGallery
10
+ === Global Variables
17
11
 
18
- The default lightbox used by J1 Template is Lightbox V2, a Javascript library
19
- written by _Lokesh Dhakar_. The name of that (build-in) is simply: lightbox.
20
- For more complex use cases, like a thumbnail gallery preview or video support,
21
- LightGallery can be used alternatively.
12
+ [width="100%", cols="6,6", options="header", role="table-responsive mt-3"]
13
+ |=======================================================================
14
+ |Variable |Description
15
+ |`site` |Sitewide information + configuration settings from
16
+ `_config.yml`. See below for details.
22
17
 
23
- NOTE: The name LightGallery implies a sort of a Gallery, but the library is a
24
- _lightbox_. And, LightGallery provides much more functionality on image-based
25
- data rather than enlarged displaying of images. See the examples below to check
26
- for the differences in comparison to the simpler Lightbox V2 lightbox.
18
+ |`page` |Page specific information + the YAML front
19
+ matter. Custom variables set via the YAML Front Matter will be
20
+ available here. See below for details.
27
21
 
28
- Both lightboxes are fully integrated to be used as standalone modules or to be
29
- used as helpers _under-the-hood_ by other apps or modules focussing on
30
- image-data like gallery or carousel, the build-in carousel module.
22
+ |`layout`
23
+ |Layout specific information + the YAML
24
+ front matter. Custom variables set via the YAML Front Matter in layouts
25
+ will be available here.
31
26
 
32
- === Section
27
+ |`content` |In layout files, the rendered content of the Post or Page
28
+ being wrapped. Not defined in Post or Page files.
33
29
 
34
- Find below an example of using the lightbox Lightbox standalone. See how
35
- single (individual) images are linked for the use with Lightbox.
30
+ |`paginator` |When the `paginate` configuration option is set, this
31
+ variable becomes available for use. See Pagination
32
+ for details.
33
+ |=======================================================================
36
34
 
37
- .Lightbox block for standalone images
38
- lightbox::example-standalone[ 400, {data-images-standalone} ]
35
+ === Site Variables
39
36
 
40
- For a group of images (image sets), Lightbox support image groups. Click
41
- on the images below to see how Lightbox manage image groups.
42
37
 
43
- .Lightbox block for grouped images
44
- lightbox::example-group[ 400, {data-images-group}, group ]
38
+ [width="100%", cols="6,6", options="header", role="table-responsive mt-3"]
39
+ |=======================================================================
40
+ |Variable |Description
41
+ |`site.time` |The current time (when you run the `jekyll` command).
45
42
 
46
- ==== Subsection
43
+ |`site.pages` |A list of all Pages.
47
44
 
48
- LightGallery provides more complex functions on image data. The lightbox
49
- supports a gallery-style thumbnail preview plus image resizing, a dowload
50
- dialogue, sharing provider support and some more helpful. Check what
51
- LightGallery can do by the following example.
45
+ |`site.posts` |A reverse chronological list of all Posts.
52
46
 
53
- gallery::jg_example[]
47
+ |`site.related_posts` |If the page being processed is a Post, this
48
+ contains a list of up to ten related Posts. By default, these are the
49
+ ten most recent posts. For high quality but slow to compute results, run
50
+ the `jekyll` command with the `--lsi`
51
+ (https://en.wikipedia.org/wiki/Latent_semantic_analysis#Latent_semantic_indexing[latent
52
+ semantic indexing]) option. Also note GitHub Pages does not support the
53
+ `lsi` option when generating sites.
54
+
55
+ |`site.static_files` |A list of all (i.e. files not processed by
56
+ Jekyll's converters or the Liquid renderer). Each file has three
57
+ properties: `path`, `modified_time` and `extname`.
58
+
59
+ |`site.html_pages` |A subset of `site.pages` listing those which end in
60
+ `.html`.
61
+
62
+ |`site.html_files` |A subset of `site.static_files` listing those which
63
+ end in `.html`.
64
+
65
+ |`site.collections` |A list of all the collections.
66
+
67
+ |`site.data` |A list containing the data loaded from the YAML files
68
+ located in the `_data` directory.
69
+
70
+ |`site.documents` |A list of all the documents in every collection.
71
+
72
+ |`site.categories.CATEGORY` |The list of all Posts in category `CATEGORY`.
73
+
74
+ |`site.tags.TAG` |The list of all Posts with tag `TAG`.
75
+
76
+ |`site.[CONFIGURATION_DATA]` |All the variables set via the command line
77
+ and your `_config.yml` are available through the `site` variable. For
78
+ example, if you have `url: http://mysite.com` in your configuration
79
+ file, then in your Posts and Pages it will be stored in `site.url`.
80
+ Jekyll does not parse changes to `_config.yml` in `watch` mode, you must
81
+ restart Jekyll to see changes to variables.
82
+ |=======================================================================
83
+
84
+
85
+ === Page Variables
86
+
87
+ [width="100%", cols="6,6", options="header", role="table-responsive mt-3"]
88
+ |=======================================================================
89
+ |Variable |Description
90
+ |`page.content` |The content of the Page, rendered or un-rendered
91
+ depending upon what Liquid is being processed and what `page` is.
92
+
93
+ |`page.title` |The title of the Page.
94
+
95
+ |`page.excerpt` |The un-rendered excerpt of the Page.
96
+
97
+ |`page.url` |The URL of the Post without the domain, but with a leading
98
+ slash, e.g. `/2008/12/14/my-post.html`
99
+
100
+ |`page.date` |The Date assigned to the Post. This can be overridden in a
101
+ Post's front matter by specifying a new date/time in the format
102
+ `YYYY-MM-DD HH:MM:SS` (assuming UTC), or `YYYY-MM-DD HH:MM:SS +/-TTTT`
103
+ (to specify a time zone using an offset from UTC. e.g.
104
+ `2008-12-14 10:30:00 +0900`).
105
+
106
+ |`page.id` |An identifier unique to the Post (useful in RSS feeds). e.g.
107
+ `/2008/12/14/my-post`
108
+
109
+ |`page.categories` |The list of categories to which this post belongs.
110
+ Categories are derived from the directory structure above the `_posts`
111
+ directory. For example, a post at
112
+ `/work/code/_posts/2008-12-24-closures.md` would have this field set to
113
+ `['work', 'code']`. These can also be specified in the
114
+ YAML Front Matter.
115
+
116
+ |`page.tags` |The list of tags to which this post belongs. These can be
117
+ specified in the YAML Front Matter.
118
+
119
+ |`page.path` |The path to the raw post or page. Example usage: Linking
120
+ back to the page or post's source on GitHub. This can be overridden in
121
+ the YAML Front Matter.
122
+
123
+ |`page.next` |The next post relative to the position of the current post
124
+ in `site.posts`. Returns `nil` for the last entry.
125
+
126
+ |`page.previous` |The previous post relative to the position of the
127
+ current post in `site.posts`. Returns `nil` for the first entry.
128
+ |=======================================================================
129
+
130
+ [TIP]
131
+ ====
132
+ Use Custom Front Matter
133
+
134
+ Any custom front matter that you specify will be available under `page`.
135
+ For example, if you specify `custom_css: true` in a pages front matter,
136
+ that value will be available as `page.custom_css`.
137
+
138
+ If you specify front matter in a layout, access that via `layout`. For
139
+ example, if you specify `class: full_page` in a pages front matter,
140
+ that value will be available as `layout.class` in the layout and its
141
+ parents.
142
+ ====
143
+
144
+ === Paginator
145
+
146
+ [width="100%", cols="6,6", options="header", role="table-responsive mt-3"]
147
+ |==============================================================
148
+ |Variable |Description
149
+ |`paginator.per_page` |Number of Posts per page.
150
+ |`paginator.posts` |Posts available for that page.
151
+ |`paginator.total_posts` |Total number of Posts.
152
+ |`paginator.total_pages` |Total number of pages.
153
+ |`paginator.page` |The number of the current page.
154
+ |`paginator.previous_page` |The number of the previous page.
155
+ |`paginator.previous_page_path` |The path to the previous page.
156
+ |`paginator.next_page` |The number of the next page.
157
+ |`paginator.next_page_path` |The path to the next page.
158
+ |==============================================================
159
+
160
+ NOTE: These are only available in index files, however they can be located
161
+ in a subdirectory, such as `<code>/blog/index.html</code>`.
162
+
163
+ NOTE: J1 is using Paginator V2 for pagination. See details with
164
+ {plugins_paginator_v2_user_guide}[Paginator V2 User Guide].
@@ -23,7 +23,7 @@ robots:
23
23
  permalink: /pages/public/skeleton/multi/
24
24
  regenerate: false
25
25
 
26
- resources: [ lightbox, lightGallery, justifiedGallery ]
26
+ resources: [ lightbox, clipboard, rouge ]
27
27
  resource_options:
28
28
  - toccer:
29
29
  collapseDepth: 4
@@ -58,11 +58,9 @@ resource_options:
58
58
  // -----------------------------------------------------------------------------
59
59
  {% include {{load_attributes}} scope="all" %}
60
60
 
61
-
62
61
  // Page content
63
62
  // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64
-
65
- The Asciidoc *skeleton multi-document* a helper for setting up a base file and
63
+ The Asciidoc skeleton *multi-document* a helper for setting up a base file and
66
64
  folder structure for multi-chapter AsciiDoc projects based on _Jekyll_
67
65
  and _J1 Template_. You need *both* to use this skeleton creating AsciiDoc
68
66
  documents from it.
@@ -81,9 +79,6 @@ All Asciidoc Document Skeletons are fully *relocateable* and can be placed in
81
79
  any subfolder of your Jekyll site.
82
80
  ====
83
81
 
84
- [role="mb-5"]
85
- *Happy Jekylling!*
86
-
87
82
 
88
83
  // Include Sublevel Documents
89
84
  // -----------------------------------------------------------------------------