Vitaly Potyarkin
d2066d2e5c
Support paths relative to site root in LINKS and ICONS
2019-10-18 14:43:23 +03:00
Vitaly Potyarkin
f4189db4de
Support external URL values for SITEIMAGE
...
Fixes #72
2019-10-18 14:33:48 +03:00
Vitaly Potyarkin
5251f12a56
Use macro for URLs that may be relative to site root
...
There are multiple places in the theme where URL value may be either
relative to site root or pointing to a third-party resource. Separating
the handler logic into a macro makes sense.
Now BOOTSTRAP_CSS may contain paths relative to site root - that allows
users to apply custom Boostwatch themes without depending on third party
resources (custom theme may be included as static file and referenced via
relative path).
2019-10-17 18:02:36 +03:00
Raymond Wanyoike
0c6fd9e5c3
Merge pull request #80 from sio/override-css
...
Add configuration parameter to override the stylesheet 👍
2019-09-27 11:48:50 +03:00
Vitaly Potyarkin
63e4576c4a
Add configuration parameter to override the stylesheet
...
This commit adds new configuration parameter, THEME_CSS_OVERRIDES, which
can contain a sequence (list, tuple, etc) of URLs to extra stylesheets
that will be used to override default theme appearance. Both absolute and
relative URLs are supported.
It makes the theme more flexible by allowing small stylesheet tweaks
without requiring to maintain a fork of the whole theme.
When this parameter is not set the theme behaves same as before.
2019-09-19 14:24:09 +03:00
Vitaly Potyarkin
18996a6c1d
Enable alternative themes for Bootstrap (e.g. Boostwatch)
...
Alchemy is a great theme, but it was not using the full potential of
underlying technology. Bootstrap provides an easy way to customize look
and feel of rendered pages, and a lot of themes for Bootstrap are freely
available, e.g. at <https://boostwatch.com >
This commit introduces a new configuration variable BOOTSTRAP_CSS to make
use of any existing Bootstrap skins. All incompatibilities in `theme.css`
were fixed:
- Instead of using constant color values we use Bootstrap css variables for
colors:
<https://getbootstrap.com/docs/4.3/getting-started/theming/#css-variables >
- The only hardcoded color value left is the color for header/footer
borders. It was moved into a variable `--alchemy-border` for easier
overriding if needed. I have tested the current value against both dark
and light Boostwatch themes, it works ok.
- Pagination template was slightly changed to avoid producing invisible
text with some of Bootstrap skins
2019-09-18 17:52:08 +03:00
Julien Jershon
31f4f705d6
Remove positional argument formatting on object-related feed URLs to be complient with pelican 4.0
2018-12-20 10:23:48 +01:00
Raymond Wanyoike
5dfdeeb084
Update to Bootstrap v4.0.0-beta.2, official release
2017-11-22 16:52:52 +02:00
Raymond Wanyoike
413bb6e5ae
Make header image edges ~1px rounded
2017-11-21 15:22:29 +03:00
Raymond Wanyoike
75a023e04c
Indent jinja code blocks, allow editors to collapse regions
2017-11-21 15:22:16 +03:00
Raymond Wanyoike
4aee394acb
Move header, footer, xml_feeds to include; reason base.html
2017-11-21 15:22:11 +03:00
Raymond Wanyoike
1c944d0f3d
Rename style.css -> theme.css
2017-11-21 15:21:48 +03:00
Raymond Wanyoike
11b6b9fd9a
Merge branch 'master' of https://github.com/weeheavy/pelican-alchemy into weeheavy-master
...
Don't quote the <img /> src=, some Pelican configs pass width/height to
{{ SITEIMAGE }}, and an unquoted src= allows the browser to that up.
2017-04-08 23:14:48 +03:00
Oliver Ladner
b3440bdf9b
Fix path building for empty or "/" SITEURL configurations
...
Add quotes to img src element
2017-02-20 19:03:15 +01:00
Raymond Wanyoike
d35b46995a
Remove PAGES; use pages instead
...
Remove PAGES from context as "pages" is available
See: ec5c77b251
Closes : #55
2017-01-05 19:10:43 +03:00
Raymond Wanyoike
c78c3e5a43
Revert links to 👉 to @nairobilug
2016-12-02 23:10:21 +03:00
Raymond Wanyoike
722eafd38d
🦄 Update setup instructions
2016-12-01 14:52:06 +03:00
Raymond Wanyoike
a00eaab125
Pixels must! align 🐺
...
Remove rounded, keep consistent design
2016-12-01 02:47:09 +03:00
Raymond Wanyoike
b2ab9b8041
Bootstap v4.0.0-alpha.5 \o/ compatible
...
I couldn't resist
2016-11-30 23:49:26 +03:00
Raymond Wanyoike
8b0903ec8e
Add missing HTML img alt attribute
...
Wrap content body in div
Add title class to titles
Show icons with the teaser metadata
Visual improvements
2016-11-30 21:46:02 +03:00
Raymond Wanyoike
d911f0b813
Reference my up to date fork
2016-11-29 16:17:21 +03:00
Raymond Wanyoike
d35fedcd41
Fix SITEIMAGE relative url's
2016-11-29 16:08:32 +03:00
Raymond Wanyoike
118bfc6346
Visual improvements
2016-11-29 14:54:27 +03:00
Raymond Wanyoike
bfb5895c63
Hide footer tags link if no tags exist
...
Hide meta description if DESCRIPTION is undefined
Minor improvements
2016-11-16 15:17:40 +03:00
Raymond Wanyoike
d7b535dc95
ARTICLE_AUTHORS -> HIDE_AUTHORS
2016-11-12 15:21:48 +03:00
Raymond Wanyoike
8879c5cf58
Refactor header links, icons and settings
...
- Support misc fontawesome icons/links
- Pelican DISPLAY_PAGES_ON_MENU setting
2016-11-12 11:33:30 +03:00
Raymond Wanyoike
5f3b881368
Add GOOGLE_ANALYTICS, GAUGES and PIWIK analytics support
...
Attempt to match the Pelican notmyidea theme featureset
https://github.com/getpelican/pelican/blob/master/pelican/themes/notmyidea
2016-11-12 11:32:05 +03:00
Raymond Wanyoike
1df506e0e2
Change the default PYGMENTS_STYLE native -> default
...
Lighter theme that matches our theme
2016-11-12 11:29:54 +03:00
Raymond Wanyoike
32bd56b917
Update theme settings FAVICONS -> NEW_FAVICONS, META_DESCRIPTION -> DESCRIPTION
...
FAVICONS -> NEW_FAVICONS to imply the different favicon setup
META_DESCRIPTION -> DESCRIPTION semantics
2016-11-12 11:29:19 +03:00
Raymond Wanyoike
1e89cd6389
Strip html tags from article summary
2016-11-12 11:27:38 +03:00
Raymond Wanyoike
9ef5613eab
Add sitemap support, https://github.com/getpelican/pelican/wiki/Tips-n-Tricks#generate-sitemapxml
2016-11-12 11:26:38 +03:00
Raymond Wanyoike
24aa65fcad
Fix new favicon package support, missing tags
...
Minor improvements
2016-11-11 15:35:32 +03:00
Raymond Wanyoike
075c135dac
Remove clean-blog css, model alchemy off clean-blog
2016-11-09 20:17:59 +03:00
Raymond Wanyoike
a4048d9d68
Add img-thumbnail, img-circle class to site image
...
Formatting
2016-11-09 20:10:04 +03:00
Raymond Wanyoike
f645f704f9
Pages are also articles
2016-11-09 20:09:28 +03:00
Raymond Wanyoike
151c18da13
Add fontawesome icons to article meta
2016-11-09 20:08:27 +03:00
Raymond Wanyoike
304d9530d3
Switch <title> separator from — -> |
2016-11-09 20:07:43 +03:00
Raymond Wanyoike
7f4a22cc05
Use fa-lg class on fontawesome header icons
2016-11-08 08:22:47 +03:00
Raymond Wanyoike
9ae089c9b0
Fix invalid html definition
2016-11-08 08:21:37 +03:00
Raymond Wanyoike
218b91fbe1
Rename theme options to match pelican options
...
Format stylesheet
2016-11-07 13:10:33 +03:00
Raymond Wanyoike
f58a419a6c
Theme support, add PYGMENTS_STYLE option, stylesheets
...
To generate pygments theme files, get a list of known styles:
>>> from pygments.styles import STYLE_MAP
>>> STYLE_MAP.keys()
['default', 'emacs', 'friendly', 'colorful']
Generate the relevant stylesheet etc:
$ pygmentize -S emacs -f html -a '.highlight pre' > pygments/emacs.css
2016-11-07 12:24:30 +03:00
Raymond Wanyoike
fa95d70051
Missing {{ SITEURL }} property in href links
2016-11-07 12:07:45 +03:00
Raymond Wanyoike
fa001c23a1
Support multiple authors, via the :author:/:authors: metadata field
2016-11-07 12:05:38 +03:00
Raymond Wanyoike
32cb3b69c2
Option rename SHOW_ARTICLE_AUTHOR -> SHOW_ARTICLE_AUTHORS
...
Rename HEADER_LINKS -> EXTERNAL_LINKS, *_ADDRESS -> *_LINK
2016-11-07 11:56:32 +03:00
Raymond Wanyoike
23e6d59d7f
Polish Jinja2 conditionals, fix edge cases (if this, then that)
2016-11-07 11:49:32 +03:00
Raymond Wanyoike
b8707771d2
Remove SHOW_HEADER_*, SHOW_FOOTER_* options, keep it lean
2016-11-07 11:48:47 +03:00
Raymond Wanyoike
5bf6143b90
Format feed link titles
2016-11-07 11:46:43 +03:00
Raymond Wanyoike
3ac5a83a2f
User html5 semantic elements
2016-11-07 10:18:02 +03:00
Raymond Wanyoike
99c13a39c7
Fix up inconsistencies
...
Fix style inconsistencies
2016-11-07 10:09:32 +03:00
Raymond Wanyoike
27de618fdb
article.summary, and page.summary are always set
...
Pelican will use `Summary:` or trim the content
2016-11-07 10:07:44 +03:00