<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Lepagito - Options</title><link href="http://lepagito.artliba.org/" rel="alternate"></link><link href="http://lepagito.artliba.org/feeds/options.atom.xml" rel="self"></link><id>http://lepagito.artliba.org/</id><updated>2021-05-14T00:00:00+02:00</updated><subtitle>A lovely pelican theme</subtitle><entry><title>Article navigation</title><link href="http://lepagito.artliba.org/3a-navigation.html" rel="alternate"></link><published>2021-05-14T00:00:00+02:00</published><updated>2021-05-14T00:00:00+02:00</updated><author><name>I. Lepage and P. Hesse</name></author><id>tag:lepagito.artliba.org,2021-05-14:/3a-navigation.html</id><summary type="html">&lt;p&gt;The navigation between two successive pagination of article summaries
is presented at the bottom:
it provides both Oldest/Newest pages and also Fist/Last,
for efficiency.
When reading articles, the navigation between previous and next articles
is presented both at the top and the bottom.
This navigation feature is implemented thanks to the pelican &lt;a class="reference external" href="https://github.com/pelican-plugins/neighbors"&gt;neighbors&lt;/a&gt; plugin.&lt;/p&gt;
&lt;p&gt;By default, the oldest pages and article navigation links
appear on the right, and newest on the left.
The &lt;tt class="docutils literal"&gt;LEPAGITO_NAVIGATION_SWAP&lt;/tt&gt; variable in the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file
allows to swap from left to write this navigation.
This feature is useful when the chronology of a …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The navigation between two successive pagination of article summaries
is presented at the bottom:
it provides both Oldest/Newest pages and also Fist/Last,
for efficiency.
When reading articles, the navigation between previous and next articles
is presented both at the top and the bottom.
This navigation feature is implemented thanks to the pelican &lt;a class="reference external" href="https://github.com/pelican-plugins/neighbors"&gt;neighbors&lt;/a&gt; plugin.&lt;/p&gt;
&lt;p&gt;By default, the oldest pages and article navigation links
appear on the right, and newest on the left.
The &lt;tt class="docutils literal"&gt;LEPAGITO_NAVIGATION_SWAP&lt;/tt&gt; variable in the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file
allows to swap from left to write this navigation.
This feature is useful when the chronology of a blog is not important,
as in the present documentation of the &lt;a class="reference external" href="http://lepagito.artliba.org"&gt;lepagito&lt;/a&gt; theme:
the newest article means only the first article to read.&lt;/p&gt;
</content><category term="Options"></category><category term="navigation"></category><category term="plugin"></category><category term="pelicanconf.py"></category></entry><entry><title>Self-hosted search</title><link href="http://lepagito.artliba.org/3b-search.html" rel="alternate"></link><published>2021-04-14T00:00:00+02:00</published><updated>2021-04-14T00:00:00+02:00</updated><author><name>I. Lepage and P. Hesse</name></author><id>tag:lepagito.artliba.org,2021-04-14:/3b-search.html</id><summary type="html">&lt;p&gt;The search function appears at the right of the top menu bar.
Rather than give up control and privacy to third-party search engine corporations,
this function adds elegant and self-hosted search capability to your site.
Last but not least, searches are &lt;strong&gt;really fast&lt;/strong&gt;.
The search function is implemented thanks to the pelican &lt;a class="reference external" href="https://github.com/pelican-plugins/search"&gt;search&lt;/a&gt; plugin.
The search engine is activated by the following line
in the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
SEARCH_MODE = 'output'
&lt;/pre&gt;
&lt;p&gt;Note that the search function requires that the blog is installed:
it do not work in the off-line mode.
If you do not need searches on your site, e.g …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The search function appears at the right of the top menu bar.
Rather than give up control and privacy to third-party search engine corporations,
this function adds elegant and self-hosted search capability to your site.
Last but not least, searches are &lt;strong&gt;really fast&lt;/strong&gt;.
The search function is implemented thanks to the pelican &lt;a class="reference external" href="https://github.com/pelican-plugins/search"&gt;search&lt;/a&gt; plugin.
The search engine is activated by the following line
in the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
SEARCH_MODE = 'output'
&lt;/pre&gt;
&lt;p&gt;Note that the search function requires that the blog is installed:
it do not work in the off-line mode.
If you do not need searches on your site, e.g. your tags are sufficients,
just remove the previous line from the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt;
and the search function will disappear from the top menu bar.&lt;/p&gt;
&lt;p&gt;If you are in trouble when installing &lt;a class="reference external" href="https://github.com/jameslittle230/stork"&gt;stork&lt;/a&gt;, that is necessary
for running the pelican &lt;a class="reference external" href="https://github.com/pelican-plugins/search"&gt;search&lt;/a&gt; plugin, you could just remove
both this plugin and previous line from the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt;:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
PLUGINS = ['neighbors']
#SEARCH_MODE = 'output'
&lt;/pre&gt;
</content><category term="Options"></category><category term="search"></category><category term="plugin"></category><category term="pelicanconf.py"></category></entry><entry><title>Sitemap</title><link href="http://lepagito.artliba.org/3c-sitemap.html" rel="alternate"></link><published>2021-03-14T00:00:00+01:00</published><updated>2021-03-14T00:00:00+01:00</updated><author><name>I. Lepage and P. Hesse</name></author><id>tag:lepagito.artliba.org,2021-03-14:/3c-sitemap.html</id><content type="html">&lt;p&gt;The &lt;a class="reference external" href="https://github.com/pelican-plugins/sitemap"&gt;sitemap&lt;/a&gt; plugin
generates a &lt;tt class="docutils literal"&gt;sitemap.xml&lt;/tt&gt; file
to facilitate the indexing of your site by search engines.
There is nothing to configure, it works as a black-box.&lt;/p&gt;
</content><category term="Options"></category><category term="sitemap"></category><category term="plugin"></category><category term="pelicanconf.py"></category></entry><entry><title>Photo galleries</title><link href="http://lepagito.artliba.org/3d-galleria.html" rel="alternate"></link><published>2021-02-14T00:00:00+01:00</published><updated>2021-02-14T00:00:00+01:00</updated><author><name>I. Lepage and P. Hesse</name></author><id>tag:lepagito.artliba.org,2021-02-14:/3d-galleria.html</id><summary type="html">&lt;p&gt;Last but not the least, the &lt;a class="reference external" href="http://galleria.artliba.org"&gt;galleria&lt;/a&gt; plugin allows to easily manage galleries of images.
Especially, it nicely manages the automatic generation of thumbnails from images,
as shown in the following gallery of
watercolors due to &lt;a class="reference external" href="http://pirogh.artliba.org"&gt;Pirogh&lt;/a&gt;:&lt;/p&gt;
  &lt;ul class="galleria"
  &gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./2022-09-watercolor-grece-03-fresque-tirynthe.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/2022-09-watercolor-grece-03-fresque-tirynthe.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 350px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '350px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././2022-09-watercolor-grece-03-fresque-tirynthe.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg"
          srcset="././galleria/responsive-small/600w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 350px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 350px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '350px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg"
          srcset="././galleria/responsive-small/600w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 350px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 350px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '350px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg"
          srcset="././galleria/responsive-small/600w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 350px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
  &lt;/ul&gt;
