j1-template 2023.1.0 → 2023.2.0
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_collection.html +2 -3
- data/assets/data/banner.html +8 -6
- data/assets/data/masonry.html +263 -73
- data/assets/data/slick.html +155 -59
- data/assets/error_pages/HTTP204.html +1 -1
- data/assets/error_pages/HTTP400.html +1 -1
- data/assets/error_pages/HTTP401.html +1 -1
- data/assets/error_pages/HTTP403.html +1 -1
- data/assets/error_pages/HTTP404.html +1 -1
- data/assets/error_pages/HTTP444.html +1 -1
- data/assets/error_pages/HTTP445.html +1 -1
- data/assets/error_pages/HTTP446.html +1 -1
- data/assets/error_pages/HTTP447.html +1 -1
- data/assets/error_pages/HTTP448.html +1 -1
- data/assets/error_pages/HTTP500.html +1 -1
- data/assets/error_pages/HTTP501.html +1 -1
- data/assets/error_pages/HTTP502.html +1 -1
- data/assets/error_pages/HTTP503.html +1 -1
- data/assets/themes/j1/adapter/js/masonry.js +9 -1
- data/assets/themes/j1/adapter/js/slick.js +239 -134
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +247 -0
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +55 -57
- data/assets/themes/j1/core/js/template.min.js +6 -6
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/masonry/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/masonry/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/slick/lightbox/README.md +6 -1
- data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.css +36 -0
- data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.min.css +15 -0
- data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.js +1 -1
- data/assets/themes/j1/modules/slick/slider/css/theme/uno.css +173 -137
- data/assets/themes/j1/modules/slick/slider/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/slick/slider/js/slick.js +2970 -2233
- data/assets/themes/j1/modules/translator/css/translator.css +3 -19
- data/assets/themes/j1/modules/translator/css/translator.min.css +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +25 -1
- data/lib/starter_web/_data/blocks/banner.yml +45 -46
- data/lib/starter_web/_data/blocks/panel.yml +9 -9
- data/lib/starter_web/_data/layouts/home.yml +39 -21
- data/lib/starter_web/_data/modules/defaults/slick.yml +2 -2
- data/lib/starter_web/_data/modules/masonry.yml +155 -41
- data/lib/starter_web/_data/modules/navigator_menu.yml +632 -591
- data/lib/starter_web/_data/modules/scroller.yml +1 -1
- data/lib/starter_web/_data/modules/slick.yml +260 -54
- data/lib/starter_web/_data/puma/config.rb +10 -0
- data/lib/starter_web/_data/resources.yml +1 -0
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/attributes.asciidoc +24 -0
- data/lib/starter_web/_includes/custom/static/readme +1 -1
- data/lib/starter_web/_includes/custom/templates/collection_panel.html +131 -0
- data/lib/starter_web/_includes/custom/templates/custom_header.html +98 -76
- data/lib/starter_web/_includes/custom/templates/people_panel.html +144 -0
- data/lib/starter_web/_includes/custom/templates/readme +1 -1
- data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/gist-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/mdil-icon-inline.rb +10 -0
- data/lib/starter_web/_plugins/asciidoctor/placeholder-inline.rb +44 -0
- data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +1 -1
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/images/collections/people/diana-petersen.jpg +0 -0
- data/lib/starter_web/assets/images/collections/people/larry-parker.jpg +0 -0
- data/lib/starter_web/assets/images/collections/people/parveen-anand.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/kelly-sikkemal.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/kira-auf-der-heide.jpg +0 -0
- data/lib/starter_web/assets/images/modules/gallery/old_times/image_02.jpg +0 -0
- data/lib/starter_web/collections/_biography/a-life-in-questions.adoc +5 -5
- data/lib/starter_web/collections/_biography/becoming.adoc +5 -5
- data/lib/starter_web/collections/_biography/born-to-run.adoc +5 -5
- data/lib/starter_web/collections/_biography/forty-autumns.adoc +5 -5
- data/lib/starter_web/collections/_biography/not-dead-yet.adoc +5 -6
- data/lib/starter_web/collections/_biography/princess-diarist-the.adoc +5 -5
- data/lib/starter_web/collections/_biography/when-breath-becomes-air.adoc +6 -7
- data/lib/starter_web/collections/_fantasy/harry-potter-deathly-hallows.adoc +14 -4
- data/lib/starter_web/collections/_fantasy/harry-potter-philosophers-stone.adoc +13 -3
- data/lib/starter_web/collections/_fantasy/mistborn-trilogy.adoc +11 -3
- data/lib/starter_web/collections/_fantasy/ready-player-one.adoc +15 -3
- data/lib/starter_web/collections/_fantasy/sword-of-destiny.adoc +11 -3
- data/lib/starter_web/collections/_fantasy/terry-pratchet-diary-2017.adoc +11 -3
- data/lib/starter_web/collections/_people/diana-petersen.adoc +167 -0
- data/lib/starter_web/collections/_people/larry-parker.adoc +167 -0
- data/lib/starter_web/collections/_people/parveen-anand.adoc +167 -0
- data/lib/starter_web/collections/_portfolio/branding.adoc +97 -0
- data/lib/starter_web/collections/_portfolio/graphic_design.adoc +97 -0
- data/lib/starter_web/collections/_portfolio/identity.adoc +99 -0
- data/lib/starter_web/collections/_portfolio/illustration.adoc +101 -0
- data/lib/starter_web/collections/_portfolio/photography.adoc +100 -0
- data/lib/starter_web/collections/_portfolio/web_design.adoc +109 -0
- data/lib/starter_web/collections/_romance/breath-of-snow-and-ashes-a.adoc +12 -3
- data/lib/starter_web/collections/_romance/dressmaker-the.adoc +10 -3
- data/lib/starter_web/collections/_romance/fiery-cross-the.adoc +13 -3
- data/lib/starter_web/collections/_romance/it-ends-with-us.adoc +11 -3
- data/lib/starter_web/collections/_romance/outlander-novel.adoc +12 -3
- data/lib/starter_web/collections/_romance/virgins-outlander-short-story.adoc +16 -4
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-static-site-generators.adoc +2 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/collections/posts/public/series/_posts/2022-08-01-organize-your-life.adoc +4 -4
- data/lib/starter_web/collections/posts/public/series/_posts/2022-08-02-organize-your-life.adoc +4 -4
- data/lib/starter_web/collections/posts/public/series/_posts/2022-08-03-organize-your-life.adoc +4 -4
- data/lib/starter_web/collections/posts/public/series/_posts/2022-09-01-organize-your-life.adoc +4 -4
- data/lib/starter_web/collections/posts/public/series/_posts/2022-09-02-organize-your-life.adoc +4 -4
- data/lib/starter_web/index.html +129 -129
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +107 -0
- data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/article_previewer/viewer_biography.adoc +21 -12
- data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/article_previewer/viewer_fantasy.adoc +11 -6
- data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/article_previewer/viewer_romance.adoc +11 -5
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +53 -4
- data/lib/starter_web/pages/public/plans/plans.adoc +25 -12
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +59 -79
- data/assets/data/masonry.4.html +0 -213
- data/assets/themes/j1/adapter/js/slick.3.js +0 -365
- data/lib/starter_web/assets/images/collections/blog/wikipedia/columbia-river.1200x400.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/wikipedia/minneapolis.1200x400.jpg +0 -0
- data/lib/starter_web/assets/images/collections/blog/wikipedia/narcise-snake-pits.1200x400.jpg +0 -0
- data/lib/starter_web/assets/images/parsa/customers/200x150/img1.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/200x150/img2.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/200x150/img3.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/200x150/img4.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/200x150/img5.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/200x150/img6.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/200x150/img7.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/200x150/img8.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/200x150/img9.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/client-1.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/client-2.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/client-3.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/client-4.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/client-5.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/client-6.png +0 -0
- data/lib/starter_web/assets/images/parsa/customers/client-7.png +0 -0
- data/lib/starter_web/assets/images/parsa/icons/favicon.ico +0 -0
- data/lib/starter_web/assets/images/parsa/icons/icon.png +0 -0
- data/lib/starter_web/assets/images/parsa/icons/icon.svg +0 -152
- data/lib/starter_web/assets/images/parsa/icons/logo.svg +0 -172
- data/lib/starter_web/assets/images/parsa/masthead/19-02-_2023_09-05-46.jpg +0 -0
- data/lib/starter_web/assets/images/parsa/masthead/banner-img.png +0 -0
- data/lib/starter_web/assets/images/parsa/pages/1920x1280/author.jpg +0 -0
- data/lib/starter_web/assets/images/parsa/pages/1920x1280/contact.jpg +0 -0
- data/lib/starter_web/assets/images/parsa/pages/author.jpg +0 -0
- data/lib/starter_web/assets/images/parsa/pages/contact.jpg +0 -0
- data/lib/starter_web/assets/images/parsa/partners/scalable/facebook.svg +0 -34
- data/lib/starter_web/assets/images/parsa/partners/scalable/google.svg +0 -35
- data/lib/starter_web/assets/images/parsa/partners/scalable/ibm.svg +0 -24
- data/lib/starter_web/assets/images/parsa/partners/scalable/microsoft.svg +0 -42
- data/lib/starter_web/assets/images/parsa/posts/1280x1024/post-img.jpg +0 -0
- data/lib/starter_web/assets/images/parsa/posts/1280x1024/post-single.jpg +0 -0
- data/lib/starter_web/assets/images/parsa/promo/home/screenshot.jpg +0 -0
- data/lib/starter_web/pages/public/previewer/preview_masonry.adoc +0 -361
- data/lib/starter_web/pages/public/previewer/preview_slick_slider.adoc +0 -375
- /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/1.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/2.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/3.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/4.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/5.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa → collections}/portfolio/6.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/icons → icons/controls}/close-icon.svg +0 -0
- /data/lib/starter_web/assets/images/{parsa/icons → icons/controls}/up.svg +0 -0
- /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/dynamic-web-access.png +0 -0
- /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jamstack-generators.png +0 -0
- /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jekyll.1200x400.png +0 -0
- /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/jekyll.png +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-1.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-2.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-3.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-4.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/featured/post-5.jpg +0 -0
- /data/lib/starter_web/assets/images/{collections/blog → posts}/featured/static-web-access.png +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-1.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-10.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-11.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-12.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-13.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-2.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-3.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-4.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-5.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-6.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-7.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-8.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/natural_food/post-9.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/post-img.jpg +0 -0
- /data/lib/starter_web/assets/images/{parsa/posts → posts}/post-single.jpg +0 -0
- /data/lib/starter_web/pages/public/{bookshelf → learn/bookshelf}/jekyll_collections.adoc +0 -0
@@ -1,361 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: J1 Masonry
|
3
|
-
tagline: Preview
|
4
|
-
date: 2020-11-03 00:00:00
|
5
|
-
description: >
|
6
|
-
J1 Template implements the Masonry module based on the Javascript
|
7
|
-
library Masonry, a popular grid layout library by David DeSandro.
|
8
|
-
The masonry or the Pinterest-style layout is a popular choice for
|
9
|
-
aesthetically pleasing images of varying sizes.
|
10
|
-
|
11
|
-
categories: [ Previewer ]
|
12
|
-
tags: [ Masonry, Example ]
|
13
|
-
|
14
|
-
comments: false
|
15
|
-
fab_menu_id: open_toc
|
16
|
-
scrollbar: false
|
17
|
-
regenerate: false
|
18
|
-
permalink: /pages/public/previewer/masonry/
|
19
|
-
|
20
|
-
resources: [
|
21
|
-
clipboard, justifiedGallery, lightbox,
|
22
|
-
lightGallery, masonry, rouge, slick
|
23
|
-
]
|
24
|
-
resource_options:
|
25
|
-
- attic:
|
26
|
-
padding_top: 600
|
27
|
-
slides:
|
28
|
-
- url: /assets/images/modules/attics/1920x1280/hayden-mills-2.jpg
|
29
|
-
alt: Photo by Hayden Mills on Unsplash
|
30
|
-
badge:
|
31
|
-
type: unsplash
|
32
|
-
author: Hayden Mills
|
33
|
-
href: https://unsplash.com/@haydmills
|
34
|
-
---
|
35
|
-
|
36
|
-
// Page Initializer
|
37
|
-
// =============================================================================
|
38
|
-
// Enable the Liquid Preprocessor
|
39
|
-
:page-liquid:
|
40
|
-
|
41
|
-
// Set (local) page attributes here
|
42
|
-
// -----------------------------------------------------------------------------
|
43
|
-
// :page--attr: <attr-value>
|
44
|
-
:url-roundtrip--present-videos: /pages/public/learn/roundtrip/present_videos/
|
45
|
-
|
46
|
-
// Load Liquid procedures
|
47
|
-
// -----------------------------------------------------------------------------
|
48
|
-
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
49
|
-
|
50
|
-
// Load page attributes
|
51
|
-
// -----------------------------------------------------------------------------
|
52
|
-
{% include {{load_attributes}} scope="global" %}
|
53
|
-
|
54
|
-
// Page content
|
55
|
-
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
56
|
-
[role="dropcap"]
|
57
|
-
The recnical term *Masonry* is used in web development to refer to a *grid
|
58
|
-
layout* system for arranging elements on a webpage. The masonry layout, also
|
59
|
-
known as the **Pinterest**-style layout, is a popular choice for displaying
|
60
|
-
images of varying sizes aesthetically pleasingly.
|
61
|
-
|
62
|
-
J1 Masonry is based on the popular JavaScript library _Masonry_, which enables
|
63
|
-
the creation of responsive, dynamic grid layouts of *large* groups of content.
|
64
|
-
It uses a unique algorithm to arrange elements vertically, then horizontally
|
65
|
-
in the grid. The result is a visually appealing layout that works well with
|
66
|
-
images and other content of varying sizes.
|
67
|
-
|
68
|
-
// Include sub-documents (if any)
|
69
|
-
// -----------------------------------------------------------------------------
|
70
|
-
== Responsive Slider
|
71
|
-
|
72
|
-
A J1 Slider may be an alternative for a masonry-styled grid to display groups
|
73
|
-
of posts, articles, or images in quite a *compact* way. The negative aspect of
|
74
|
-
using sliders on *larger* groups of elements is the limited number of elements
|
75
|
-
displayed on a slideshow. Sliders are typically used for so-called featured
|
76
|
-
content to show *specific* elements the website visitors should find on a
|
77
|
-
most top position of your homepage as an eye-catcher.
|
78
|
-
|
79
|
-
.Post Silder
|
80
|
-
slick::post_slider[role="mb-4"]
|
81
|
-
|
82
|
-
|
83
|
-
== Masonry Grid on Posts
|
84
|
-
|
85
|
-
J1 Masonry is easy to use and can be added to a webpage with just a few
|
86
|
-
lines. The module provides a flexible configuration that allows developers
|
87
|
-
to customize the layout, adjust the column width and gutter size, and add
|
88
|
-
animations and other effects.
|
89
|
-
|
90
|
-
[role="mb-4"]
|
91
|
-
J1 Masonry posts grid pull content from a specific category. All Grids for posts
|
92
|
-
display the post category, the post title, the author and date. All Masonry
|
93
|
-
Grids for the J1 Theme can be easily customized in various ways, such as
|
94
|
-
changing the number of posts displayed, the masonry speed, and other options.
|
95
|
-
|
96
|
-
.Asciidoc configuration
|
97
|
-
[source, config, role="noclip mb-3"]
|
98
|
-
----
|
99
|
-
masonry::post_series_example[role="mb-4"]
|
100
|
-
----
|
101
|
-
|
102
|
-
.Masonry Post Grid
|
103
|
-
masonry::post_series_example[role="mb-4"]
|
104
|
-
|
105
|
-
.Configuration settings (YAML)
|
106
|
-
[source, yaml, role="noclip mb-4"]
|
107
|
-
----
|
108
|
-
# --------------------------------------------------------------------------
|
109
|
-
# Post Series
|
110
|
-
#
|
111
|
-
- grid:
|
112
|
-
enabled: true
|
113
|
-
|
114
|
-
id: post_series_example
|
115
|
-
type: post
|
116
|
-
group: Life
|
117
|
-
bs_gutter: 1
|
118
|
-
|
119
|
-
# ------------------------------------------------------------------------
|
120
|
-
# Lightbox options
|
121
|
-
#
|
122
|
-
lightbox:
|
123
|
-
enabled: false
|
124
|
-
|
125
|
-
# ------------------------------------------------------------------------
|
126
|
-
# Masonry options
|
127
|
-
#
|
128
|
-
options:
|
129
|
-
originTop: true
|
130
|
-
originLeft: true
|
131
|
-
initLayout: true
|
132
|
-
percentPosition: true
|
133
|
-
----
|
134
|
-
|
135
|
-
|
136
|
-
NOTE: The J1 Masonry module supports a series of posts out of the box. If the
|
137
|
-
grid type of `post-series` is given, all posts of a group (series) are
|
138
|
-
generated automatically as Bootstrap Cards of type *post*.
|
139
|
-
|
140
|
-
[role="mb-4"]
|
141
|
-
The Masonry Javascript module has become a go-to library for web developers
|
142
|
-
who need to create dynamic grid layouts, especially for websites that showcase
|
143
|
-
many images or other visual content like post series for example.
|
144
|
-
|
145
|
-
|
146
|
-
== Masonry Grid on Images
|
147
|
-
|
148
|
-
J1 Masonry is a great tool to create dynamic image galleries. Image galleries
|
149
|
-
are popular on many websites, and masonry can be a useful tool for creating
|
150
|
-
dynamic and visually appealing galleries. By using masonry, you can create a
|
151
|
-
gallery that displays images of different sizes in an aesthetically pleasing
|
152
|
-
and functional way.
|
153
|
-
|
154
|
-
=== Bootstrap Image Cards
|
155
|
-
|
156
|
-
Bootstrap cards are a popular component of the Bootstrap front-end framework
|
157
|
-
that provides a flexible and customizable way to display content on a website.
|
158
|
-
A card is a container for content that can be styled and arranged in various
|
159
|
-
ways to suit the website's needs.
|
160
|
-
|
161
|
-
.Asciidoc configuration
|
162
|
-
[source, config, role="noclip mb-3"]
|
163
|
-
----
|
164
|
-
masonry::bs_image_cards_example[role="mb-4"]
|
165
|
-
----
|
166
|
-
|
167
|
-
.BS Image Cards + Lightbox
|
168
|
-
masonry::bs_image_cards_example[role="mb-4"]
|
169
|
-
|
170
|
-
.Configuration settings (YAML)
|
171
|
-
[source, yaml, role="noclip mb-4"]
|
172
|
-
----
|
173
|
-
# --------------------------------------------------------------------------
|
174
|
-
# Bootstrap Card Images
|
175
|
-
#
|
176
|
-
- grid:
|
177
|
-
enabled: true
|
178
|
-
|
179
|
-
id: bs_image_cards_example
|
180
|
-
type: bs_image_cards
|
181
|
-
image_base_path: /assets/images/modules/gallery/mega_cities
|
182
|
-
image_styles: img-fluid img-object--cover g-height-300
|
183
|
-
bs_gutter: 1 # [0 .. 5]
|
184
|
-
|
185
|
-
# ------------------------------------------------------------------------
|
186
|
-
# Lightbox options
|
187
|
-
#
|
188
|
-
lightbox:
|
189
|
-
enabled: true
|
190
|
-
|
191
|
-
# ------------------------------------------------------------------------
|
192
|
-
# Masonry options
|
193
|
-
#
|
194
|
-
options:
|
195
|
-
originTop: true
|
196
|
-
originLeft: true
|
197
|
-
initLayout: true
|
198
|
-
percentPosition: true
|
199
|
-
|
200
|
-
# ------------------------------------------------------------------------
|
201
|
-
# Images
|
202
|
-
#
|
203
|
-
images:
|
204
|
-
|
205
|
-
- image: # image 1
|
206
|
-
title: Man posing at the rooftop of Jin Mao Tower Shanghai - China
|
207
|
-
file: denys-nevozhai-1_b.jpg
|
208
|
-
|
209
|
-
...
|
210
|
-
----
|
211
|
-
|
212
|
-
=== Grid on Images in different sizes
|
213
|
-
|
214
|
-
Using an image gallery to display images of different sizes can be challenging,
|
215
|
-
resulting in an uneven or unbalanced layout. However, this is where masonry
|
216
|
-
can be particularly useful.
|
217
|
-
|
218
|
-
==== Base Image Grid
|
219
|
-
|
220
|
-
Masonry uses a dynamic grid system to position images to create a visually
|
221
|
-
appealing and balanced layout. A dynamic grid system means you can display
|
222
|
-
images of different sizes without worrying about them looking out of place
|
223
|
-
or disrupting the overall flow of the gallery.
|
224
|
-
|
225
|
-
.Asciidoc configuration
|
226
|
-
[source, config, role="noclip mb-3"]
|
227
|
-
----
|
228
|
-
masonry::image_grid_base_example[role="mb-4"]
|
229
|
-
----
|
230
|
-
|
231
|
-
.Image Grid + No Gutters
|
232
|
-
masonry::image_grid_base_example[role="mb-4"]
|
233
|
-
|
234
|
-
.Configuration settings (YAML)
|
235
|
-
[source, yaml, role="noclip mb-4"]
|
236
|
-
----
|
237
|
-
# --------------------------------------------------------------------------
|
238
|
-
# Base Image Grid
|
239
|
-
#
|
240
|
-
- grid:
|
241
|
-
enabled: true
|
242
|
-
|
243
|
-
id: image_grid_base_example
|
244
|
-
type: image_grid
|
245
|
-
image_base_path: /assets/images/modules/gallery/mega_cities
|
246
|
-
image_styles: img-fluid
|
247
|
-
bs_gutter: 0
|
248
|
-
|
249
|
-
# ------------------------------------------------------------------------
|
250
|
-
# Lightbox options
|
251
|
-
#
|
252
|
-
lightbox:
|
253
|
-
enabled: false
|
254
|
-
|
255
|
-
# ------------------------------------------------------------------------
|
256
|
-
# Masonry options
|
257
|
-
#
|
258
|
-
options:
|
259
|
-
originTop: true
|
260
|
-
originLeft: true
|
261
|
-
initLayout: true
|
262
|
-
percentPosition: true
|
263
|
-
|
264
|
-
# ------------------------------------------------------------------------
|
265
|
-
# Images
|
266
|
-
#
|
267
|
-
images:
|
268
|
-
|
269
|
-
- image: # image 1
|
270
|
-
title: Man posing at the rooftop of Jin Mao Tower Shanghai - China
|
271
|
-
file: denys-nevozhai-1_b.jpg
|
272
|
-
|
273
|
-
...
|
274
|
-
----
|
275
|
-
|
276
|
-
==== Image Grid + Lightbox
|
277
|
-
|
278
|
-
A Lightbox is, in general, a helper which displays enlarged, almost
|
279
|
-
screen-filling versions of images (or videos) while dimming the remainder
|
280
|
-
of the page. The technique, introduced by Lightbox2, gained widespread
|
281
|
-
popularity thanks to its simple style. The term *lightbox* has been employed
|
282
|
-
since then for Javascript libraries to support such functionality.
|
283
|
-
|
284
|
-
.Asciidoc configuration
|
285
|
-
[source, config, role="noclip mb-3"]
|
286
|
-
----
|
287
|
-
masonry::image_grid_lightbox_example[role="mb-4"]
|
288
|
-
----
|
289
|
-
|
290
|
-
A lightbox supports image groups (image sets). Click on the images below to
|
291
|
-
see how a Lightbox manages a group of images shown in your grid.
|
292
|
-
|
293
|
-
.Image Grid + Gutters + Lightbox
|
294
|
-
masonry::image_grid_lightbox_example[role="mb-4"]
|
295
|
-
|
296
|
-
.Configuration settings (YAML)
|
297
|
-
[source, yaml, role="noclip mb-4"]
|
298
|
-
----
|
299
|
-
# --------------------------------------------------------------------------
|
300
|
-
# Image Grid + Lightbox
|
301
|
-
#
|
302
|
-
- grid:
|
303
|
-
enabled: true
|
304
|
-
|
305
|
-
id: image_grid_lightbox_example
|
306
|
-
type: image_grid
|
307
|
-
image_base_path: /assets/images/modules/gallery/mega_cities
|
308
|
-
image_styles: img-fluid
|
309
|
-
bs_gutter: 1
|
310
|
-
|
311
|
-
# ------------------------------------------------------------------------
|
312
|
-
# Lightbox options
|
313
|
-
#
|
314
|
-
lightbox:
|
315
|
-
enabled: true
|
316
|
-
|
317
|
-
# ------------------------------------------------------------------------
|
318
|
-
# Masonry options
|
319
|
-
#
|
320
|
-
options:
|
321
|
-
originTop: true
|
322
|
-
originLeft: true
|
323
|
-
initLayout: true
|
324
|
-
percentPosition: true
|
325
|
-
|
326
|
-
# ------------------------------------------------------------------------
|
327
|
-
# Images
|
328
|
-
#
|
329
|
-
images:
|
330
|
-
|
331
|
-
- image: # image 1
|
332
|
-
title: Man posing at the rooftop of Jin Mao Tower Shanghai - China
|
333
|
-
file: denys-nevozhai-1_b.jpg
|
334
|
-
|
335
|
-
...
|
336
|
-
----
|
337
|
-
|
338
|
-
NOTE: The default lightbox for Masonry Grids is _Lightbox2_, the classic
|
339
|
-
lightbox widely used on the Internet.
|
340
|
-
|
341
|
-
[role="mt-5"]
|
342
|
-
== Justified Gallery
|
343
|
-
|
344
|
-
[role="mb-4"]
|
345
|
-
As an alternative to grids on image contents arranged by Masonry, the module
|
346
|
-
*JustifiedGallery* can be used to display photos in a masonry-styled image
|
347
|
-
gallery. link:{url-justified-gallery--home}[JustifiedGallery, {browser-window--new}]
|
348
|
-
is a great _jQuery_ Plugin to create responsive, infinite, and high-quality
|
349
|
-
justified image galleries.
|
350
|
-
|
351
|
-
.Masonry Layout of JustifiedGallery
|
352
|
-
gallery::jg_customizer[role="mb-4"]
|
353
|
-
|
354
|
-
Digital image content, pictures or videos, are easy to make. Today, every
|
355
|
-
mobile has a camera. Presenting a bunch of photos or videos is done very
|
356
|
-
easily by using *Justified Gallery*. Videos created by a digicam or a mobile
|
357
|
-
can be played by J1 Theme using the HTML5 Video support. Present
|
358
|
-
videos you have made at it’s best.
|
359
|
-
|
360
|
-
TIP: Find more on how to present video contens using *JustifiedGallery* on the example
|
361
|
-
page link:{url-roundtrip--present-videos}[Present Videos, {browser-window--new}].
|