Commit graph

6 commits

Author SHA1 Message Date
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