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:
authorNelson/Roberto <dewittn@gmail.com>2020-05-11 18:17:38 +0300
committerNelson/Roberto <dewittn@gmail.com>2020-05-11 18:17:38 +0300
commit9ffc755a2ead78d5950b85d598c39dd7d965b221 (patch)
treec4c83bc2e068d724ab607a042b491de470ceac05
parent732cad44b0247a9d0718011acc0cc73d4974c0d1 (diff)
Added Disqus comments to single.
-rw-r--r--layouts/_default/single.html23
-rw-r--r--layouts/index.html10
2 files changed, 18 insertions, 15 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
diff --git a/layouts/index.html b/layouts/index.html
index 82412f1..10ecf4c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -57,12 +57,10 @@
<!-- Posts -->
{{ if .Site.Data.homepage.blog.enable }}
{{ with $blogSettings := .Site.Data.homepage.blog }}
- {{ with .header }}
- <section class="box special">
- <header class="major">
- <h2>{{ . }}</h2>
- </header>
- </section>
+ {{ with .header }}
+ <header class="major">
+ <h2>{{ . }}</h2>
+ </header>
{{ end }}
<div class="row">
{{ range first .postCount (where $.Site.RegularPages "Type" "posts") }}