Bringing back the showcase
authorspf13 <steve.francia@gmail.com>
Wed, 20 Aug 2014 01:47:38 +0000 (21:47 -0400)
committerspf13 <steve.francia@gmail.com>
Wed, 20 Aug 2014 01:47:38 +0000 (21:47 -0400)
docs/config.toml
docs/layouts/section/showcase.html [new file with mode: 0644]

index 4dd348156e3738a3c9ee6004ef6cc98466a25da3..0bc9e4b11c1d9e5a89c008d3aeba6ef31f05ed8d 100644 (file)
@@ -10,6 +10,11 @@ MetaDataFormat = "yaml"
     pre = "<i class='fa fa-download'></i>"
     url = "https://github.com/spf13/hugo/releases"
     weight = -200
+[[menu.main]]
+    name = "Showcase"
+    pre = "<i class='fa fa-cubes'></i>"
+    url = "/showcase/"
+    weight = -200
 [[menu.main]]
     name = "about hugo"
     pre = "<i class='fa fa-heart'></i>"
diff --git a/docs/layouts/section/showcase.html b/docs/layouts/section/showcase.html
new file mode 100644 (file)
index 0000000..a5d8c78
--- /dev/null
@@ -0,0 +1,12 @@
+{{ partial "header.html" . }}
+
+   <h1 id="title">Hugo Built Sites (with source)</h1>
+        <div class="row">
+        {{ range .Data.Pages.ByDate }}
+            {{ .Render "thumbnail"}}
+        {{ end }}
+        </div>
+  <br><br>
+  If you want to be added to this page please send a <a href="https://github.com/spf13/hugo/pulls">pull request</a>.
+
+{{ partial "footer.html" . }}