From 7d7d24a4d2db59326c0551b0ed6a2088490375ea Mon Sep 17 00:00:00 2001 From: karthik Date: Thu, 5 Dec 2019 15:58:56 +0530 Subject: comments --- layouts/_default/list.html | 4 ++-- layouts/_default/single.html | 45 ++++++++++++++++++++++++-------------------- 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index ebac326..7967826 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,9 +6,9 @@ {{ $value.Name }} ({{.Count }}) {{end}} {{else}} -
+
{{range .Pages}} -
+
{{ .Title }}
{{if eq .Section "post"}} {{.PublishDate.Format "January 2, 2006"}} | {{.ReadingTime}} minute read diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f36d519..d2c6a7c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,25 +1,30 @@ {{define "main"}} {{ if eq .Section "post"}} -
-

{{.Title}}

- Posted on {{ .PublishDate.Format "January 2, 2006" }} | {{.ReadingTime}} minute read - {{ .Content }} - Please mail your comments to {{.Site.Params.email}}
- tags: - {{- range .Params.tags -}} - {{ . }} - {{ end }} - -
- {{if .Site.Params.disqus }} - {{ template "_internal/disqus.html" . }} - {{end}} -
-
+ +
+

{{.Title}}

+ Posted on {{ .PublishDate.Format "January 2, 2006" }} | {{.ReadingTime}} minute read + {{ .Content }} + tags: + {{- range .Params.tags -}} + {{ . }} + {{ end }} + +
+ {{ if .Site.Params.disqus }} + {{ template "_internal/disqus.html" . }} + {{ else }} + Please mail your comments to {{.Site.Params.email}}
+ {{end}} +
+
+ {{else}} -
-

{{.Title}}

- {{ .Content }} -
+ +
+

{{.Title}}

+ {{ .Content }} +
+ {{end}} {{end}} -- cgit v1.2.3