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