Commit Graph

204 Commits (fd70e764b4ee100b4c3fa961336af32a3b88f20a)

Author SHA1 Message Date
Pierre-Antoine Champin fd70e764b4 added style for RST admonitions 2021-05-31 14:50:02 +02:00
Vitaly Potyarkin 74825583e1 Update screenshot for old style 2020-08-21 11:22:40 +03:00
Vitaly Potyarkin a25b97836d Fix oldstyle.css inconsistencies
Thanks to @moorepants for reporting!
https://github.com/nairobilug/pelican-alchemy/pull/79#issuecomment-678055920
2020-08-21 10:38:44 +03:00
Michiel Scholten 9f2ca43677 Support for link posts through the Link: metadata field 2020-01-24 15:18:20 +03:00
Pierre-Antoine Champin 77b73d0ab2 added translation list in article template 2020-01-24 15:06:36 +03:00
Vitaly Potyarkin 8ad0dd7449 Use less fragile detection of FontAwesome classes
List of all possible styles:
https://fontawesome.com/how-to-use/on-the-web/referencing-icons/basic-use
2020-01-24 14:51:18 +03:00
Vitaly Potyarkin 1b930951e7 Allow overriding bundled FontAwesome CSS with CDN URL 2020-01-24 14:51:18 +03:00
Vitaly Potyarkin 046f2fdd72 Add workaround for icons backwards compatibility
Now old pelicanconf.py should be rendered correctly with new Font Awesome:
- Some special cases are hardcoded. For now those are 'rss' and 'feed'
- If icon string starts with 'fa' it is assumed to represent full CSS class
- Otherwise a brand icon is assumed - sensible fallback for most users
2020-01-24 14:51:18 +03:00
Michiel Scholten 2521b87383 More flexible header icons, you should use the full FA css classes now 2020-01-24 14:51:18 +03:00
Michiel Scholten c6462589ba FA free local version 5.12.0 (all.min.css) from https://fontawesome.com/download 2020-01-24 14:51:18 +03:00
Pierre-Antoine Champin 9023c28af8 Migrated to new version of FontAwesome (using CDN) 2020-01-24 14:51:18 +03:00
Pierre-Antoine Champin 913dbab88d Fixed buggy format in jinja2 templates
Jinja2 filter for "format" only accepts "%s" placeholders, but Pelican has
long moved on to "{slug}" formatting:
https://docs.getpelican.com/en/stable/settings.html#feed-settings
2020-01-22 14:12:27 +03:00
Vitaly Potyarkin 77aa930bbc Link new docs page from docs/README 2020-01-22 10:01:49 +03:00
Vitaly Potyarkin 588dc0fcca Documentation for other comment engines
Related to #82
2020-01-22 09:59:41 +03:00
Raymond 91b9cd5329
Merge pull request #84 from sio/docs
Merge GitHub wiki contents into main repo
2019-12-26 12:10:06 +03:00
Vitaly Potyarkin c0b7c1b110 Fix links and headings after merging wiki contents 2019-12-03 16:23:17 +03:00
Vitaly Potyarkin 9b6dc4302e Merge wiki contents into docs/ 2019-12-03 16:15:29 +03:00
Vitaly Potyarkin ce6446a46c Prepare wiki for integration with main repo 2019-12-03 16:13:05 +03:00
Vitaly Potyarkin 3381c5031b Allow specifying custom links in the footer 2019-10-22 14:07:21 +03:00
Vitaly Potyarkin a392498f69 Support all edge cases for direct template links
Non-hardcoded paths are not that simple.

Direct templates do not always have meaningful *_URL or even *_SAVE_AS
values. More than that, those variables are not even defined by default.
Therefore we need to replicate the logic used by Pelican itself when
calculating the path to direct template output.

Related:

- DIRECT_TEMPLATES handling by Pelican:
  01eb08c42b/pelican/generators.py (L537-L550)
- Pelican issue for "Why are CATEGORIES_URL and TAGS_URL gone?"
  https://github.com/getpelican/pelican/issues/1225

