Compare commits
22 Commits
85c2da235d
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
186e0fd86a
|
|||
|
e76fd935e2
|
|||
|
bf661396df
|
|||
|
3f8b62489c
|
|||
|
ed93e0bf87
|
|||
|
9d85c9556d
|
|||
|
b8a0d145ae
|
|||
|
a2cde12408
|
|||
|
c2f4f4ca9f
|
|||
|
e1e962926e
|
|||
|
828c7dc3b6
|
|||
|
1bd70cb16b
|
|||
|
6e1812c2df
|
|||
|
8d37514d4d
|
|||
|
264f6be0a9
|
|||
|
b27cb687f9
|
|||
|
1a348f8e62
|
|||
|
388f527734
|
|||
|
20f50de0f0
|
|||
|
a5d0f0f6ab
|
|||
|
aadcc8ee6c
|
|||
|
71ca73347a
|
@@ -1,4 +1,30 @@
|
||||
# Pelican LaTeX theme
|
||||
|
||||
A theme for pelican which mimics the look of LaTeX documents.
|
||||
A theme for [Pelican](https://getpelican.com/) that mimics the look and feel of a LaTeX-typeset document — serif typography (bundled Latin Modern webfonts), justified body text, and syntax-highlighted code blocks styled to match.
|
||||
|
||||
## Features
|
||||
|
||||
- Light and dark mode, plus a choice of accent color, all switchable at runtime and remembered across visits
|
||||
- A serif/sans-serif font toggle for readers who prefer either look
|
||||
- Sidebar navigation with pages, recent articles, categories, and a weighted tag cloud
|
||||
- Built-in support for multilingual sites built with Pelican's `i18n_subsites` plugin, including a language switcher and per-page translation links
|
||||
- Lightbox viewer for images, and inline SVG handling that lets diagrams adapt their colors to the current light/dark theme
|
||||
- A small, optional row of social/profile link icons
|
||||
|
||||
## Structure
|
||||
|
||||
- `templates/` — Jinja2 templates for articles, pages, listing views (archives, tags, categories, authors), and shared partials
|
||||
- `static/css/` — the theme's stylesheet and Pygments syntax-highlighting themes
|
||||
- `static/js/` — the theme/accent/font toggles, lightbox, and SVG handling
|
||||
- `static/fonts/` — the bundled Latin Modern webfonts
|
||||
|
||||
To use the theme, point a Pelican site's `THEME` setting at this repository (or a submodule checkout of it).
|
||||
|
||||
## Configuration
|
||||
|
||||
Beyond Pelican's standard settings, the theme reads a few of its own from `pelicanconf.py`:
|
||||
|
||||
- `SOCIAL` — a tuple of `(name, url, icon_slug)` entries for the social/profile link row. `icon_slug` must match an SVG file in `templates/icons/<icon_slug>.svg`; currently bundled are `github`, `linkedin`, `orcid`, `mastodon`, `bluesky`, and `matrix`. Add more by dropping in another icon file with a matching slug. Leave `SOCIAL` unset to omit the row entirely.
|
||||
- `SITE_COMMIT` and `SITE_BRANCH` — optional build identifiers shown as a small line in the footer (e.g. "Build abc1234 (main)"), linked to the commit on Gitea. Meant to be set from a CI environment rather than hand-written; the footer line is omitted if `SITE_COMMIT` is empty.
|
||||
|
||||
The sidebar sections can also be toggled individually, following the same convention as Pelican's default theme: `DISPLAY_PAGES_ON_MENU` and `DISPLAY_CATEGORIES_ON_MENU` (both off unless set to `True`), and `DISPLAY_RECENT_ARTICLES_ON_MENU`/`DISPLAY_TAG_CLOUD_ON_MENU` (both on by default). `RECENT_ARTICLES_COUNT` caps the recent-articles list (default 10).
|
||||
|
||||
@@ -124,6 +124,9 @@
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
|
||||
{% if SITE_COMMIT %}
|
||||
<span class="header-delimiter">·</span> Build <a href="https://git.haemka.in/hmk/haemka.de/commit/{{ SITE_COMMIT }}">{{ SITE_COMMIT }}</a> ({{ SITE_BRANCH }})
|
||||
{% endif %}
|
||||
</address><!-- /#about -->
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-hidden="true" focusable="false"><title>LinkedIn</title><path d="M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1"/></svg>
|
||||
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-hidden="true" focusable="false"><title>LinkedIn</title><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 515 B After Width: | Height: | Size: 668 B |
Reference in New Issue
Block a user