feat: support hidden post

This commit is contained in:
SerKo 2023-05-12 15:44:41 +08:00
parent 3f1d91875c
commit b7b0699b3e
1 changed files with 10 additions and 8 deletions

View File

@ -8,6 +8,7 @@
</article> </article>
<ul> <ul>
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }} {{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- if not .Params.hidden }}
<li> <li>
<div class="mb:16 py:24 f:fade-30 f:fade-10:hover transition:150ms;ease-in"> <div class="mb:16 py:24 f:fade-30 f:fade-10:hover transition:150ms;ease-in">
<a class="f:24 font:semibold" href="{{ .Permalink }}"> <a class="f:24 font:semibold" href="{{ .Permalink }}">
@ -17,6 +18,7 @@
</div> </div>
</li> </li>
{{- end }} {{- end }}
{{- end }}
</ul> </ul>
</div> </div>
{{ end }} {{ end }}