mirror of
https://github.com/carsonip/hugo-theme-minos
synced 2025-12-29 19:09:50 -08:00
Merge pull request #25 from Nelarius/hide-posts-from-main-list
Add ability to hide posts from index
This commit is contained in:
@@ -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!
|
||||||
|
|||||||
@@ -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') %>-->
|
||||||
|
|||||||
Reference in New Issue
Block a user