From 911a39528b036e8f367cf3741b2842259da4db69 Mon Sep 17 00:00:00 2001
From: Codruț Constantin Gușoi <codrut.gusoi+github.com@gmail.com>
Date: Thu, 02 Apr 2020 13:10:43 +0000
Subject: [PATCH] Adds `.Content` to list.html partial (#290)

---
 exampleSite/content/snippets/_index.md       |    5 +++++
 exampleSite/content/snippets/first/index.md  |    9 +++++++++
 layouts/partials/list.html                   |    1 +
 CONTRIBUTORS.md                              |    1 +
 exampleSite/content/snippets/second/index.md |    9 +++++++++
 5 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 41918ba..7b0b26e 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -62,3 +62,4 @@
 - [Piotr Orzechowski](https://orzechowski.tech)
 - [Glenn Feunteun](https://github.com/gfeun)
 - [Santiago González](https://github.com/netrules)
+- [Codruț Constantin Gușoi](https://www.sdwolfz.pro)
diff --git a/exampleSite/content/snippets/_index.md b/exampleSite/content/snippets/_index.md
new file mode 100644
index 0000000..5166c00
--- /dev/null
+++ b/exampleSite/content/snippets/_index.md
@@ -0,0 +1,5 @@
+---
+title: "Snippets"
+---
+
+This content is in `content/snippets/_index.md`
diff --git a/exampleSite/content/snippets/first/index.md b/exampleSite/content/snippets/first/index.md
new file mode 100644
index 0000000..0d423e5
--- /dev/null
+++ b/exampleSite/content/snippets/first/index.md
@@ -0,0 +1,9 @@
+---
+title: "First snippet"
+---
+
+This content is in `snippets/first/index.md`
+
+```sh
+pwd
+```
diff --git a/exampleSite/content/snippets/second/index.md b/exampleSite/content/snippets/second/index.md
new file mode 100644
index 0000000..e1ca4d1
--- /dev/null
+++ b/exampleSite/content/snippets/second/index.md
@@ -0,0 +1,9 @@
+---
+title: "Second snippet"
+---
+
+This content is in `snippets/second/index.md`
+
+```sh
+ls -la
+```
diff --git a/layouts/partials/list.html b/layouts/partials/list.html
index 0eaed26..d56a9bf 100644
--- a/layouts/partials/list.html
+++ b/layouts/partials/list.html
@@ -7,6 +7,7 @@
 
     {{- .Title -}}
   </h1>
+  {{ .Content }}
   <ul>
     {{ range .Paginator.Pages }}
     <li>

--
Gitblit v1.10.0