diff --git a/config.toml b/config.toml
index e35ba87..1e0668c 100644
--- a/config.toml
+++ b/config.toml
@@ -6,6 +6,7 @@ theme = 'lugo'
[params]
favicon = "/favicon.svg"
stylesheet = "/style.css"
+ indexarticles = 50
[markup]
[markup.goldmark]
diff --git a/content/_index.md b/content/_index.md
index 107959c..5783cef 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -6,7 +6,7 @@ description: 'The fast-loading recipe site with cooking only and no ads.'
## What do you want to cook?
-
+
@@ -22,6 +22,7 @@ document.addEventListener("DOMContentLoaded", () => {
const recipes = document.querySelectorAll("#artlist li");
const search = document.getElementById("search");
+ const oldheading = document.getElementById("newest-recipes");
const clearSearch = document.getElementById("clear-search");
const artlist = document.getElementById("artlist");
@@ -32,6 +33,7 @@ document.addEventListener("DOMContentLoaded", () => {
const hasFilter = searchText.length > 0;
artlist.classList.toggle("list-searched", hasFilter);
+ oldheading.classList.toggle("hidden", hasFilter);
// for each recipe hide all but matched
recipes.forEach(recipe => {
@@ -51,11 +53,14 @@ document.addEventListener("DOMContentLoaded", () => {
})
artlist.classList.remove("list-searched");
+ oldheading.classList.remove("hidden");
})
})
// @license-end
+## Newest Recipes
+
{{< artlist >}}
## Or Browse by Category...
diff --git a/layouts/shortcodes/artlist.html b/layouts/shortcodes/artlist.html
index d1e3206..5d27c08 100644
--- a/layouts/shortcodes/artlist.html
+++ b/layouts/shortcodes/artlist.html
@@ -1,5 +1,7 @@
-{{range.Site.RegularPages}}
-- {{.Title}}
-{{end}}
+{{ $number := 0 -}}
+{{- range.Site.RegularPages -}}
+{{- $number = add $number 1 -}}
+- {{.Title}}
+{{ end -}}
diff --git a/static/style.css b/static/style.css
index 6d7fa78..20ae794 100644
--- a/static/style.css
+++ b/static/style.css
@@ -20,6 +20,7 @@ body {
a {
color: gold ;
+ text-decoration: none ;
}
#tagcloud {
@@ -111,6 +112,22 @@ img[alt="XMR Logo"] {
}
+.older-article {
+ display: none ;
+}
+
+.hidden {
+ display: none !important ;
+}
+
+#artlist {
+ font-size: large ;
+}
+
+#artlist li {
+ padding: .25em ;
+}
+
@media (min-width: 55em) {
#artlist { column-count: 2 ;}
}
@@ -155,6 +172,7 @@ button#clear-search:hover {
.matched-recipe {
font-size: x-large ;
+ display: block !important ;
}
.list-searched {