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,11 +1,13 @@
|
|||
{{ range .Pages }}
|
||||
<article class="post">
|
||||
<header class="post__header">
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
||||
</header>
|
||||
{{ if not (isset .Params "hide") }}
|
||||
<article class="post">
|
||||
<header class="post__header">
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
||||
</header>
|
||||
|
||||
<section class="post__summary">
|
||||
{{ .Description }}
|
||||
</section>
|
||||
</article>
|
||||
<section class="post__summary">
|
||||
{{ .Description }}
|
||||
</section>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
{{ range .Sections }}
|
||||
<article class="post">
|
||||
<header class="post__header">
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
||||
</header>
|
||||
{{ if not (isset .Params "hide") }}
|
||||
<article class="post">
|
||||
<header class="post__header">
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
||||
</header>
|
||||
|
||||
<section class="post__summary">
|
||||
{{ .Description }}
|
||||
</section>
|
||||
</article>
|
||||
<section class="post__summary">
|
||||
{{ .Description }}
|
||||
</section>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue