<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Lepagito - Quickstart</title><link href="http://lepagito.artliba.org/" rel="alternate"></link><link href="http://lepagito.artliba.org/feeds/quickstart.atom.xml" rel="self"></link><id>http://lepagito.artliba.org/</id><updated>2023-02-14T00:00:00+01:00</updated><subtitle>A lovely pelican theme</subtitle><entry><title>Getting started</title><link href="http://lepagito.artliba.org/1a-getting-started.html" rel="alternate"></link><published>2023-02-14T00:00:00+01:00</published><updated>2023-02-14T00:00:00+01:00</updated><author><name>I. Lepage and P. Hesse</name></author><id>tag:lepagito.artliba.org,2023-02-14:/1a-getting-started.html</id><summary type="html">&lt;p&gt;&lt;a class="reference external" href="http://lepagito.artliba.org"&gt;Lepagito&lt;/a&gt; is a lovely pelican theme.&lt;/p&gt;
&lt;p&gt;Observe it first in action on the &lt;a class="reference external" href="http://lepagito.artliba.org"&gt;lepagito&lt;/a&gt; web site.
Also, it is used by both the &lt;a class="reference external" href="http://pirogh.artliba.org"&gt;Pirogh&lt;/a&gt;  author's blog,
the &lt;a class="reference external" href="http://greuzecottave.artliba.org"&gt;Greuze-Cottave&lt;/a&gt; blog for painters and designers
and the &lt;a class="reference external" href="http://galleria.artliba.org"&gt;galleria&lt;/a&gt; pelican plugin documentation.&lt;/p&gt;
&lt;p&gt;You're interested? Fascinated? Let's start!
First, download and install the theme:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/internet/lepagito
&lt;/pre&gt;
&lt;p&gt;For navigation and searches, this theme includes the optional
&lt;a class="reference external" href="https://github.com/pelican-plugins/neighbors"&gt;neighbors&lt;/a&gt;, &lt;a class="reference external" href="https://github.com/pelican-plugins/search"&gt;search&lt;/a&gt;  and &lt;a class="reference external" href="https://github.com/pelican-plugins/sitemap"&gt;sitemap&lt;/a&gt; pelican plugins:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
sudo apt install pelican python3-pip python3.11-venv python3-full python-is-python3
python -m venv ~/mypy
source ~/mypy/bin/activate
pip install pelican-neighbors
pip install pelican-search
pip install pelican-sitemap
pip …&lt;/pre&gt;</summary><content type="html">&lt;p&gt;&lt;a class="reference external" href="http://lepagito.artliba.org"&gt;Lepagito&lt;/a&gt; is a lovely pelican theme.&lt;/p&gt;
&lt;p&gt;Observe it first in action on the &lt;a class="reference external" href="http://lepagito.artliba.org"&gt;lepagito&lt;/a&gt; web site.
Also, it is used by both the &lt;a class="reference external" href="http://pirogh.artliba.org"&gt;Pirogh&lt;/a&gt;  author's blog,
the &lt;a class="reference external" href="http://greuzecottave.artliba.org"&gt;Greuze-Cottave&lt;/a&gt; blog for painters and designers
and the &lt;a class="reference external" href="http://galleria.artliba.org"&gt;galleria&lt;/a&gt; pelican plugin documentation.&lt;/p&gt;
&lt;p&gt;You're interested? Fascinated? Let's start!
First, download and install the theme:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/internet/lepagito
&lt;/pre&gt;
&lt;p&gt;For navigation and searches, this theme includes the optional
&lt;a class="reference external" href="https://github.com/pelican-plugins/neighbors"&gt;neighbors&lt;/a&gt;, &lt;a class="reference external" href="https://github.com/pelican-plugins/search"&gt;search&lt;/a&gt;  and &lt;a class="reference external" href="https://github.com/pelican-plugins/sitemap"&gt;sitemap&lt;/a&gt; pelican plugins:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
sudo apt install pelican python3-pip python3.11-venv python3-full python-is-python3
python -m venv ~/mypy
source ~/mypy/bin/activate
pip install pelican-neighbors
pip install pelican-search
pip install pelican-sitemap
pip install pelican-theme-config
&lt;/pre&gt;
&lt;p&gt;The first &lt;tt class="docutils literal"&gt;apt&lt;/tt&gt; command is specific to &lt;a class="reference external" href="https://www.debian.org"&gt;GNU/Linux Debian&lt;/a&gt; systems
and should be adapted to your environment.
The &lt;a class="reference external" href="https://github.com/pelican-plugins/neighbors"&gt;neighbors&lt;/a&gt; optional plugin allows a convenient navigation between articles.
The &lt;a class="reference external" href="https://github.com/pelican-plugins/search"&gt;search&lt;/a&gt; plugin provides a self-hosted search capability to your site.
Optionally, if you wish to customize the theme colors:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
pip install colorspacious Pillow colormath
&lt;/pre&gt;
&lt;p&gt;Also, the optional &lt;a class="reference external" href="http://galleria.artliba.org"&gt;galleria&lt;/a&gt; plugin, for photo galleries:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/internet/galleria
&lt;/pre&gt;
&lt;p&gt;The &lt;a class="reference external" href="https://github.com/pelican-plugins/search"&gt;search&lt;/a&gt;  pelican plugin depends itself upon &lt;a class="reference external" href="https://github.com/jameslittle230/stork"&gt;stork&lt;/a&gt;,
that should also be installed.
For instance, for &lt;a class="reference external" href="https://www.debian.org"&gt;GNU/Linux Debian&lt;/a&gt; systems, just enter:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
wget https://files.stork-search.net/releases/v1.6.0/stork-ubuntu-22-04
chmod a+x stork-ubuntu-22-04
sudo mv -i stork-ubuntu-22-04 /usr/local/bin/stork
&lt;/pre&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; on your computer,
don't worry: you could just edit the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file
and remove both this optional plugin
together with the &lt;tt class="docutils literal"&gt;SEARCH_MODE&lt;/tt&gt; variable:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
PLUGINS = ['neighbors', 'sitemap', 'galleria']
#SEARCH_MODE = 'output'
&lt;/pre&gt;
&lt;p&gt;The &lt;a class="reference external" href="https://github.com/pelican-plugins/sitemap"&gt;sitemap&lt;/a&gt; optional 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.
Finally, the &lt;a class="reference external" href="http://galleria.artliba.org"&gt;galleria&lt;/a&gt; optional plugin facilitates the
management of image galleries.&lt;/p&gt;
&lt;p&gt;The documentation of this theme is itself a pelican blog using the present theme,
so the source files of the documentation present
a practical example on how to use
pelican together with this theme.
You could now check your computer environment:
produce and read the documentation:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
cd doc
pelican content
firefox output/index.html &amp;amp;
&lt;/pre&gt;
&lt;p&gt;Next, if you already have a pelican blog,
you just have to edit your &lt;em&gt;pelicanconf.py&lt;/em&gt; file an change your theme as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
THEME = '/my-full-path-to/lepagito'
&lt;/pre&gt;
&lt;p&gt;Finally, just enter as usual:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
pelican content
firefox output/index.html &amp;amp;
&lt;/pre&gt;
</content><category term="Quickstart"></category><category term="pelicanconf.py"></category><category term="install"></category><category term="navigation"></category></entry><entry><title>The logo</title><link href="http://lepagito.artliba.org/1b-logo.html" rel="alternate"></link><published>2023-02-13T00:00:00+01:00</published><updated>2023-02-13T00:00:00+01:00</updated><author><name>I. Lepage and P. Hesse</name></author><id>tag:lepagito.artliba.org,2023-02-13:/1b-logo.html</id><summary type="html">&lt;p&gt;The logo at the top of each page is sill the heat,
which is specific to the &lt;a class="reference external" href="http://lepagito.artliba.org"&gt;Lepagito&lt;/a&gt; theme.
Your blog should have its own logo, since
the  &lt;a class="reference external" href="http://lepagito.artliba.org"&gt;Lepagito&lt;/a&gt; logo is copyrighted (see &lt;a class="reference external" href="license.html"&gt;License&lt;/a&gt;).
To do that, copy first logos from
&lt;a class="reference external" href="http://lepagito.artliba.org"&gt;Lepagito&lt;/a&gt; to your environment, exactly as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
mkdir content/theme
cp -a ~/pelican-themes/lepagito/static/img theme
&lt;/pre&gt;
&lt;p&gt;In the &lt;em&gt;content/theme/img&lt;/em&gt; directory, the files are:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
logo.png
favicon-16x16.png
favicon-32x32.png
favicon.ico
apple-touch-icon.png
mstile-150x150.png
site.webmanifest

