Enable inverting homepage section styling

Add invert Param to the config file. Add the 'odd' class to the
post-holders and the 'even' class to the post-afters using Hugo if
statements instead of using JS. Marking invert = true in the config file
flips which sections are marked odd and even.
This commit is contained in:
Ian Cook 2023-03-20 19:45:44 -05:00
parent 67434f0a8f
commit 390ad61694
No known key found for this signature in database
GPG key ID: AC42F59CF2D8F367
3 changed files with 5 additions and 10 deletions

View file

@ -44,6 +44,9 @@ title = "Jane Doe - Nutrition Coach & Chef Consultant"
# This theme will, by default, inject a design-by-line at the bottom of the page.
# You can turn it off, but we would really appreciate if you dont :-)
hidedesignbyline = false
# The sections of the home page alternate styling. Mark invert as true to swap the styling of the sections
invert = false
[params.meta]
keywords = "some, keywords, for, seo, you, know, google, duckduckgo, and, such"