diff --git a/assets/style.sass b/assets/style.sass index 67a905e..13281c8 100644 --- a/assets/style.sass +++ b/assets/style.sass @@ -95,6 +95,29 @@ nav.pagination background: inherit color: gray cursor: default + ul.pages + display: flex + flex-direction: row + gap: .2rem + margin: 0 .6rem + padding: 0 + a + display: inline-block + line-height: 2rem + font-size: 1.2rem + padding: 0 .5rem + &.active + background: #e6dfcd + color: $link + a.disabled + color: gray + cursor: default + &:hover + background: inherit + color: gray + li.active + background: #e6dfcd + color: $link // .category_container:first-of-type // margin-left: 5px diff --git a/config.toml b/config.toml index 09b9ffa..52582f7 100644 --- a/config.toml +++ b/config.toml @@ -2,7 +2,7 @@ baseURL = 'tofudreams.com/' languageCode = 'en-us' title = 'Tofu Dreams' description = "Vegan recipes to dream about" -copyright = "2023 Tofu Dreams" +copyright = "2024 Tofu Dreams" theme = 'bean' relativeURLs = true @@ -20,9 +20,23 @@ capitalizeListTitles = false [menu] [[menu.main]] name = "Home" - pre = "home" url = "/" weight = 1 + [[menu.main]] + name = "Savory" + pre = "savory" + pageref = "/categories/savory/" + weight = 2 + [[menu.main]] + name = "Sweet" + pre = "sweet" + pageref = "/categories/sweet/" + weight = 3 + [[menu.main]] + name = "Oatmeal" + pre = "oatmeal" + pageref = "/categories/oatmeal/" + weight = 4 [params] logo = "logo.png" diff --git a/themes/bean/layouts/_default/taxonomy.html b/themes/bean/layouts/_default/taxonomy.html index f29ef6a..18566f9 100644 --- a/themes/bean/layouts/_default/taxonomy.html +++ b/themes/bean/layouts/_default/taxonomy.html @@ -73,15 +73,46 @@

{{ $title }}

diff --git a/themes/bean/layouts/index.html b/themes/bean/layouts/index.html index e90cd93..309cbe6 100644 --- a/themes/bean/layouts/index.html +++ b/themes/bean/layouts/index.html @@ -45,7 +45,9 @@

{{ .Title }}

-

More {{ .Title }} >

+ {{ $total := len .Pages }} + {{ $total := sub $total 6 }} +

{{ $total }} more {{ .Title }} >

diff --git a/themes/bean/layouts/partials/header.html b/themes/bean/layouts/partials/header.html index 5b4b430..5c30ebd 100644 --- a/themes/bean/layouts/partials/header.html +++ b/themes/bean/layouts/partials/header.html @@ -34,9 +34,6 @@

{{ $title }} | {{ .Site.Title }}

{{ $text }} {{ end }} - {{range ($.Site.GetPage "taxonomyTerm" "categories").Pages }} - {{ .Title }} - {{ end }} About