* add canonical_url block to base.html, change canonical url for pages
* Avoid nesting block within block
That leads to repeating the block twice instead of replacing its value
from `base.html`
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
* example correction that prevents author's cover images from being overwritten by inherited code in index.html
* article, author, category and tag extends to base.html instead of index.html
The variable was incorrectly pasted as `article` which made rendering
pages impossible. Thanks to @kloppen for triaging and suggesting the fix.
Fixes#29
* Ref #24 linkedin and github social link in author page and article page
-test case for that
- BaseTest added
* Ref #24 icon to link since linkedin and github is not present
* article color fix
* #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
* Implement AUTHOR_BIO "name" and "cover" fields.
In the theme readme, there's are "name" and "cover" fields in the
AUTHOR_BIO example, but these two fields weren't implemented yet.
Instead, the author page was displaying the author entry through
the title Jinja2 filter (which doesn't work so well for surnames like
mine, which contains multiple capital letters ;) ), and the cover
image was being used for the avatar image. This change uses the
"name" and "cover" fields for these, respectfully.
The cover image on the author page will also gracefully fall back
to the site default if an author cover isn't specified as well.
* Correct name author name display in post loop
* Set author name if author bio not set
default author name string will be title and that can be override form auther bio name
* added trailing slash to Home link - to properly handle root urls
* updated Home link on author page
* updated Home link on misc. pages
* switched from capitalize to title in order to properly capitalize two word names
* reverted URL changes to keep seperate from casing logic changes
* updated metatag logic to remove extraneous metatags on articles
* removed other changes. only author casing in this PR