Commit graph

4 commits

Author SHA1 Message Date
Vitaly Potyarkin
84e7843aaa Render tag cloud on tags page (#37)
Tags page was quite boring and didn't use horizontal space efficiently.
This commit replaces plain tag list with tag cloud that gracefully scales
to any screen (Attila's responsive design principle is not violated).

Details:

- Tags are still sorted alphabetically
- Tags with more articles have bigger font size
- Number of font size steps is defined via TAG_CLOUD_STEPS variable.
  If that variable is not set or is zero, default value of 5 steps is
  used. Stylesheet is written to support up to 10 steps.
- Tag tooltip shows number of articles with that tag

There exists a separate plugin for tag cloud[1], but using it still
requires making changes to the theme. Trivial math calculations can be
done as easily in Jinja as in Python, so the dependency on external
package can and should be avoided.

Screenshots: before [[2]], after [[3]]

[1]: https://github.com/getpelican/pelican-plugins/tree/master/tag_cloud
[2]: https://i.imgur.com/ivZQIxi.png
[3]: https://i.imgur.com/fLNVKpj.png
2018-09-29 13:31:14 +05:30
Arul
7b26ad1013
Header fixes (#25)
* #21 changing logic to selecting cover image

- For categories, tags

- Some code refactor and indenting

* #21 initial codes for pelican unit tests

* #21 few more testing changes

* Ref #21 unit tests for article tests coverimages

* Ref #21 unit tests for page, tags, category and author coverimages

* Ref #21 readme updated
2018-05-14 13:26:35 +05:30
beleriandcrises
994b999633 Custom headers (#19)
* added custom headers for page, tag and category templates

* fixed readme

* fixed readme

* removed HEADER_COVER_BY_PAGE
2018-04-29 06:35:06 +05:30
Arul
858c116b74 How to set menu (#12)
* #11 moved to adoc from md

* #11 fabfile to publish docs to gh-pages

* #11 sidebar menu docs added
2017-09-17 12:02:30 +05:30