Sha256: 3dfc77acb0b53fac4b27c09f794dd478965b3dae239b4a085fc54bdcbe6a295f

Contents?: true

Size: 1.95 KB

Versions: 80

Compression:

Stored size: 1.95 KB

Contents

{% comment %}
 # -----------------------------------------------------------------------------
 #  ~/_includes/themes/j1/procedures/global/set_image_block.proc
 #  Liquid PROCEDURE to place an image as an image_block
 #
 #  https://jekyll.one
 #
 #  Copyright (C) 2021 Juergen Adams
 #
 #  J1 Template is licensed under the MIT License.
 #  See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
 # -----------------------------------------------------------------------------
 #   Components procedure. Place an image as an image_block using the the
 #   default Lightbox "lightbox" to enlarge. The image source folder is
 #   taken from :imagesdir: Asciidoc attribute.
 #
 #    Usage:
 #      1)  capture the 'set_env_entry_document' variable by full path
 #      2)  include|configure the set_env_entry_document.proc procedure
 #
 #    Example:
 #      {% capture set_image_block %}themes/{{site.template.name}}/procedures/global/set_image_block.proc{%endcapture%}
 #      {% include {{set_image_block}} image_name="name.png" image_title="Image title" image_width=800 %}
 #
 # -----------------------------------------------------------------------------
 # Test data:
 #  liquid_var:  {{ liquid_var | debug }}
 # -----------------------------------------------------------------------------
{% endcomment %}

{% comment %} Liquid procedures
--------------------------------------------------------------- {% endcomment %}

{% comment %} Variables
   ------------------------------------------------------------ {% endcomment %}
{% assign image_name  = include.image_name %}
{% assign image_title = include.image_title %}
{% assign image_width = include.image_width %}


[subs=attributes]
++++
<div class="imageblock mt-4 mb-4">
  <div class="title">{{image_title}}</div>
  <a href="{imagesdir}/{{image_name}}"
     data-lightbox="{{image_name}}" data-title="{{image_title}}">
    <img src="{imagesdir}/{{image_name}}" alt="{{image_title}}" width="800">
  </a>
</div>
++++

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
j1-template-2022.0.18 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.17 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.16 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.15 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.14 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.13 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.12 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.11 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.10 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.9 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.8 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.7 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.6 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.5 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.4 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.3 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.2 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.1 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.0.0 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2021.3.2 _includes/themes/j1/procedures/global/set_image_block.proc