PELICAN-THEMES(1)
okay bestie, buckle in β this is pelican-themes(1), the manual page for the Pelican theme manager, and it's giving useful. π
β¨
π NAME π
pelican-themes β a theme manager for Pelican. That's the name, that's the job. π
π DESCRIPTION π
pelican-themes is a command line tool for managing themes for Pelican. See Themes <#settings-themes> for settings related to themes.
β¨ Usage β¨
pelican-themes [-h] [-l] [-i theme path [theme path ...]]
[-r theme name [theme name ...]]
[-s theme path [theme path ...]] [-v] [--version]
π¦ Optional arguments: π¦
-h,--helpβ Show the help and exit-l,--listβ Show the themes already installed-i theme_path,--install theme_pathβ One or more themes to install-r theme_name,--remove theme_nameβ One or more themes to remove-s theme_path,--symlink theme_pathβ Same as--install, but create a symbolic link instead of copying the theme. Useful for theme development-v,--verboseβ Verbose output--versionβ Print the version of this script
π EXAMPLES π
π Listing the installed themes π
With pelican-themes, you can see the available themes by using the -l or --list option β look at her go:
$ pelican-themes -l
notmyidea
two-column@
simple
$ pelican-themes --list
notmyidea
two-column@
simple
In this example, we can see there are three themes available: notmyidea, simple, and two-column.
two-column is followed by an @ because this theme is not copied to the Pelican theme path, but is instead just linked to it (see Creating symbolic links for details about creating symbolic links).
Note that you can combine the --list option with the -v or --verbose option to get more verbose output, like this:
$ pelican-themes -v -l
/usr/local/lib/python2.6/dist-packages/pelican-2.6.0-py2.6.egg/pelican/themes/notmyidea
/usr/local/lib/python2.6/dist-packages/pelican-2.6.0-py2.6.egg/pelican/themes/two-column (symbolic link to `/home/skami/Dev/Python/pelican-themes/two-column')
/usr/local/lib/python2.6/dist-packages/pelican-2.6.0-py2.6.egg/pelican/themes/simple
π Installing themes π
You can install one or more themes using the -i or --install option. This option takes as argument the path(s) of the theme(s) you want to install, and can be combined with the --verbose option:
# pelican-themes --install ~/Dev/Python/pelican-themes/notmyidea-cms --verbose
# pelican-themes --install ~/Dev/Python/pelican-themes/notmyidea-cms\
~/Dev/Python/pelican-themes/martyalchin \
--verbose
# pelican-themes -vi ~/Dev/Python/pelican-themes/two-column
π§ Removing themes π§
The pelican-themes command can also remove themes from the Pelican themes path. The -r or --remove option takes as argument the name(s) of the theme(s) you want to remove, and can be combined with the --verbose option.
# pelican-themes --remove two-column
# pelican-themes -r martyachin notmyidea-cmd -v
π₯ Creating symbolic links π₯
pelican-themes can also install themes by creating symbolic links instead of copying entire themes into the Pelican themes path.
To symbolically link a theme, you can use the -s or --symlink, which works exactly as the --install option:
# pelican-themes --symlink ~/Dev/Python/pelican-themes/two-column
In this example, the two-column theme is now symbolically linked to the Pelican themes path, so we can use it, but we can also modify it without having to reinstall it after each modification.
This is useful for theme development:
$ sudo pelican-themes -s ~/Dev/Python/pelican-themes/two-column
$ pelican ~/Blog/content -o /tmp/out -t two-column
$ firefox /tmp/out/index.html
$ vim ~/Dev/Pelican/pelican-themes/two-column/static/css/main.css
$ pelican ~/Blog/content -o /tmp/out -t two-column
$ cp /tmp/bg.png ~/Dev/Pelican/pelican-themes/two-column/static/img/bg.png
$ pelican ~/Blog/content -o /tmp/out -t two-column
$ vim ~/Dev/Pelican/pelican-themes/two-column/templates/index.html
$ pelican ~/Blog/content -o /tmp/out -t two-column
π Doing several things at once π
The --install, --remove and --symlink options are not mutually exclusive, so you can combine them in the same command line to do more than one operation at time, like this:
# pelican-themes --remove notmyidea-cms two-column \
--install ~/Dev/Python/pelican-themes/notmyidea-cms-fr \
--symlink ~/Dev/Python/pelican-themes/two-column \
--verbose
In this example, the theme notmyidea-cms is replaced by the theme notmyidea-cms-fr
π Author π
MickaΓ«l Raybaud β author, icon, legend. π
β Copyright β
2010β2026 β that's the copyright range. π
that's the whole page, bestie π«Ά source: pelican-themes(1) Β· version: 4 Β· date: Oct 04, 2026 β go forth and manage those themes β¨π
π¦ where this page comes from
- arch rolling: pelican 4.12.0-1 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms