diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 3 | ||||
-rw-r--r-- | layouts/page/single.html | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index 2289aac..8422313 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,5 @@ -{{ define "main" }} {{ .Content }} {{ with .Site.RegularPages }} +{{ define "main" }} {{ .Content }} {{ with (where site.RegularPages +"Params.hidden" "ne" true) }} <h2>Posts</h2> <ul> {{ range . }} diff --git a/layouts/page/single.html b/layouts/page/single.html new file mode 100644 index 0000000..d975ecb --- /dev/null +++ b/layouts/page/single.html @@ -0,0 +1 @@ +{{ define "main" }} {{ .Content }} {{ end }} |