Commit Graph

34 Commits (505be9315eb0025e85953c6cef9be19f8af9e3c5)

Author SHA1 Message Date
Georg Krause 505be9315e
Open header links in new tabs 2021-10-15 12:26:21 +02:00
Georg Krause 56448ef765
Add rel=me to links 2021-10-15 12:26:21 +02: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 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
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 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 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 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 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 b2ab9b8041 Bootstap v4.0.0-alpha.5 \o/ compatible
I couldn't resist
2016-11-30 23:49:26 +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 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 24aa65fcad Fix new favicon package support, missing tags
Minor improvements
2016-11-11 15:35:32 +03:00
Raymond Wanyoike 99c13a39c7 Fix up inconsistencies
Fix style inconsistencies
2016-11-07 10:09:32 +03:00
Raymond Wanyoike 23ef8ca9cc Simplify jinja2 base templates, update theme options
- New realfavicongenerator.net packages (https://realfavicongenerator.net/blog/new-favicon-package-less-is-more/)
- Support all possible Pelican feed links
- Add recommended HEAD elements (https://github.com/joshbuchea/HEAD)
- Use minified css assets
- Link to boostrap, clean-blog and font-awesome stylesheets
- Add theme options, better options names

Template consistency, update structure on base.html

Fix missing article summary on index.html

Show the article.summary for teasers
2016-11-06 22:32:20 +03:00
Raymond Wanyoike cb4f2e862f Remove google analytics support
One in many options that you can use to track page views, not on our
roadmap at the moment.

Update disqus support
2016-11-06 22:15:11 +03:00
lynix 8e1e53af31 introduce options for category, tag and archives links on menu 2015-04-10 21:21:20 +02:00
Alan Orth a6bada6a1e
Update Disqus JS embed to use HTTPS
We moved to HTTPS on the blog so we need to be loading JS resources
over HTTPS as well or else we get mixed-content errors in browsers.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-02-07 00:58:25 +03:00
Alan Orth 4b1c26add1 Update Google Analytics code
Use latest tracking blurb straight from Google. Also, the new code
uses "auto" for the domain so we don't need to set that anymore.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-02-06 17:19:53 +03:00
Raymond Wanyoike 288e6464bd Reduce html files (space) tab size 4 -> 2 2014-10-29 12:03:00 +03:00
Raymond Wanyoike 52380ceab6 Simplify base.html, include favicon and feed content 2014-10-29 12:03:00 +03:00
Raymond Wanyoike 479f12e827 Merge branch 'extra-favicon' of github.com:raymondwanyoike/pelican-alchemy into raymondwanyoike-extra-favicon
* 'extra-favicon' of github.com:raymondwanyoike/pelican-alchemy:
  Add EXTRA_FAVICON option
2014-08-08 20:08:39 +03:00
Raymond Wanyoike 910441751f Add EXTRA_FAVICON option
http://realfavicongenerator.net/faq#why_so_many_files
2014-06-21 16:33:14 +03:00
Raymond Wanyoike b9bc0810dd Add PAGES_ON_MENU option 2014-06-21 16:32:51 +03:00
Raymond Wanyoike 96409841d8 Trivial: organize templates 2014-06-21 15:56:03 +03:00
Raymond Wanyoike 752ebd247c This shit should work now
─────────▄──────────────▄
────────▌▒█───────────▄▀▒▌
────────▌▒▒▀▄───────▄▀▒▒▒▐
───────▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
─────▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
───▄▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀██▀▒▌
──▐▒▒▒▄▄▄▒▒▒▒▒▒▒▒▒▒▒▒▒▀▄▒▒▌
──▌▒▒▐▄█▀▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
─▐▒▒▒▒▒▒▒▒▒▒▒▌██▀▒▒▒▒▒▒▒▒▀▄▌
─▌▒▀▄██▄▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
─▌▀▐▄█▄█▌▄▒▀▒▒ Such commit ▐
▐▒▀▐▀▐▀▒▒▄▄▒▄▒▒▒▒▒░░░░░░▒▒▒▒▌
▐▒▒▒▀▀▄▄▒▒▒▄▒▒▒▒▒▒░░░░░░▒▒▒▐
─▌▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒▒▒ Wow ▒▒▒▌
─▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐
──▀▄▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▄▒▒▒▒▌
────▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀
───▐▀▒▀▄▄▄
2014-05-29 00:54:52 +03:00