&lt;p&gt;When you click on a thumbnail of a picture, a full resolution version
of this picture is displayed.
Also, try to resize the browser window and
observe the responsive display of the gallery:
the gallery is automatically readjusted and this is especially useful
when displaying on mobile phones.
Finally the thumbnail's image resolution itself is also responsive,
in the sense that it takes …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Last but not the least, the &lt;a class="reference external" href="http://galleria.artliba.org"&gt;galleria&lt;/a&gt; plugin allows to easily manage galleries of images.
Especially, it nicely manages the automatic generation of thumbnails from images,
as shown in the following gallery of
watercolors due to &lt;a class="reference external" href="http://pirogh.artliba.org"&gt;Pirogh&lt;/a&gt;:&lt;/p&gt;
  &lt;ul class="galleria"
  &gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./2022-09-watercolor-grece-03-fresque-tirynthe.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/2022-09-watercolor-grece-03-fresque-tirynthe.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 350px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '350px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././2022-09-watercolor-grece-03-fresque-tirynthe.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg"
          srcset="././galleria/responsive-small/600w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-03-fresque-tirynthe.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 350px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 350px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '350px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg"
          srcset="././galleria/responsive-small/600w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-06-fresque-akrotiri-hirondelles.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 350px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 350px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '350px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg"
          srcset="././galleria/responsive-small/600w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg 600w, ././galleria/responsive-small/800w/2022-09-watercolor-grece-07-fresque-akrotiri-boxeurs.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 350px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
  &lt;/ul&gt;
