Commit Graph

6 Commits (a392498f696a70ccae0ae31a9398155625a6f7ca)

Author SHA1 Message Date
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
Raymond Wanyoike 4aee394acb Move header, footer, xml_feeds to include; reason base.html 2017-11-21 15:22:11 +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 288e6464bd Reduce html files (space) tab size 4 -> 2 2014-10-29 12:03:00 +03:00
Raymond Wanyoike 96409841d8 Trivial: organize templates 2014-06-21 15:56:03 +03:00