entry_foooter.png
browserconfig.xml
&lt;/pre&gt;
&lt;p&gt;The first six files are different implementations of the same
logo and should be modified.
The …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The logo at the top of each page is sill the heat,
which is specific to the &lt;a class="reference external" href="http://lepagito.artliba.org"&gt;Lepagito&lt;/a&gt; theme.
Your blog should have its own logo, since
the  &lt;a class="reference external" href="http://lepagito.artliba.org"&gt;Lepagito&lt;/a&gt; logo is copyrighted (see &lt;a class="reference external" href="license.html"&gt;License&lt;/a&gt;).
To do that, copy first logos from
&lt;a class="reference external" href="http://lepagito.artliba.org"&gt;Lepagito&lt;/a&gt; to your environment, exactly as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
mkdir content/theme
cp -a ~/pelican-themes/lepagito/static/img theme
&lt;/pre&gt;
&lt;p&gt;In the &lt;em&gt;content/theme/img&lt;/em&gt; directory, the files are:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
logo.png
favicon-16x16.png
favicon-32x32.png
favicon.ico
apple-touch-icon.png
mstile-150x150.png
site.webmanifest

entry_foooter.png
browserconfig.xml
&lt;/pre&gt;
&lt;p&gt;The first six files are different implementations of the same
logo and should be modified.
The seventh file should also be modified.
The eigth file is the blue pencil article footer:
it could be changed or left as is, as you prefer.
The last file could be left as is.&lt;/p&gt;
&lt;p&gt;Finally, edit again your &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
STATIC_PATHS = ['images', 'theme']
&lt;/pre&gt;
&lt;p&gt;and run again pelican: your logo has been changed.&lt;/p&gt;
</content><category term="Quickstart"></category><category term="pelicanconf.py"></category><category term="logo"></category></entry><entry><title>The file pelicanconf.py</title><link href="http://lepagito.artliba.org/1c-pelicanconf.html" rel="alternate"></link><published>2023-01-14T00:00:00+01:00</published><updated>2023-01-14T00:00:00+01:00</updated><author><name>I. Lepage and P. Hesse</name></author><id>tag:lepagito.artliba.org,2023-01-14:/1c-pelicanconf.html</id><summary type="html">&lt;p&gt;Here is a complete example of the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file,
as used for the present documentation of the theme.
It starts by setting some standard &lt;a class="reference external" href="https://getpelican.com"&gt;pelican&lt;/a&gt; variables, as usual.
Then, come the theme's and the optional plugins.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# =============================
# 1. standard pelican variables
# =============================
SITEURL      = 'http://lepagito.artliba.org'
SITENAME     = 'Lepagito'
AUTHOR       = 'I. Lepage and P. Hesse'
SITESUBTITLE = 'A lovely pelican theme'
TIMEZONE     = 'Europe/Paris'
DEFAULT_LANG = 'en'
LOCALE       = 'C'