&lt;p&gt;When you click on a thumbnail of a picture, a full resolution version
of this picture is displayed.
Also, try to resize the browser window and
observe the responsive display of the gallery:
the gallery is automatically readjusted and this is especially useful
when displaying on mobile phones.
Finally the thumbnail's image resolution itself is also responsive,
in the sense that it takes into account the physical resolution
of our window and screen resolution.
See the source file of this documentation for a complete example
and also the documentation of the &lt;a class="reference external" href="http://galleria.artliba.org"&gt;galleria&lt;/a&gt; plugin for more.&lt;/p&gt;
&lt;p&gt;To associate an image with an article, i.e. as an icon, add the metadata field.
For restructured text &lt;tt class="docutils literal"&gt;.rst&lt;/tt&gt; files, it writes:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
:image: myimage.jpg
&lt;/pre&gt;
&lt;p&gt;to the header of an article.
Associated images improve navigation:
icons are displayed together with article titles
when browsing pages and &lt;a class="reference external" href="archives.html"&gt;Archives&lt;/a&gt;.&lt;/p&gt;
</content><category term="Options"></category><category term="galleria"></category><category term="plugin"></category><category term="pelicanconf.py"></category></entry><entry><title>Custom colors</title><link href="http://lepagito.artliba.org/3e-color.html" rel="alternate"></link><published>2021-01-14T00:00:00+01:00</published><updated>2021-01-14T00:00:00+01:00</updated><author><name>I. Lepage and P. Hesse</name></author><id>tag:lepagito.artliba.org,2021-01-14:/3e-color.html</id><summary type="html">&lt;p&gt;All colors of the &lt;a class="reference external" href="http://lepagito.artliba.org"&gt;lepagito&lt;/a&gt; theme are customizable.
The default color file is &lt;tt class="docutils literal"&gt;color.css&lt;/tt&gt; and an alternate
file could be specicied by using the
&lt;tt class="docutils literal"&gt;LEPAGITO_COLOR_CSS_FILE&lt;/tt&gt; variable
in the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt;, such as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
LEPAGITO_COLOR_CSS_FILE  = 'mycustomcolor.css'
&lt;/pre&gt;
&lt;p&gt;Modifying by hand the &lt;tt class="docutils literal"&gt;color.css&lt;/tt&gt; file is not obvious:
for convenience, a python script &lt;tt class="docutils literal"&gt;mk_custom_color_css.py&lt;/tt&gt; is provided
in the &lt;tt class="docutils literal"&gt;static/css&lt;/tt&gt; directory.
It admits three arguments: the two first are the rotation angles
for the hue of the warm and cold colors, and the third argument is
the optional basename for the css output file.
For zero rotation, enter the command:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
python …&lt;/pre&gt;</summary><content type="html">&lt;p&gt;All colors of the &lt;a class="reference external" href="http://lepagito.artliba.org"&gt;lepagito&lt;/a&gt; theme are customizable.
The default color file is &lt;tt class="docutils literal"&gt;color.css&lt;/tt&gt; and an alternate
file could be specicied by using the
&lt;tt class="docutils literal"&gt;LEPAGITO_COLOR_CSS_FILE&lt;/tt&gt; variable
in the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt;, such as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
LEPAGITO_COLOR_CSS_FILE  = 'mycustomcolor.css'
&lt;/pre&gt;
&lt;p&gt;Modifying by hand the &lt;tt class="docutils literal"&gt;color.css&lt;/tt&gt; file is not obvious:
for convenience, a python script &lt;tt class="docutils literal"&gt;mk_custom_color_css.py&lt;/tt&gt; is provided
in the &lt;tt class="docutils literal"&gt;static/css&lt;/tt&gt; directory.
It admits three arguments: the two first are the rotation angles
for the hue of the warm and cold colors, and the third argument is
the optional basename for the css output file.
For zero rotation, enter the command:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
python mk_custom_color_css.py 0 0 mycustomcolor
&lt;/pre&gt;
&lt;p&gt;It will regenerate exactly the default color theme
but in the file &lt;tt class="docutils literal"&gt;mycustomcolor.css&lt;/tt&gt;. It also provides
&lt;tt class="docutils literal"&gt;mycustomcolor.pig&lt;/tt&gt;, which is the color set,
suitable for the &lt;a class="reference external" href="palette.artliba.org"&gt;palette&lt;/a&gt; visualization software.
This default color theme corresponds to a palette composed to two groups
of colors, the warm magenta and cold blue groups:&lt;/p&gt;
  &lt;ul class="galleria"
  &gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./mycustomcolor-0-0-theme.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/mycustomcolor-0-0-theme.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/mycustomcolor-0-0-theme.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/mycustomcolor-0-0-theme.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-0-theme.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 600px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '600px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././mycustomcolor-0-0-theme.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/mycustomcolor-0-0-theme.jpg"
          srcset="././galleria/responsive-small/600w/mycustomcolor-0-0-theme.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-0-theme.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 600px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./mycustomcolor-0-0-palette.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/mycustomcolor-0-0-palette.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/mycustomcolor-0-0-palette.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/mycustomcolor-0-0-palette.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-0-palette.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 600px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '600px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././mycustomcolor-0-0-palette.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/mycustomcolor-0-0-palette.jpg"
          srcset="././galleria/responsive-small/600w/mycustomcolor-0-0-palette.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-0-palette.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 600px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
  &lt;/ul&gt;
