Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/layouts/post/single.html')
-rw-r--r--examples/blog/layouts/post/single.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/blog/layouts/post/single.html b/examples/blog/layouts/post/single.html
new file mode 100644
index 000000000..05ecc53c7
--- /dev/null
+++ b/examples/blog/layouts/post/single.html
@@ -0,0 +1,35 @@
+{{ template "chrome/header.html" . }}
+<body>
+{{ template "chrome/navbar.html" . }}
+<div class="container">
+ <div class="row">
+ <div class="col-md-9">
+ <div class="well well-sm">
+ <h3>{{ .Title }}<br> <small>{{ .Description }}</small></h3>
+ <hr>
+ {{ .Content }}
+ </div>
+ </div>
+
+ <!-- Sidebar -->
+ <div class="col-md-3">
+ <div class="well well-sm"> <!-- Post-specific stats -->
+ <h4>{{ .Date.Format "January 2, 2006" }}<br>
+ <small>{{ .WordCount }} words</small></h4>
+ <hr>
+ <strong>Categories</strong>
+ <ul class="list-unstyled">
+ {{ range .Params.categories }}
+ <li><a href="/categories/{{ . | urlize }}">{{ . }}</a></li>
+ {{ end }}
+ </ul>
+ <hr>
+ <strong>Tags</strong><br>
+ {{ range .Params.tags }}<a class="label label-default" href="/tags/{{ . | urlize }}">{{ . }}</a> {{ end }}
+ </div>
+ {{ template "chrome/menu.html" . }}
+ </div>
+ </div>
+{{ template "chrome/footer.copyright.html" . }}
+</div>
+{{ template "chrome/footer.html" . }} \ No newline at end of file