Add parameter to hide posts

This commit is contained in:
ekzyis 2024-12-16 10:54:08 +01:00
parent 0d3dc76970
commit 7dd9c5feb5
4 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,7 @@
--- ---
title: (I think) I finally understand DarthCoin title: (I think) I finally understand DarthCoin
date: 2023-12-12 date: 2023-12-12
draft: true hidden: true
sn_id: 349363 sn_id: 349363
--- ---

View File

@ -2,7 +2,7 @@
title: Austin's Orange Glow title: Austin's Orange Glow
date: 2024-06-23 date: 2024-06-23
banner: austin_orange_glow.jpg banner: austin_orange_glow.jpg
draft: true hidden: true
sn_id: 674266 sn_id: 674266
--- ---

View File

@ -6,7 +6,7 @@
{{ $pagesToShow := .Site.RegularPages }} {{ $pagesToShow := .Site.RegularPages }}
{{ $posts := $pagesToShow.ByDate.Reverse }} {{ $posts := $pagesToShow.ByDate.Reverse }}
{{ range $posts }} {{ range $posts }}
<article class="post-item"> <article class="post-item {{- if .Params.hidden }} !hidden {{- end -}}">
<h4 class="post-item-title"> <h4 class="post-item-title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h4> </h4>

View File

@ -685,6 +685,14 @@ li>p {
display: flex; display: flex;
} }
.\!hidden {
display: none !important;
}
.hidden {
display: none;
}
.transform { .transform {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }