Chemistry is theme for the Pelican static website generator which aims at being minimalistic, but also easily tunable and extensible.
The theme provides the following additional settings:
Name | Value |
---|---|
TAGLINE |
A text to display below the site title. |
|
License to display in the page footer (e.g. |
|
License URL. Should be set if the |
|
URL for the favicon (e.g. |
|
URL for an additional CSS file (e.g. |
|
If set to |
|
If set to |
|
The relative URL of the search page ( |
|
Whether to show articles author(s) on the index page. |
|
If set to |
GOOGLE_ANALYTICS |
The Google Analytics id for the site. |
|
The Disqus site name to enable embedded comments embedding in posts. |
MASTODON_LINK |
Mastodon link, for verification. |
The theme supports some plugins from pelican-plugins.
The theme supports styling header links from the headerid plugin. Anchors for permalinks to paragraphs are shown on hover on titles.
If the tipue_search plugin is enabled, a search box is shown in pages and search is available.
Note that you need to add 'search'
to DIRECT_TEMPLATES
for the search results page to work.
Rebuilding CSS requires less
and less-plugin-clean-css
, which are available on npm. These can be installed with:
make deps
The theme CSS is located in static/css/style.less
. If you make any changes, you can rebuild the minified theme file with:
make css
Syntax highlight is done through Pygments. The default theme can be changed regenerating the pygments CSS file with:
make pygments PYGMENTS_STYLE=<style-name>