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