Parcourir la source

Adds `.Content` to list.html partial (#290)

Codruț Constantin Gușoi il y a 5 ans
Parent
commit
911a39528b

+ 1 - 0
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)

+ 5 - 0
exampleSite/content/snippets/_index.md

@@ -0,0 +1,5 @@
+---
+title: "Snippets"
+---
+
+This content is in `content/snippets/_index.md`

+ 9 - 0
exampleSite/content/snippets/first/index.md

@@ -0,0 +1,9 @@
+---
+title: "First snippet"
+---
+
+This content is in `snippets/first/index.md`
+
+```sh
+pwd
+```

+ 9 - 0
exampleSite/content/snippets/second/index.md

@@ -0,0 +1,9 @@
+---
+title: "Second snippet"
+---
+
+This content is in `snippets/second/index.md`
+
+```sh
+ls -la
+```

+ 1 - 0
layouts/partials/list.html

@@ -7,6 +7,7 @@
 
     {{- .Title -}}
   </h1>
+  {{ .Content }}
   <ul>
     {{ range .Paginator.Pages }}
     <li>