&lt;p&gt;The second image represent the color palette in the
&lt;a class="reference external" href="https://en.wikipedia.org/wiki/CIECAM02"&gt;CIECAM Jab&lt;/a&gt; coordinate system, in the (a,b) plane: observe the
two groups of colors.
The present graph is obtained thanks to the &lt;a class="reference external" href="palette.artliba.org"&gt;palette&lt;/a&gt; visualization software.&lt;/p&gt;
&lt;p&gt;Now, let us rotate the cold blue group, until reaching the
yellow position on the palette:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
python mk_custom_color_css.py 0 195 mycustomcolor
cd ../../doc
pelican content
firefox output/index.html &amp;amp;
&lt;/pre&gt;
&lt;p&gt;We then obtain:&lt;/p&gt;
  &lt;ul class="galleria"
  &gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./mycustomcolor-0-195-theme.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/mycustomcolor-0-195-theme.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/mycustomcolor-0-195-theme.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/mycustomcolor-0-195-theme.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-195-theme.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 600px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '600px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././mycustomcolor-0-195-theme.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/mycustomcolor-0-195-theme.jpg"
          srcset="././galleria/responsive-small/600w/mycustomcolor-0-195-theme.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-195-theme.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 600px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./mycustomcolor-0-195-palette.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/mycustomcolor-0-195-palette.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/mycustomcolor-0-195-palette.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/mycustomcolor-0-195-palette.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-195-palette.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 600px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '600px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././mycustomcolor-0-195-palette.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/mycustomcolor-0-195-palette.jpg"
          srcset="././galleria/responsive-small/600w/mycustomcolor-0-195-palette.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-195-palette.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 600px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
  &lt;/ul&gt;