PATH         = 'content'
STATIC_PATHS = []

OUTPUT_PATH  = 'output'
#DELETE_OUTPUT_DIRECTORY = True # before site generation

DISPLAY_CATEGORIES_ON_MENU = False # choose a custom top menu here
MENUITEMS = (
  ('All',        'index.html'),
  ('Quickstart', 'quickstart.html'),
  ('Goodies',    'goodies.html'),
  ('Options',    'options.html'),
  ('#Tags',      'tags.html' …&lt;/pre&gt;</summary><content type="html">&lt;p&gt;Here is a complete example of the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file,
as used for the present documentation of the theme.
It starts by setting some standard &lt;a class="reference external" href="https://getpelican.com"&gt;pelican&lt;/a&gt; variables, as usual.
Then, come the theme's and the optional plugins.&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# =============================
# 1. standard pelican variables
# =============================
SITEURL      = 'http://lepagito.artliba.org'
SITENAME     = 'Lepagito'
AUTHOR       = 'I. Lepage and P. Hesse'
SITESUBTITLE = 'A lovely pelican theme'
TIMEZONE     = 'Europe/Paris'
DEFAULT_LANG = 'en'
LOCALE       = 'C'

PATH         = 'content'
STATIC_PATHS = []

OUTPUT_PATH  = 'output'
#DELETE_OUTPUT_DIRECTORY = True # before site generation

DISPLAY_CATEGORIES_ON_MENU = False # choose a custom top menu here
MENUITEMS = (
  ('All',        'index.html'),
  ('Quickstart', 'quickstart.html'),
  ('Goodies',    'goodies.html'),
  ('Options',    'options.html'),
  ('#Tags',      'tags.html'),
)
DEFAULT_PAGINATION =   6; # article summaries per page
SUMMARY_MAX_LENGTH = 100; # counted in words

RELATIVE_URLS                    = True
SLUGIFY_SOURCE                   = 'basename' 
ARTICLE_URL   = ARTICLE_SAVE_AS  = '{slug}.html'
CATEGORY_URL  = CATEGORY_SAVE_AS = '{slug}.html'
TAG_URL       = TAG_SAVE_AS      = '{slug}.html'
AUTHOR_URL    = AUTHOR_SAVE_AS   = '{slug}.html'
ARCHIVES_SAVE_AS                 = 'archives.html'
YEAR_ARCHIVE_SAVE_AS             = 'archive_{date:%Y}.html'
MONTH_ARCHIVE_SAVE_AS            = 'archive_{date:%Y}_{date:%m}.html'
# =============================
# 2. Lepagito theme
# =============================
THEME = '/home/hesse/dvt-perso/lepagito'
FOOTERMENUITEMS = (
  ('About',    'about.html'),
  ('License',  'license.html'),
)
TAGS_BY_GROUPS = (
  ('Pelican', ('tag-group', 'navigation', 'plugin', 'pelicanconf.py')),
)
#FOOTERMENUFEED    = False; # default is True
#ARCHIVES_CALENDAR = False; # default is True
LEPAGITO_NAVIGATION_SWAP = True
LEPAGITO_COLOR = { 'cold': 0, 'file': 'color.css' } # the default value
# internationalization (i18n): here are the default values
I18N_CATEGORIES  = 'Categories'
I18N_CATEGORY    = 'Category'
I18N_TAGS        = '#Tags'
I18N_TOP         = 'Top'
I18N_PAGE        = 'Page'
I18N_READ_MORE   = 'Read more'
I18N_ARCHIVES    = 'Archives'
I18N_FEED_ALL_ATOM = 'Feed'
I18N_NEWEST      = 'Newest'
I18N_OLDEST      = 'Oldest'
I18N_FIRST       = 'First'
I18N_LAST        = 'Last'
I18N_BACK_TO     = 'Back to'
I18N_OTHERS      = 'Others'
I18N_PREV        = 'Prev'
I18N_NEXT        = 'Next'
# =============================
# 3. plugins, optionals
# =============================
PLUGIN_PATHS  = ['/home/hesse/dvt-perso/galleria/pelican/plugins', 
                 '/home/hesse/dvt-perso/theme-config/pelican/plugins',
                 '/home/hesse/pelican-plugins/search/pelican/plugins']
PLUGINS = ['search', 'sitemap', 'galleria', 'neighbors', 'theme_config']
# ------------------
# 3.1. search plugin
# ------------------
LEPAGITO_HAVE_SEARCH_MENU = ('search' in PLUGINS) # activate search menu
# -------------------
# 3.2. sitemap plugin
# -------------------
SITEMAP = {
    'format': 'xml',
    'priorities': {
        'articles': 1.0,
        'pages':    0.5,
        'indexes':  0.5
    },
    'changefreqs': {
        'articles': 'weekly',
        'pages':    'monthly',
        'indexes':  'monthly'
    }
}
# --------------------
# 3.3. galleria plugin
# --------------------
##THEME_TEMPLATES_OVERRIDES      = ['/home/hesse/dvt-perso/galleria/template']
GALLERIA_LIBRARY_PATH          = ['/home/hesse/dvt-perso/lepagito/doc/content']
LEPAGITO_GALLERY_CSS_FILE      = 'galleria.css'
# for lepagito templates:
GALLERIA_PROCESS_DIR           = 'galleria'
GALLERIA_RESIZE_JOBS           = 10
GALLERIA_VERBOSE               = True
GALLERIA_PROCESS = {
    'image-icon': {
        'type': 'image',
        'ops': ['50x50', '+profile &amp;quot;*&amp;quot;'],
    },
    'image-large': {
        'type': 'image',
        'ops': ['1200x900', '+profile &amp;quot;*&amp;quot;'],
    },
    # https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images
    'responsive-small': {
        'type': 'responsive-image',
        'sizes': (
            '(min-width: 768px) 650px, '
            '(min-width: 1200px) 800px, '
            '100vw'
        ),
        'srcset': [
            ('600w', ['600x450', '+profile &amp;quot;*&amp;quot;']),
            ('800w', ['800x600', '+profile &amp;quot;*&amp;quot;']),
        ],
        'default': '800w',
    },
    # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture
   'picture-tag': {
       'type': 'picture',
       'sources': [
           {
               'name': 'default',
               'media': '(min-height: 640px)',
               'srcset': [
                   ( '640w', [ '640x480',  '+profile &amp;quot;*&amp;quot;']),
                   ('1024w', ['1024x683',  '+profile &amp;quot;*&amp;quot;']),
                   ('1600w', ['1600x1200', '+profile &amp;quot;*&amp;quot;']),
               ],
               'sizes': '100vw',
           },
           {
               'name': 'source-1',
               'srcset': [
                   ('1x', ['600x450']),
                   ('2x', ['800x600']),
               ]
           },
       ],
       'default': ('default', '640w'),
   },
}
GALLERIA_DEFAULT_CLASS         = 'responsive-small'
GALLERIA_SINGLE_CLASS          = 'image-large'
GALLERIA_ICON_CLASS            = 'image-icon'
GALLERIA_DEFAULT_MAX_HEIGHT    = '600px'

&lt;/pre&gt;
&lt;p&gt;Remark in the first
that all URLs are chosen as relative here:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
RELATIVE_URLS = True
ARTICLE_URL   = ARTICLE_SAVE_AS  = '{slug}.html'
CATEGORY_URL  = CATEGORY_SAVE_AS = '{slug}.html'
&lt;/pre&gt;
&lt;p&gt;Also, all output files (articles, categories, tags, ...)
are written in the same &amp;quot;output/&amp;quot; directory, without any hierarchy.
This setting is convenient, since it allows
to develop and fully test the blog off-line
before to upload it on its final destination:
relative URLs, such as in the &lt;tt class="docutils literal"&gt;MENUITEMS&lt;/tt&gt;,
work both in off-line and in-line modes.&lt;/p&gt;
&lt;p&gt;The second part of the configuration file
contains the specific settings of the &lt;a class="reference external" href="http://lepagito.artliba.org"&gt;Lepagito&lt;/a&gt; theme:
these settings are be described in the sections
of the &lt;a class="reference external" href="goodies.html"&gt;Goodies&lt;/a&gt; category.
Finally, the third part
of the &lt;tt class="docutils literal"&gt;pelicanconf.py&lt;/tt&gt; file
sets the optional plugins:
see the &lt;a class="reference external" href="options.html"&gt;Options&lt;/a&gt; category.&lt;/p&gt;
</content><category term="Quickstart"></category><category term="pelicanconf.py"></category><category term="install"></category><category term="navigation"></category></entry></feed>