diff --git a/assets/style.sass b/assets/style.sass index ace314a..c2becb9 100644 --- a/assets/style.sass +++ b/assets/style.sass @@ -107,6 +107,7 @@ nav.pagination grid-gap: .3rem grid-template-columns: 1fr 1fr 1fr span.article + position: relative text-align: center padding: 10px border: 1px solid #bcbcbc @@ -134,6 +135,16 @@ nav.pagination margin-bottom: 10px &:hover background: #e6dfcd + div.new + position: absolute + top: 1rem + right: 1rem + background: #819e75 + color: white + padding: .2rem .5rem + border-radius: 5px + font-size: .8rem + box-shadow: 0 0 5px #00000061 div.recent-posts border-top: 1px solid silver diff --git a/content/posts/savory/farfalle-soup/index.md b/content/posts/savory/farfalle-soup/index.md index 0fee0a8..9d2a185 100644 --- a/content/posts/savory/farfalle-soup/index.md +++ b/content/posts/savory/farfalle-soup/index.md @@ -2,7 +2,7 @@ title: "Farfalle soup with cashew ricotta" date: 2023-12-28T11:00:00+01:00 draft: false -tags: ["lunch", "italian", "pasta", "soup", "tomates"] +tags: ["lunch", "italian", "pasta", "soup"] categories: ["Savory"] --- diff --git a/themes/bean/layouts/_default/taxonomy.html b/themes/bean/layouts/_default/taxonomy.html index e5520b9..80c239d 100644 --- a/themes/bean/layouts/_default/taxonomy.html +++ b/themes/bean/layouts/_default/taxonomy.html @@ -38,6 +38,10 @@

{{ .Title }}

{{ range .Paginator.Pages.ByDate.Reverse }} + {{ $diff := now.Sub .Lastmod }} + {{ if lt $diff.Hours 72 }} +
NEW
+ {{ end }} {{ with .Resources }} {{ with .GetMatch "{cover.*,*.jpg,*.webp,*.png,*.jpeg}" }} @@ -48,7 +52,7 @@

{{ .Title }}

{{ .Title }}

{{ .Summary | truncate 200 }} -
+
{{ if .Truncated }} diff --git a/themes/bean/layouts/index.html b/themes/bean/layouts/index.html index b2b3c47..c98fce3 100644 --- a/themes/bean/layouts/index.html +++ b/themes/bean/layouts/index.html @@ -13,6 +13,10 @@

{{ .Title }}

{{ range (.Paginate (.Pages).ByDate.Reverse).Pages | first 6 }} + {{ $diff := now.Sub .Lastmod }} + {{ if lt $diff.Hours 72 }} +
NEW
+ {{ end }} {{ with .Resources }} {{ with .GetMatch "{cover.*,*.jpg,*.webp,*.png,*.jpeg}" }}