Add parameter to hide posts
This commit is contained in:
parent
0d3dc76970
commit
7dd9c5feb5
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: (I think) I finally understand DarthCoin
|
||||
date: 2023-12-12
|
||||
draft: true
|
||||
hidden: true
|
||||
sn_id: 349363
|
||||
---
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
title: Austin's Orange Glow
|
||||
date: 2024-06-23
|
||||
banner: austin_orange_glow.jpg
|
||||
draft: true
|
||||
hidden: true
|
||||
sn_id: 674266
|
||||
---
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{ $pagesToShow := .Site.RegularPages }}
|
||||
{{ $posts := $pagesToShow.ByDate.Reverse }}
|
||||
{{ range $posts }}
|
||||
<article class="post-item">
|
||||
<article class="post-item {{- if .Params.hidden }} !hidden {{- end -}}">
|
||||
<h4 class="post-item-title">
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</h4>
|
||||
|
|
|
@ -685,6 +685,14 @@ li>p {
|
|||
display: flex;
|
||||
}
|
||||
|
||||
.\!hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue