Clean and tidy theme for Pelican.
Project description
Plumage
Plumage is a theme for Pelican, a static site generator written in Python.
I initially created this theme for my blog, but now the theme is supposed to be generic enough to have its own repository.
Features
- Based on Bootstrap v3.
- Solarized code snippets via Pygments for syntax highlighting.
- Site-wide static search via Tipue-search.
- Project template.
- Tags grouped by tiers.
- External assets (Bootstrap, Jquery, etc...) uses CDNjs .
- YouTube links.
- Direct link to edit articles on Github.
Plugins
Plumage has built-in support for the following plugins:
Installation
This package is available on PyPi, so
you can install the
latest stable release and its dependencies with a simple pip call:
$ pip install plumage
Then, update your pelicanconf.py file, with the module:
import plumage
THEME = plumage.get_path()
Settings
Plumage can be customized by adding these optionnal parameters to your
pelicanconf.py file:
| Setting name | Default value | Description |
|---|---|---|
ARTICLE_EDIT_LINK |
Generate an edit link besides each article. Can use %(slug)s to include dynamic article's slug in the link. |
|
COPYRIGHT |
Additional copyright statement to add in the third column of the footer. | |
DISCLAIMER |
Overide the Disclaimer notice that gets displayed at the fourth column of the footer. | |
DISQUS_SITENAME |
Pelican can handle Disqus comments. Specify the Disqus sitename identifier here. | |
FAVICON_LINKS |
True |
Fetch link's icons from Google's favicons webservice. |
FLAT_DESIGN |
True |
Should we use the default Bootstrap theme, effectively rendering widgets in a flat-style design or not. |
GOOGLE_ANALYTICS |
Set to UA-XXXXX-Y Property's tracking ID to activate Google Analytics. |
|
GA_COOKIE_DOMAIN |
auto |
Set cookie domain field of Google Analytics tracking code. |
GOOGLE_SEARCH |
Google's Custom Search Engine ID (e.g. partner-pub-0123456789098765:0123456789) to activate blog specific search. |
|
LEFT_SIDEBAR |
HTML content to put as-is in the left sidebar. | |
LINKS_WIDGET_NAME |
"Links" |
Allows override of the name of the links widget. |
LINKS |
A list of tuples (Title, URL) for links to appear in the second column of the footer. | |
MANUAL_LINKS |
When enabling this, you must pass the links (in LINKS & SOCIAL settins) not as tuples anymore, but as list, where every entry is formatted as you like | |
MENUITEMS |
A list of tuples (Title, URL) for additional menu items to appear at the beginning of the main menu. | |
PIWIK_SITE_ID |
ID for the monitored website. You can find the ID in the Piwik admin interface > Settings > Websites. | |
PIWIK_SSL_URL |
If the SSL-URL differs from the normal Piwik-URL you have to include this setting too. (optional) | |
PIWIK_URL |
URL to your Piwik server - without https:// at the beginning. |
|
RIGHT_SIDEBAR |
HTML content to put as-is in the right sidebar. | |
SITESUBTITLE |
A subtitle to appear in the header. | |
SITE_THUMBNAIL_TEXT |
Text displayed behind site's thumbnail. | |
SITE_THUMBNAIL |
Site's thumbnail URL as displayed in the header. Should be a square image of at least 80x80 pixels. | |
SOCIAL_WIDGET_NAME |
"Social" |
Allows override of the name of the “social” widget. |
SOCIAL |
A list of tuples (Title, URL) to appear in the first columns of the footer. | |
TIPUE_SEARCH |
False |
Activate Tipue Search (javascript search engine) into the site. Requires the tipue_search plugin. |
Most of these parameters are similar to notmyidea's
(Pelican's default
theme). For usage example, please have a look into my own pelicanconf.py
.
The theme is also sensible to this list of standard Pelican parameters :
ARCHIVES_SAVE_ASAUTHORAUTHOR_SAVE_ASAUTHORS_SAVE_ASCATEGORIES_SAVE_ASCATEGORY_FEED_ATOMCATEGORY_FEED_RSSDEFAULT_LANGDEFAULT_PAGINATIONDISPLAY_PAGES_ON_MENUDISPLAY_CATEGORIES_ON_MENUFEED_ALL_ATOMFEED_ALL_RSSFEED_ATOMFEED_DOMAINFEED_RSSPAGINATION_PATTERNSSITENAMESITEURLTAG_FEED_ATOMTAG_FEED_RSSTAGS_SAVE_ASTYPOGRIFY
Common pitfalls
Some plugins may need additional settings, for instance for tipue_search, after applying the standard options:
PLUGINS = ['tipue_search']
TIPUE_SEARCH = True
... you'll need to declare additional template file,
by either adding this line to your pelicanconf.py:
TEMPLATE_PAGES = {
'search.html': 'search.html',
}
or using this technique.
FAQ
How can I disable the zoom on images?
All images of an article are zoomable by default. You can deactivate the
magnifying glass per-image by adding a noZoom CSS class. So instead of the
following Markdown code:

You have to use the following template to deactivate the zoom of an image:
{: .noZoom}
License
This software is licensed under the GNU General Public License v2 or later (GPLv2+).
Copyright (C) 2012-2017 Kevin Deldycke and contributors. All Rights Reserved.
Third-party assets
The theme uses external softwares, scripts, libraries and artworks:
jQuery MGlass v1.1
Copyright (c) 2012 Younès El Biache
Distributed under a MIT license
Source: https://github.com/younes0/jQuery-MGlass
Solarized Pygment style v0.1.0
Copyright (c) 2012 Shoji KUMAGAI
Distributed under a MIT license
Source: https://pypi.python.org/pypi/pygments-style-solarized
Fabric (Plaid)
Copyright (c) 2012 James Basoo
Distributed under a Creative Commons Attribution-ShareAlike 3.0 Unported license
Source: https://subtlepatterns.com/fabric-plaid/
Cream paper
Copyright (c) 2012 Devin Holmes
Distributed under a Creative Commons Attribution-ShareAlike 3.0 Unported license
Source: https://subtlepatterns.com/cream-paper/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plumage-1.0.0.tar.gz.
File metadata
- Download URL: plumage-1.0.0.tar.gz
- Upload date:
- Size: 86.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.3 Darwin/19.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2490dfde69bc09f22110c0303048ee5e9073f1cb0cfc9d43ba2638dc66f36726
|
|
| MD5 |
20bab8d3ccaf51b1a0c10b37639c4a47
|
|
| BLAKE2b-256 |
788031e17b8354215df505c94394ad0db62dcceb70ad5fc009cde5f2f463c5ce
|
File details
Details for the file plumage-1.0.0-py3-none-any.whl.
File metadata
- Download URL: plumage-1.0.0-py3-none-any.whl
- Upload date:
- Size: 94.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.3 Darwin/19.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92ecb6634fa9dea84f91ee8d2ce27e916c210c1e3cfab7abe5df504cedd9e1da
|
|
| MD5 |
349ad4bd65f735b29bab0cf567f4c8da
|
|
| BLAKE2b-256 |
043be439b6e276edc48842ac79e4b712fa778e42da4586b1ccab59dbbda3c07e
|