&lt;p&gt;Let us now rotate the same group until it reaches the magenta position:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
python mk_custom_color_css.py 0 120 mycustomcolor
&lt;/pre&gt;
&lt;p&gt;The two groups are now superposed and we obtain a camaïeu:&lt;/p&gt;
  &lt;ul class="galleria"
  &gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./mycustomcolor-0-120-theme.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/mycustomcolor-0-120-theme.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/mycustomcolor-0-120-theme.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/mycustomcolor-0-120-theme.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-120-theme.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 600px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '600px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././mycustomcolor-0-120-theme.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/mycustomcolor-0-120-theme.jpg"
          srcset="././galleria/responsive-small/600w/mycustomcolor-0-120-theme.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-120-theme.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 600px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./mycustomcolor-0-120-palette.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/mycustomcolor-0-120-palette.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/mycustomcolor-0-120-palette.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/mycustomcolor-0-120-palette.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-120-palette.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 600px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '600px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././mycustomcolor-0-120-palette.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/mycustomcolor-0-120-palette.jpg"
          srcset="././galleria/responsive-small/600w/mycustomcolor-0-120-palette.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-0-120-palette.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 600px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
  &lt;/ul&gt;
&lt;p&gt;Finally, the first warm group is also rotated until it reaches the blue position:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
python mk_custom_color_css.py 240 120 mycustomcolor
&lt;/pre&gt;
&lt;p&gt;The two initial groups are now swapped:&lt;/p&gt;
  &lt;ul class="galleria"
  &gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./mycustomcolor-240-120-theme.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/mycustomcolor-240-120-theme.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/mycustomcolor-240-120-theme.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/mycustomcolor-240-120-theme.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-240-120-theme.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 600px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '600px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././mycustomcolor-240-120-theme.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/mycustomcolor-240-120-theme.jpg"
          srcset="././galleria/responsive-small/600w/mycustomcolor-240-120-theme.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-240-120-theme.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 600px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
      &lt;li&gt;
&lt;!-- SITEURL              = . --&gt;
&lt;!-- image_relative_path  = ./mycustomcolor-240-120-palette.jpg --&gt;
&lt;!-- image_full_path      = /home/hesse/dvt-perso/lepagito/doc/content/mycustomcolor-240-120-palette.jpg --&gt;
&lt;!-- image_replace        = ././galleria/responsive-small/800w/mycustomcolor-240-120-palette.jpg --&gt;
&lt;!-- image_sizes          = (min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw --&gt;
&lt;!-- image_srcset         = ././galleria/responsive-small/600w/mycustomcolor-240-120-palette.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-240-120-palette.jpg 800w --&gt;
&lt;!-- image_sources        = None --&gt;
&lt;!-- image_caption        =  --&gt;
&lt;!-- image_target         =  --&gt;
&lt;!-- image_class          = responsive-small --&gt;
&lt;!-- image_type           = responsive-image --&gt;
&lt;!-- max_height           = 600px --&gt;
&lt;!-- options              = {'class': 'responsive-small', 'max-height': '600px', 'type': 'responsive-image'} --&gt;
&lt;!-- single_image         =  --&gt;
&lt;figure&gt;
    &lt;a href="././mycustomcolor-240-120-palette.jpg"&gt;
      &lt;img
          sizes="(min-width: 768px) 650px, (min-width: 1200px) 800px, 100vw"
          src="././galleria/responsive-small/800w/mycustomcolor-240-120-palette.jpg"
          srcset="././galleria/responsive-small/600w/mycustomcolor-240-120-palette.jpg 600w, ././galleria/responsive-small/800w/mycustomcolor-240-120-palette.jpg 800w"
          style="max-width: 100%; height: auto; max-height: min(100vh, 600px);"
      &gt;
    &lt;/a&gt;
&lt;/figure&gt;      &lt;/li&gt;
  &lt;/ul&gt;
</content><category term="Options"></category><category term="color"></category><category term="pelicanconf.py"></category></entry></feed>