Merge pull request #25 from Nelarius/hide-posts-from-main-list

Add ability to hide posts from index
This commit is contained in:
Carson Ip
2019-03-16 18:28:55 +08:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -80,6 +80,14 @@ featuredImage = "img/foobar.jpg"
+++ +++
``` ```
### Hide the post from index.html
This can be used when creating an "About me"-page.
```
+++
hide = true
+++
```
## Contributing ## Contributing
1. Fork it! 1. Fork it!

View File

@@ -3,7 +3,7 @@
<div id="container"> <div id="container">
{{ partial "header.html" . }} {{ partial "header.html" . }}
<section id="main" class="outer"> <section id="main" class="outer">
{{ range .Paginator.Pages }} {{ range where .Paginator.Pages "Params.hide" "ne" "true" }}
<article class="article article-type-post" itemscope itemprop="blogPost"> <article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner"> <div class="article-inner">
<!--<%- partial('post/gallery') %>--> <!--<%- partial('post/gallery') %>-->