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

github.com/dewittn/hugo-html5up-alpha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html23
1 files changed, 14 insertions, 9 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 561bfb0..0b95cb4 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,12 +1,17 @@
{{ define "main" }}
-<header>
- <h2>{{ .Title }}</h2>
- <p>{{ .Description }}</p>
-</header>
-<div class="box">
- {{ with .Params.image }}
- <span class="image featured"><img src="{{ . | relURL }}" alt="" /></span>
+ <header>
+ <h2>{{ .Title }}</h2>
+ <p>{{ .Date.Format "Jan 2, 2006" }}</p>
+ </header>
+ <div class="box">
+ {{ with .Params.image }}
+ <span class="image featured"><img src="{{ . | relURL }}" alt="" /></span>
+ {{ end }}
+ {{ .Content }}
+ </div>
+ {{ if .Site.DisqusShortname }}
+ <div class="box">
+ {{ template "_internal/disqus.html" . }}
+ </div>
{{ end }}
- {{ .Content }}
-</div>
{{ end }} \ No newline at end of file