about summary refs log tree commit diff stats
path: root/layouts
diff options
context:
space:
mode:
authordigitalcraftsman2017-10-01 11:23:48 +0200
committerGitHub2017-10-01 11:23:48 +0200
commit5814b3e80c17336f1b02c3666914fd1445d31378 (patch)
treeeab17a362d5469dd11717ceed357e22faadca7a2 /layouts
parentdae01e12f7b71303d936506547f4d13cefa32bea (diff)
parentb469743f16f9084951a2ba7a875b31b30e1213c9 (diff)
downloadhyde-5814b3e80c17336f1b02c3666914fd1445d31378.tar.lz
hyde-5814b3e80c17336f1b02c3666914fd1445d31378.tar.zst
hyde-5814b3e80c17336f1b02c3666914fd1445d31378.zip
Implement Content Summaries / Split on index page
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 3fed5be..209009e 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -6,7 +6,12 @@
     <a href="{{ .Permalink }}">{{ .Title }}</a>
   </h1>
   <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
-  {{ .Content }}
+  {{ .Summary }}
+  {{ if .Truncated }}
+  <div class="read-more-link">
+    <a href="{{ .RelPermalink }}">Read Moreā€¦</a>
+  </div>
+  {{ end }}
 </div>
 {{- end }}
 </div>