aboutsummaryrefslogtreecommitdiff
path: root/layouts/posts
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2018-11-25 13:30:25 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2018-11-25 13:30:25 +0100
commit76c251066fd34a26734bf1acdb1e041881e1c0af (patch)
treec332d7ae2bf0e45087fdcc33784dc99de9bcc98b /layouts/posts
parent461aafe99569a93838f823729aaf8d51fa693aaf (diff)
Refactor templates and partials
Diffstat (limited to 'layouts/posts')
-rw-r--r--layouts/posts/baseof.html2
-rw-r--r--layouts/posts/list.html10
-rw-r--r--layouts/posts/single.html6
3 files changed, 11 insertions, 7 deletions
diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html
index 47371c0..fa97ee3 100644
--- a/layouts/posts/baseof.html
+++ b/layouts/posts/baseof.html
@@ -16,4 +16,4 @@
{{ template "_internal/google_analytics_async.html" . }}
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/layouts/posts/list.html b/layouts/posts/list.html
index da13220..97873dd 100644
--- a/layouts/posts/list.html
+++ b/layouts/posts/list.html
@@ -5,14 +5,16 @@
<h2>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
- <h5>{{ .Date.Format "January 2, 2006" }}</h5>
+ <h5>
+ <strong>{{ .Date.Format "January 2, 2006" }}</strong>
+ </h5>
<p>
- {{ .Summary }}
+ {{- .Summary -}}
{{ if .Truncated }}
- <a href="{{ .Permalink }}">...</a>
+ <a href="{{ .Permalink }}">...</a>
{{ end }}
</p>
</article>
{{ end }}
{{ template "_internal/pagination.html" . }}
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 9081faa..6b0712e 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -1,9 +1,11 @@
{{ define "main" }}
<header>
<h1>{{ .Title }}</h1>
- <h5>{{ .Date.Format "January 2, 2006" }}</h5>
+ <h5>
+ <strong>{{ .Date.Format "January 2, 2006" }}</strong>
+ </h5>
</header>
<article class="markdown">
{{- .Content -}}
</article>
-{{ end }} \ No newline at end of file
+{{ end }}