From 183f569749f8051e609c36a57f417124f02a21f7 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Fri, 19 May 2017 21:58:07 +0200 Subject: Add example for about page --- exampleSite/content/about/_index.md | 8 ++++++++ layouts/_default/list.html | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 exampleSite/content/about/_index.md diff --git a/exampleSite/content/about/_index.md b/exampleSite/content/about/_index.md new file mode 100644 index 0000000..504b1eb --- /dev/null +++ b/exampleSite/content/about/_index.md @@ -0,0 +1,8 @@ ++++ +title = "About" +date = "2017-05-19T21:49:20+02:00" +menu = "main" +disable_comments = true ++++ + +Add some information about yourself. \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8821a5f..2fd8d7c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,9 @@ {{ define "main" }} -
+ {{ $context := . }} + + {{ with .Content }} + {{ partial "single_article.html" $context }} + {{ else }}
{{ .Title }} @@ -12,5 +16,5 @@
{{ partial "pagination" . }} -
+ {{ end }} {{ end }} \ No newline at end of file -- cgit v1.2.3