Website Summary Files Commits Branches @commit @diff @stats
path: root / layouts / partials / excerpt.html
diff options
context:
space:
mode:
1 files changed, 25 insertions, 0 deletions
-rw-r--r--layouts/partials/excerpt.html25
diff --git a/layouts/partials/excerpt.html b/layouts/partials/excerpt.html
new file mode 100644
index 0000000..1f0fcdd
--- /dev/null
+++ b/layouts/partials/excerpt.html
@@ -0,0 +1,25 @@
+
+<li class = 'post_item'>
+ <div class = 'excerpt'>
+ <div class = 'excerpt_header'>
+ <h3 class = 'post_link'>
+ <a href='{{ .Permalink }}'>{{ .Title }}</a>
+ </h3>
+ {{ partial "post-meta.html" . }}
+ </div>
+ {{- with .Params.thumbnail }}
+ <div class = 'excerpt_footer partition'>
+ <div class = 'excerpt_thumbnail'>
+ <img src = '{{ if (hasPrefix . "http") }}{{ . }}{{ else }}{{ absURL . }}{{ end }}'>
+ </div>
+ {{ else }}
+ <div class = 'excerpt_footer'>
+ {{- end }}
+ <div>
+ <p class = 'pale'>{{ .Summary | truncate 320 }}</p>
+ <a href='{{ .Permalink }}' class='excerpt_more button'>Read More</a>
+ </div>
+ </div>
+ </div>
+ </li>
+ \ No newline at end of file