pelican-svbhack is a responsive theme for Pelican, it is my hack of a svbtle-like theme.
You can see the theme in action.
- responsive
- syntax highlighting for pre blocks
- supports google analytics and matomo
- custom list of links
- supports the readtime plugin
- 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_ANALYTICSto use Google Analytics, set this var to your UA-XYZ code -
MATOMO_URLto use Matomo, set this var to your server, e.g. "analytics.example.com" (no protocol prefix) -
MATOMO_SITE_IDto use Matomo, set this var to your site ID, e.g. "1" -
USER_LOGO_URLto replace the logo placeholder, put your logo in content/images/your_logo.png and make this var point toSITEURL + '/static/images/your_logo.png' -
ROUND_USER_LOGOset this toTrueto crop your logo to a circle and add a black border -
HIDE_USER_LOGOset this toTrueto hide the placeholder without adding your logo -
USE_GENERIC_FONT_FAMILIESset this toTrueto use generic font families and avoid using Google Fonts -
DISQUS_SITENAMEset this to your Disqus sitename to enable disqus comments in articles -
TAGLINEsome text rendered right below the logo -
INTERNET_DEFENSE_LEAGUEset this toTrueif you want to enable the Internet Defense League code
When developing locally, you may want to set the following variable: SITEURL = http://localhost:8000
- 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.
Released under MIT License, full details in LICENSE file.
