aboutsummaryrefslogtreecommitdiff
path: root/layouts/posts
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-04-22 19:17:39 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-04-22 19:17:39 +0200
commit0b30289d9f3520144bb37caa009d8953cde0e3d6 (patch)
tree0f9bb8c645db952484ae1d0d98f961142184c894 /layouts/posts
parent0084e069de16a7b6c15f50edd7479e2e49fe0874 (diff)
#43, Update tree menu rendering to support multiple sections
Diffstat (limited to 'layouts/posts')
-rw-r--r--layouts/posts/list.html6
-rw-r--r--layouts/posts/single.html4
2 files changed, 5 insertions, 5 deletions
diff --git a/layouts/posts/list.html b/layouts/posts/list.html
index 18871f2..13e1ea1 100644
--- a/layouts/posts/list.html
+++ b/layouts/posts/list.html
@@ -1,15 +1,15 @@
{{ define "main" }}
- {{- $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat -}}
+ {{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }}
{{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }}
{{ range sort .Paginator.Pages }}
- <article>
+ <article class="markdown">
<h2>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h2>
<h5>
<strong>{{ .Date.Format $dateFormat }}</strong>
</h5>
- <p class="markdown">
+ <p>
{{- .Summary -}}
{{ if .Truncated }}
<a href="{{ .RelPermalink }}">...</a>
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index a7f94ed..9222a59 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -1,6 +1,6 @@
{{ define "main" }}
-{{- $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat -}}
-<header>
+{{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }}
+<header class="markdown">
<h1>{{ .Title }}</h1>
<h5>
<strong>{{ .Date.Format $dateFormat }}</strong>