Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to hide posts from index #25

Merged
merged 2 commits into from Mar 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -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

1. Fork it!
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Expand Up @@ -3,7 +3,7 @@
<div id="container">
{{ partial "header.html" . }}
<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">
<div class="article-inner">
<!--<%- partial('post/gallery') %>-->
Expand Down