j1-template 2021.1.28 → 2021.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +6 -6
- data/_includes/themes/j1/layouts/content_generator_post.html +3 -0
- data/_includes/themes/j1/modules/navigator/generator.html +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +5 -5
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +6 -6
- data/_layouts/default.html +6 -2
- data/assets/data/mdil_icons.json +2417 -0
- data/assets/data/panel.html +10 -10
- data/assets/themes/j1/adapter/js/j1.js +8 -7
- data/assets/themes/j1/adapter/js/j1scroll.js +19 -1
- data/assets/themes/j1/adapter/js/navigator.js +11 -4
- data/assets/themes/j1/adapter/js/rtable.js +77 -24
- data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.css +1222 -0
- data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.min.css +1 -0
- data/assets/themes/j1/core/css/icon-fonts/materialdesign.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +58 -109
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +28 -18
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +7 -20
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/eot/materialdesignicons-light-webfont.eot +0 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/materialdesignicons-light-webfont.woff +0 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/materialdesignicons-light-webfont.woff2 +0 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/svg/materialdesignicons-light-webfont.svg +801 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/ttf/materialdesignicons-light-webfont.ttf +0 -0
- data/assets/themes/j1/core/js/template.js +4 -4
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +4 -4
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/j1Scroll/js/j1scroll.js +11 -21
- data/assets/themes/j1/modules/j1Scroll/js/j1scroll.min.js +1 -1
- data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +5 -15
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +1 -1
- data/assets/themes/j1/modules/mdilPreviewer/css/previewer.css +97 -0
- data/assets/themes/j1/modules/mdilPreviewer/css/previewer.min.css +15 -0
- data/assets/themes/j1/modules/mdilPreviewer/js/previewer.js +125 -0
- data/assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js +15 -0
- data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.css +3 -3
- data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css +2 -174
- data/assets/themes/j1/modules/rtable/js/rtable.js +59 -25
- data/assets/themes/j1/modules/rtable/js/rtable.min.js +12 -683
- data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.js +73 -73
- data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.min.js +15 -15
- data/lib/j1/commands/generate.rb +5 -8
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +15 -51
- data/lib/starter_web/_data/blocks/banner.yml +4 -5
- data/lib/starter_web/_data/blocks/panel.yml +217 -183
- data/lib/starter_web/_data/layouts/home.yml +20 -16
- data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/rtable.yml +34 -0
- data/lib/starter_web/_data/modules/j1scroll.yml +12 -2
- data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
- data/lib/starter_web/_data/modules/rtable.yml +34 -0
- data/lib/starter_web/_data/resources.yml +38 -16
- data/lib/starter_web/_includes/attributes.asciidoc +6 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/annie-spratt-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/humble-lamb-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/library-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/sigmund-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/{pages/videos → modules/attics}/szabo-viktor-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/asciidoc_skeletons/example-pdf-screenshot.png +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/{2020-01-01-about-cookies.adoc → 2021-01-01-about-cookies.adoc} +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/{2021-03-01-site-generators.adoc → 2021-02-01-site-generators.adoc} +0 -0
- 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
- 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
- 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
- data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/attributes.asciidoc +0 -0
- data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/documents/readme +0 -0
- data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/tables/readme +0 -0
- data/lib/starter_web/index.html +2 -2
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/000_intro.adoc +5 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +43 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +61 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/attributes.asciidoc +95 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/000_intro.asciidoc +54 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/000_basic_example.asciidoc +31 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +111 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +95 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/113_themes.asciidoc +39 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter.asciidoc +8 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/211_language_overview.asciidoc +122 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/212_values.asciidoc +502 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/213_fonts.asciidoc +261 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes.asciidoc +8 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/a2p.bat +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/a2p.sh +2 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book/book.a2p → documentation/documentation.a2p} +2 -8
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +86 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/100_chapter.asciidoc +848 -40
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/200_chapter.asciidoc +149 -38
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +2 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +312 -119
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +5 -5
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +5 -5
- data/lib/starter_web/pages/public/blog/navigator/archive.html +5 -5
- data/lib/starter_web/pages/public/previewer/bootstrap_theme.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +51 -82
- data/assets/themes/j1/modules/rtable/js/tablesaw-init.js +0 -18
- data/assets/themes/j1/modules/rtable/js/tablesaw.stackonly.js +0 -2371
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +0 -128
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +0 -131
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +0 -131
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +0 -132
- data/lib/starter_web/pages/infinite-scroll-tester-5.adoc +0 -119
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/blindtext.asciidoc +0 -11
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/font_icons.asciidoc +0 -23
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/gallery.asciidoc +0 -5
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/lightbox.asciidoc +0 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/documents/chapter_document.asciidoc +0 -9
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/documents/entry_document.asciidoc +0 -3
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/images/image.asciidoc +0 -6
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_2_column.asciidoc +0 -12
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_2_column_options.asciidoc +0 -30
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_3_column.asciidoc +0 -16
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_4_column.asciidoc +0 -25
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/100_chapter.adoc +0 -62
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/200_chapter.adoc +0 -64
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/900_references.adoc +0 -73
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/attributes.asciidoc +0 -74
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/000_intro.asciidoc +0 -33
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter/100_chapter_document.asciidoc +0 -21
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter/110_chapter_document.asciidoc +0 -36
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter.asciidoc +0 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/200_chapter/200_chapter_document.asciidoc +0 -53
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/200_chapter.asciidoc +0 -5
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/000_intro.asciidoc +0 -23
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/100_chapter_document.asciidoc +0 -33
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/200_chapter_document.asciidoc +0 -26
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/900_sources.asciidoc +0 -81
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references.asciidoc +0 -23
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/tables/110_material_design_icons.asciidoc +0 -102
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +0 -136
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/100_chapter.asciidoc +0 -60
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/200_chapter.asciidoc +0 -59
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/tables/110_material_design_icons.asciidoc +0 -102
- data/lib/starter_web/pages/public/previewer/_includes/attributes.asciidoc +0 -60
- data/lib/starter_web/pages/public/previewer/_includes/documents/licenses/mit.asciidoc +0 -19
- data/lib/starter_web/pages/public/previewer/_includes/documents/readme +0 -0
- data/lib/starter_web/pages/public/previewer/_includes/documents/rouge/100_language_examples.asciidoc +0 -119
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +0 -39
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/120_relative_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/200_rotate.asciidoc +0 -71
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/300_flip.asciidoc +0 -31
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +0 -39
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +0 -61
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +0 -55
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/600_md_color_palette.asciidoc +0 -95
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +0 -95
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +0 -95
- data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/200_rouge_attributes.asciidoc +0 -41
- data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/300_supported_languages.asciidoc +0 -857
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/200_rotate.asciidoc +0 -71
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/300_flip.asciidoc +0 -30
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +0 -31
- data/lib/starter_web/pages/public/previewer/iframer.adoc +0 -93
- data/lib/starter_web/pages/public/previewer/justified_gallery.html +0 -41
- data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +0 -574
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +0 -220
- data/lib/starter_web/pages/public/previewer/rouge.adoc +0 -133
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +0 -191
@@ -1,53 +1,164 @@
|
|
1
|
-
|
2
|
-
// Sublevel Entry Document: 200_chapter.asciidoc
|
3
|
-
// -----------------------------------------------------------------------------
|
1
|
+
== Jekyll Variables
|
4
2
|
|
5
|
-
|
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
|
-
|
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
|
-
|
16
|
-
* LightGallery
|
10
|
+
=== Global Variables
|
17
11
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
29
|
-
|
30
|
-
|
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
|
-
|
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
|
-
|
35
|
-
|
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
|
-
|
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
|
-
|
44
|
-
|
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
|
-
|
43
|
+
|`site.pages` |A list of all Pages.
|
47
44
|
|
48
|
-
|
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
|
-
|
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,
|
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
|
// -----------------------------------------------------------------------------
|