My fork of pelican-svbhack is a responsive theme for Pelican, it is a hack of a svbtle-like theme.
You can see the theme in action.
- responsive design with mobile and desktop layouts
- dark mode (default) with light mode toggle
- theme preference saved to localStorage
- right sidebar table of contents on article pages (desktop only)
- syntax highlighting for pre blocks
- supports Google Analytics
- supports Plausible Analytics
- supports Remarkbox comments
- supports UncloseAI widget integration
- custom list of links
- no IE testing
- no custom menu
Clone the repository, edit your pelicanconf.py and modify the THEME variable to make it point to the downloaded theme location.
Supports a number of common global variables but patches are welcomed if you need better support.
-
GOOGLE_ANALYTICS- set to your UA-XYZ code to enable Google Analytics tracking -
PLAUSIBLE_ANALYTICS- set to your plausible domain name to enable Plausible Analytics -
REMARKBOX- set to true to enable Remarkbox.com comments in articles
-
USER_LOGO_URL- replace the logo placeholder by putting your logo in content/images/your_logo.png and setting this toSITEURL + '/static/images/your_logo.png' -
TAGLINE- text rendered right below the logo
When developing locally, set: SITEURL = http://localhost:8000
The theme automatically supports UncloseAI widget integration via the included script tag in base.html. The widget styling adapts to the dark/light theme automatically.
- Accent color can be changed by editing
@accentin./static/css/style.less. - A different Pygmentize theme can be used by editing
./Makefileand runningmake pygments.
pelican-svbhack is authored by Giulio Fidente. Russell Ballestrini forked this to create this branch.
Released under MIT License, full details in LICENSE file.
