A lektor theme for Honey Bee Health Content is currently Here
Create a directory themes
in the honebeehealthresearch.org
directory and link this repo:
cd honeybeehealthresearch.org
mkdir themes
cd themes
ln -s /path/to/this/repo .
This theme requires a Lektor plugin.
Add to the [packages]
section of your lektorproject configuration file
[packages]
https://github.com/arabidopsis/lektor-shortcodes/archive/main.tar.gz = ""
This still uses pip so the versioning info is not required.
OR you can download the repository into your packages directory
git clone https://github.com/arabidopsis/lektor-shortcodes.git $(lektor project-info --tree)/packages/
lektor plugins list # list will install any newly found plugins
This theme uses bootstrap5 and has no "internal" dependency
on jQuery. Some shortcodes require some vanilla javascript to
work. In paticular the contact-form
shortcode uses some vanilla javascript
to do form validation. Also the twitter
and omap
shortcodes will
install their javascript libraries. If you have set ua_google
then
this will also add its library.
To add a 404 page just add to a content/404.html/contents.lr
file:
_model: none
---
_template: 404.html
This theme understands a few
values in the [theme_settings]
of
your project file.
[theme_settings]
# google analytics
ua_google = UA-XXXXX-Y
# text to overlay header
# frontispiece = 'text for header'
# sitemap.xml changefreq
changefreq = monthly
# default is no theme
theme = sunset
# is this theme a dark theme? i.e. light text on dark background
is_dark_theme = false
# bootstrap = {some-bootstrap.css}
The theme can be one of: mickie
, hollar
, sunset
,wandoo
, graymor
, electro
, lymcha
, deeply
, minco
, skeeblu
, preptor
or monotone
.
See here or, build your own
at https://themestr.app/ or see http://themes.guide/.
If you have built your own place it in /assets/static/css/{mytheme.css}
and
add a bootstrap = mytheme.css
to the the [theme_settings]
. (Don't bother to set theme
in this case)
The page /extras/globals
defines some site wide parameters including
twitter handles, facebook handles, highlight color etc.
These are the "extra" classes known to this theme (apart from
bootstrap5 classes!). Currently only hl
, admonition-*
, filter-x?bw
,
social-logos
and feature
have any css styles attached to them.
Also the class dark
or light
is attached to body
based on
config.THEME_SETTINGS.is_dark_theme
content
wraps the entire documenthl
highlight class for h1,h2 etc.markdown
wraps all markdown blockspublication-list
wraps list of publicationspublication
wrapped bypublication-list
and wrapspub-date
,pub-doi
,pub-date
,pub-pubmed
,pub-title
,pub-journal
,pub-authors
andpub-ref
social-logos
followed byfollow
wraps any social logos linksparallax-window
for parallax blocksfull-news-item
wraps a full news item cardsitemap
wraps sitemap linksadmonition
andadmonition-note
,admonition-tip
,admonition-warning
,admonition-info
for admonition "shortcode".feature
for feature shortcode{{feature beer}}
logo
for logo overlaying headervignettes
wraps vignette list marked byvignette
filter-bw
andfilter-xbw
grayscale image hovers