diff options
author | digitalcraftsman <digitalcraftsman@protonmail.com> | 2017-05-19 22:58:07 +0300 |
---|---|---|
committer | digitalcraftsman <digitalcraftsman@protonmail.com> | 2017-05-19 22:58:07 +0300 |
commit | 183f569749f8051e609c36a57f417124f02a21f7 (patch) | |
tree | 62f19a71c870c6a84dd203d71fd8a9337d83d7d6 | |
parent | 4ace1099946abde3ae26cfd22ba98815a323db02 (diff) |
Add example for about page
-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 |