Implement the checking of the Release parameter!
This commit is contained in:
@@ -17,12 +17,16 @@
|
|||||||
|
|
||||||
<ul class="posts-list">
|
<ul class="posts-list">
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
|
|
||||||
<!-- TBD: If marked Hidden or Release date is in the future, skip. -->
|
<!-- TBD: If marked Hidden or Release date is in the future, skip. -->
|
||||||
{{ if .Params.hidden }}
|
{{ if .Params.hidden }}
|
||||||
{{ continue }}
|
{{ continue }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if and (.Params.release) (ge (time.AsTime .Params.release) (time now)) }}
|
||||||
|
{{ continue }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<li class="post-item">
|
<li class="post-item">
|
||||||
<a href="{{.Permalink}}" class="post-item-inner">
|
<a href="{{.Permalink}}" class="post-item-inner">
|
||||||
<span class="post-title">
|
<span class="post-title">
|
||||||
|
|||||||
Reference in New Issue
Block a user