Sha256: a88f081ccc9f7d057a4987d9eafe342a20e6b0069d7c83a6edc8b1f41a27fca4

Contents?: true

Size: 1.95 KB

Versions: 40

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) 2022 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

40 entries across 40 versions & 1 rubygems

Version Path
j1-template-2022.6.3 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.6.2 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.6.1 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.6.0 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.3 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.2 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.1 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.1.rc1 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.1.rc0 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.0 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.0.rc4 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.0.rc3 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.0.rc2 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.0.rc1 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.5.0.rc0 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.3.0.rc1 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.3.0.rc0 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.4.10 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.4.9 _includes/themes/j1/procedures/global/set_image_block.proc
j1-template-2022.4.8 _includes/themes/j1/procedures/global/set_image_block.proc