Browse Source

Implement Content Summaries / Split on index page

digitalcraftsman 7 years ago
parent
commit
5814b3e80c
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      layouts/index.html

+ 6
- 1
layouts/index.html View File

6
     <a href="{{ .Permalink }}">{{ .Title }}</a>
6
     <a href="{{ .Permalink }}">{{ .Title }}</a>
7
   </h1>
7
   </h1>
8
   <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
8
   <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
9
-  {{ .Content }}
9
+  {{ .Summary }}
10
+  {{ if .Truncated }}
11
+  <div class="read-more-link">
12
+    <a href="{{ .RelPermalink }}">Read More…</a>
13
+  </div>
14
+  {{ end }}
10
 </div>
15
 </div>
11
 {{- end }}
16
 {{- end }}
12
 </div>
17
 </div>