themes/hyde: Exclude pages without date from main loop
This allows having standalone pages at the top level without them showing up in the blog post list Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
afb40dddfd
commit
1cff1c9afa
|
@ -1,6 +1,7 @@
|
|||
{{ define "main" -}}
|
||||
<div class="posts">
|
||||
{{ range .Site.RegularPages -}}
|
||||
{{ if .Date }}
|
||||
<article class="post">
|
||||
<h1 class="post-title">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
|
@ -16,3 +17,4 @@
|
|||
{{- end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in New Issue