diff options
-rw-r--r-- | exampleSite/content/about/_index.md | 8 | ||||
-rw-r--r-- | layouts/_default/list.html | 8 |
2 files changed, 14 insertions, 2 deletions
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" }} -<section id="main"> + {{ $context := . }} + + {{ with .Content }} + {{ partial "single_article.html" $context }} + {{ else }} <section class="archives-wrap"> <div class="archive-category-wrap"> <span class="archive-category">{{ .Title }}</span> @@ -12,5 +16,5 @@ </div> </section> {{ partial "pagination" . }} -</section> + {{ end }} {{ end }}
\ No newline at end of file |