<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Galleria - Directive</title><link href="http://galleria.artliba.org/" rel="alternate"></link><link href="http://galleria.artliba.org/feeds/directive.atom.xml" rel="self"></link><id>http://galleria.artliba.org/</id><updated>2023-02-27T00:00:00+01:00</updated><subtitle>A responsive pelican gallery plugin</subtitle><entry><title>The galleria directive</title><link href="http://galleria.artliba.org/1b-directive.html" rel="alternate"></link><published>2023-02-27T00:00:00+01:00</published><updated>2023-02-27T00:00:00+01:00</updated><author><name>Pirogh Hesse</name></author><id>tag:galleria.artliba.org,2023-02-27:/1b-directive.html</id><summary type="html">&lt;p&gt;A &amp;quot;galleria&amp;quot; consists of list of image file names, one per line,
followed by a list of options, one per line, and then an optional
caption paragraph.
There must be blank lines before the caption and target paragraph.
Here is an example, corresponding to the illustration of the
&lt;a class="reference external" href="1a-getting-started.html"&gt;introduction section&lt;/a&gt;:&lt;/p&gt;
&lt;pre class="code rst literal-block"&gt;
&lt;span class="p"&gt;..&lt;/span&gt; &lt;span class="ow"&gt;galleria&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;  tiryns.jpg&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:caption:&lt;/span&gt;  Mycenaean Watercolor, from a fresco in &lt;span class="s"&gt;`Tiryns`_&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:target:&lt;/span&gt;   https://en.wikipedia.org/wiki/Tiryns&lt;span class="w"&gt;
&lt;/span&gt;  boxers.jpg&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:caption:&lt;/span&gt;  Watercolor, also a fresco from &lt;span class="s"&gt;`Akrotiri`_&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:target:&lt;/span&gt;   &lt;span class="s"&gt;`Akrotiri`_&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;  swallows.jpg&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:caption:&lt;/span&gt;  Watercolor, from a fresco from &lt;span class="s"&gt;`Akrotiri`_&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;  caryatid.jpg&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:caption:&lt;/span&gt;  Watercolor, the &lt;span class="s"&gt;`Caryatid`_&lt;/span&gt; porch …&lt;/pre&gt;</summary><content type="html">&lt;p&gt;A &amp;quot;galleria&amp;quot; consists of list of image file names, one per line,
followed by a list of options, one per line, and then an optional
caption paragraph.
There must be blank lines before the caption and target paragraph.
Here is an example, corresponding to the illustration of the
&lt;a class="reference external" href="1a-getting-started.html"&gt;introduction section&lt;/a&gt;:&lt;/p&gt;
&lt;pre class="code rst literal-block"&gt;
&lt;span class="p"&gt;..&lt;/span&gt; &lt;span class="ow"&gt;galleria&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;  tiryns.jpg&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:caption:&lt;/span&gt;  Mycenaean Watercolor, from a fresco in &lt;span class="s"&gt;`Tiryns`_&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:target:&lt;/span&gt;   https://en.wikipedia.org/wiki/Tiryns&lt;span class="w"&gt;
&lt;/span&gt;  boxers.jpg&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:caption:&lt;/span&gt;  Watercolor, also a fresco from &lt;span class="s"&gt;`Akrotiri`_&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:target:&lt;/span&gt;   &lt;span class="s"&gt;`Akrotiri`_&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;  swallows.jpg&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:caption:&lt;/span&gt;  Watercolor, from a fresco from &lt;span class="s"&gt;`Akrotiri`_&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;  caryatid.jpg&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:caption:&lt;/span&gt;  Watercolor, the &lt;span class="s"&gt;`Caryatid`_&lt;/span&gt; porch at the &lt;span class="s"&gt;`Acropolis`_&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;      &lt;span class="nc"&gt;:target:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;  &lt;span class="nc"&gt;:max-height:&lt;/span&gt; 350px
&lt;/pre&gt;
&lt;div class="section" id="options-1"&gt;
&lt;h2&gt;Options&lt;/h2&gt;
&lt;p&gt;The &lt;tt class="docutils literal"&gt;galleria&lt;/tt&gt; block could contain options.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;tt class="docutils literal"&gt;class&lt;/tt&gt; &lt;cite&gt;name&lt;/cite&gt;&lt;/p&gt;
&lt;p&gt;The &lt;cite&gt;name&lt;/cite&gt; argument is a class name defined in the &lt;tt class="docutils literal"&gt;GALLERIA_PROCESS&lt;/tt&gt;
dictionary variable of the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;flex-wrap&lt;/span&gt;&lt;/tt&gt; &lt;cite&gt;value&lt;/cite&gt;&lt;/p&gt;
&lt;p&gt;This option manages the &lt;a class="reference external" href="https://www.w3schools.com/cssref/css3_pr_flex-wrap.php"&gt;flex-wrap&lt;/a&gt;
property of the &lt;tt class="docutils literal"&gt;html&lt;/tt&gt; flexible container
used by the &lt;a class="reference external" href="https://galleria.artliba.org"&gt;galleria&lt;/a&gt; directive.
The &lt;cite&gt;value&lt;/cite&gt; is one of &lt;tt class="docutils literal"&gt;nowrap&lt;/tt&gt;, &lt;tt class="docutils literal"&gt;wrap&lt;/tt&gt;, &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;wrap-reverse&lt;/span&gt;&lt;/tt&gt;.
With &lt;tt class="docutils literal"&gt;nowrap&lt;/tt&gt;, all the image are displayed on one line.
The &lt;tt class="docutils literal"&gt;wrap&lt;/tt&gt; value specifies that the flexible items will wrap if necessary:
this is the default value for the &lt;a class="reference external" href="https://galleria.artliba.org"&gt;galleria&lt;/a&gt; directive.
With &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;wrap-reverse&lt;/span&gt;&lt;/tt&gt;, the flexible items will wrap, if necessary,
but lines of the container appear in reverse order.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;max-height&lt;/span&gt;&lt;/tt&gt; &lt;cite&gt;length&lt;/cite&gt;&lt;/p&gt;
&lt;p&gt;The maximal height of the image.
Used to scale the image vertically.
When unspecified, the default value is given by the
&lt;tt class="docutils literal"&gt;GALLERIA_DEFAULT_MAX_HEIGHT&lt;/tt&gt;
variable of the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;column-gap&lt;/span&gt;&lt;/tt&gt; &lt;cite&gt;length&lt;/cite&gt;&lt;/p&gt;
&lt;p&gt;It defines the value of the &lt;a class="reference external" href="https://www.w3schools.com/CSSref/css3_pr_column-gap.php"&gt;column-gap&lt;/a&gt;
property of the &lt;tt class="docutils literal"&gt;html&lt;/tt&gt; flexible container
used by the &lt;a class="reference external" href="https://galleria.artliba.org"&gt;galleria&lt;/a&gt; directive.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="caption-and-target-paragraph"&gt;
&lt;h2&gt;Caption and target paragraph&lt;/h2&gt;
&lt;p&gt;There must be blank lines before the caption and target paragraph.
Each line start either by &lt;tt class="docutils literal"&gt;!caption!&lt;/tt&gt; or &lt;tt class="docutils literal"&gt;!target!&lt;/tt&gt;, followed by
the file name and a one-line argument.
For a target, the argument is considered as a clickable link
associated to the image.
When there is no target for an image, by default the image is
clickable and the link is the full resolution image.
Both links and caption could involve links such as &lt;tt class="docutils literal"&gt;`pelican`_&lt;/tt&gt;,
that are solved by the parser as &lt;a class="reference external" href="https://getpelican.com"&gt;pelican&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In the previous example, for the first image,
the target is explicit,
for the second one, it involves a solved link
for the third one, there is no declared target,
and for the last, there is explicitly an empty target.
When there is no declared target,
the image is automatically clickable and points
to the full resolution version of the image:
observe that the cursor changed to zoom-in.
Conversely, when there is explicitly an empty target,
the image is not clickable:
observe that the cursor do not change.&lt;/p&gt;
&lt;/div&gt;
</content><category term="Directive"></category><category term="option"></category></entry></feed>