diff --git a/assets/css/screen.css b/assets/css/screen.css index 15f3019..f3a3b4b 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -466,7 +466,7 @@ li { background: #f2efe8; position: relative; } -.post-holder.odd { +.post-holder.dark { background: #b80135; color: white; } @@ -528,7 +528,7 @@ a.fn-item.active { border-top: 50px solid #f2efe8; border-radius: 25px; } -.post-after.even { +.post-after.light { left: 6%; } diff --git a/assets/js/index.js b/assets/js/index.js index 5226bb2..b78d9aa 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -31,17 +31,9 @@ var $sitehead = $("#site-head"); } } $(document).ready(function () { - $postholder.each(function (e) { - if (e % 2 != 0) $(this).addClass("odd"); - }); - $postafter.each(function (e) { var bg = $(this).parent().css("background-color"); $(this).css("border-top-color", bg); - - if (e % 2 == 0) { - $(this).addClass("even"); - } }); $("a.btn.site-menu").click(function (e) { diff --git a/exampleSite/config.toml b/exampleSite/config.toml index e105224..089c65d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -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 + invertSectionColors = false [params.meta] keywords = "some, keywords, for, seo, you, know, google, duckduckgo, and, such" diff --git a/layouts/index.html b/layouts/index.html index 9fffcc4..8efcb1a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -32,7 +32,7 @@ {{ range $index_val, $elem_val := $filtered }} {{ $fnav_title := .Title }} {{ with .Params.navigation_menu_title }}{{ $fnav_title = . }}{{ end }} -
+

{{ .Title | safeHTML }}

@@ -41,7 +41,7 @@ {{ .Content }}
-
+
{{ end }} diff --git a/package-lock.json b/package-lock.json index d465935..fbf1e8b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "prettier": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.5.tgz", - "integrity": "sha512-3gzuxrHbKUePRBB4ZeU08VNkUcqEHaUaouNt0m7LGP4Hti/NuB07C7PPTM/LkWqXoJYJn2McEo5+kxPNrtQkLQ==", + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.6.tgz", + "integrity": "sha512-mtuzdiBbHwPEgl7NxWlqOkithPyp4VN93V7VeHVWBF+ad3I5avc0RVDT4oImXQy9H/AqxA2NSQH8pSxHW6FYbQ==", "dev": true }, "prettier-plugin-go-template": { diff --git a/package.json b/package.json index 529c2db..45d6c4b 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "homepage": "https://github.com/zjedi/hugo-scroll#readme", "devDependencies": { - "prettier": "^2.8.5", + "prettier": "^2.8.6", "prettier-plugin-go-template": "0.0.13" } }