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:
parent
67434f0a8f
commit
390ad61694
3 changed files with 5 additions and 10 deletions
|
|
@ -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 don’t :-)
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue