Added 'hide' front-matter option to hide page or section from displaying in the list even if it's not a draft, and set hide: true for the about section
This commit is contained in:
parent
95130c711a
commit
431fa243b2
|
@ -2,4 +2,5 @@
|
|||
title: "About"
|
||||
description: "Contact info, portfolio, etc"
|
||||
draft: false
|
||||
hide: true
|
||||
---
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{{ range .Pages }}
|
||||
{{ if not (isset .Params "hide") }}
|
||||
<article class="post">
|
||||
<header class="post__header">
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
||||
|
@ -9,3 +10,4 @@
|
|||
</section>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{{ range .Sections }}
|
||||
{{ if not (isset .Params "hide") }}
|
||||
<article class="post">
|
||||
<header class="post__header">
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
||||
|
@ -9,3 +10,4 @@
|
|||
</section>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue