Subtle Pelican Theme
- Clean, responsive design. Scales to fit any screen
- Fully HTML5 compliant
- Ability to hide email addresses from spambots
- Syntax highlighting for code blocks
- Integrated Google Analytics
- Custom sidebar links and social icons
- Disqus comment integration
For automatic minification and compression of assets, this theme uses the
webassets package, along with
compiling the SCSS styles.
- All these can be installed with
pip install -r requirements.txt
Additionally, to integrate the
webassets package into pelican, the pelican-assets plugin
is required. It's included in this repo as a submodule so it just needs to be
"<theme dir>/plugins"to the
os.path.join("<theme dir>", "plugins")if you're feeling Pythonic)
- Clone this repository making sure to get the submodules (ex:
git clone --recursive <repo>)
- Install and configure the required dependencies (see above)
- Modify the
pelicanconf.pyto point to the cloned theme location
- Customize the theme using the options below
When developing locally, you may want to set
SITEURL to something like
This theme supports a number of custom variables:
GOOGLE_ANALYTICS_ID: Your Google Analytics UA-XXXXXXXX-X code (
Noneto disable analytics).
GOOGLE_ANALYTICS_PROP: Your Google Analytics property name (
Noneto disable analytics).
DISPLAY_META_ABOVE_ARTICLE: Set to
Trueto display article information above the article (default is below).
DISQUS_SITENAME: Set this to enable Disqus comments on articles.
DISQUS_COLLAPSED: Set to
Trueto have article comments hidden by default. Clicking a link on the page will load them.
USER_LOGO_URL: The image to display as the profile image. Can be local or a remote URL.
TAGLINE: The site's tagline. Rendered right below the user image.
MANGLE_EMAILS: If enabled, any emails in the
GLOBAL_KEYWORDS: A list of strings that will be set as meta keywords for each page.
True, uses lw-timeago to display fuzzy dates on articles (eg. 'Posted 3 months ago').
pelican-subtle is authored by pR0Ps.
pelican-svbhack is authored by Giulio Fidente.
Pull requests welcome!
The MIT License (MIT) Copyright (c) 2012 William Ting Copyright (c) 2013 Giulio Fidente Copyright (c) 2015 Carey Metcalfe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.