Commit graph

12 commits

Author SHA1 Message Date
Valerio Viperino 8fc4001c4f feat: Compatibility with zola >=0.19
NOTE: This breaks compat with previous previous versions since Zola made a
breaking change in 0.19 and imho it's not worth trying to support previous
versions too.
2024-08-18 14:51:34 -07:00
vvzen 2bb4eb9ee2 feat: Change RSS icon, do not prepend {{name}}
There's some css rules for which prepending the name of the menu item as
set in the config causes the <a> element to appear shifted down compared
to the other <a> elements of the menu. I might have a look later, but
for now this enables only the appeareance of the RSS icon, discarding
entirely the name of the link.
2024-08-18 14:36:57 -07:00
vvzen ec0b182d0f feat: Support atom rss too 2024-08-18 14:36:57 -07:00
vvzen c5f29a69ec chore: Newlines 2024-08-18 14:36:57 -07:00
vvzen 3d03d06460 feat: Also gate on config.generate_feed 2024-08-18 14:36:57 -07:00
vvzen b69654d06c feat: Show RSS icon if config enables it
This adds support for showing a tiny RSS svg badge in the top menu in
case the user added a menu_item that looks like this:
`{name = "", url = "$BASE_URL/$FEED_FILENAME"}`

This also requires that the user has a config.toml that contains the
following entries:

generate_feed = true
feed_filename = "rss.xml"
author = "your name here"
2024-08-18 14:36:57 -07:00
Bright Open Jo ef8ff785a4 #14 fix menu 2022-06-24 01:00:23 +02:00
Ivan Petkov b04b1f5951
Add 404 page which fits the rest of the theme
* Noting that (as of 0.14) zola does not pass much of a context when
  rendering the 404 page, so things like current URL/path aren't
  available
* To work around this the `menu` macro has been split into `menu_for`
  which accepts a parameter for which item is active.
* The previous macro continues to work as is, forwarding the results of
  figuring out which item is active to the new `menu_for` macro
* The added 404 page will then use the `menu_for` macro and pass in a
  blank item
2021-12-07 17:25:02 -08:00
Paweł Romanowski a1cbba7796 Improve current menu item detection 2019-02-05 20:32:00 +00:00
Paweł Romanowski 4623287652 Fix relative URL handling for posts 2019-02-05 19:21:59 +00:00
Paweł Romanowski 7653cfed54 Fix relative URL handling 2019-02-05 19:13:23 +00:00
Paweł Romanowski deee53f745 First public release 2019-02-05 18:27:02 +00:00