Merges #75
2019-10-22 11:47:27 +03:00
Vedran Miletić ffcbf4168e Do not hardcode paths to Authors, Archives, Categories, Tags
Use AUTHORS_URL, ARCHIVES_URL, CATEGORIES_URL, TAGS_URL instead.
2019-10-21 17:43:40 +03:00
Vitaly Potyarkin 89dbba7a42 Allow providing JavaScript assets for generated website
Fixes #64, #65

Now users who wish to use Bootstrap dynamic elements (like dropdown menus)
can enable JavaScript either by including required scripts into their
static assets or by referencing their CDN URLs.

By default Alchemy uses no JavaScript - that has not changed.
2019-10-18 18:08:37 +03:00
Vitaly Potyarkin e11ebff22e Update feature list in README 2019-10-18 17:13:28 +03:00
Vitaly Potyarkin 072c8efb80 Add screenshots with different Boostwatch themes 2019-10-18 17:06:18 +03:00
Vitaly Potyarkin c8f57215aa Add stylesheet to restore old visual style
By default this stylesheet is not used, because it may break some
Boostwatch themes. User must explicitly enable it via THEME_CSS_OVERRIDES
2019-10-18 16:21:06 +03:00
Vitaly Potyarkin a3120f0534 Update Bootstrap to v4.3.1 2019-10-18 14:52:39 +03:00
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
Vitaly Potyarkin c66ac71cf7 Enable installation with pip 2019-09-27 12:20:52 +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
Raymond Wanyoike 555da7992c
Merge pull request #79 from sio/boostwatch
Enable alternative themes for Bootstrap (e.g. Boostwatch)
2019-09-27 11:47:22 +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
Raymond Wanyoike 6a3e2bb31a
Merge pull request #74 from jershon/master
Remove positional argument formatting on object-related feed URLs
2019-04-07 12:01:38 +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
Alan Orth 8e2377f8f9
Merge pull request #68 from alanorth/bootstrap-4.0-final
Update to Bootstrap v4.0.0 Final
2018-01-28 12:10:35 +02:00
Alan Orth afad3c0149
Update to Bootstrap v4.0.0 Final
See: https://blog.getbootstrap.com/2018/01/18/bootstrap-4/
2018-01-28 12:08:30 +02:00
Alan Orth 9a5cf6caf2
Merge pull request #67 from alanorth/bootstrap-v4.0b3
Update to Bootstrap 4 Beta 3
2018-01-28 11:56:48 +02:00
Alan Orth 9360b56f46
README.md: Update link to Bootstrap website
As of the betas the Bootstrap project is now listing version 4.0 on the
main homepage, rather than a subdomain.
2018-01-16 08:46:49 +02:00
Alan Orth 8eb587461b
Bump Bootstrap to version 4 Beta 3
See: https://blog.getbootstrap.com/2017/12/28/bootstrap-4-beta-3/
2018-01-16 08:40:27 +02:00
Alan Orth b63bbd5645
Merge pull request #66 from voipmeister/master
Small typo fix
2017-12-30 17:15:03 +02:00
voipmeister 33a0d277a4
Typo fix 2017-12-29 12:02:01 +01:00
Raymond Wanyoike 5dfdeeb084 Update to Bootstrap v4.0.0-beta.2, official release 2017-11-22 16:52:52 +02:00
Alan Orth e20de1fc78
Merge pull request #62 from rwanyoike/maintenance
Maintenance 🔧💪
2017-11-22 16:46:09 +02:00
Raymond Wanyoike bca2556216 Updated Home (markdown) 2017-11-22 00:31:20 +03:00
Raymond Wanyoike e0f293ec8a Updated Home (markdown) 2017-11-22 00:31:00 +03:00
Raymond Wanyoike df7bd65160 Code formatting 2017-11-22 00:28:08 +03:00
Raymond Wanyoike f23520fb29 Code formatting 2017-11-22 00:25:38 +03:00
Raymond Wanyoike 6c66a2427d Maintenance, new screenshot, update README
- How to Contribute
- Highlight features
2017-11-21 15:51:26 +03:00