attila icon indicating copy to clipboard operation
attila copied to clipboard

Fix wrong body_class values in archives, authors, categories, pages and tags templates

Open Tseing opened this issue 10 months ago • 0 comments

Templates of archives.html, authors.html, categories.html, pages.html, tags.html do not properly set class attribute of <body>. In these pages,

  • class attribute is always "home-template".
  • current_url variable is wrong, which causes highlight of a menu item is always on Home button.

This PR corrected order of assignments and fixed above bugs.

Before:

Screenshot 2024-04-03 204804

aMauyAy6V5

After:

Screenshot 2024-04-03 204659

WXdebjmOlR

Tseing avatar Apr 03 '24 13:04 Tseing