Website Summary Files Commits Branches @commit @diff @stats
path: root / layouts / partials / excerpt.html
diff options
context:
space:
mode:
Commit8dad1d1bd0bc7206f16323d220fdce73c400f470 (patch)
Author
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-18 15:18:25 +0300
Committer
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-18 15:18:25 +0300
Files1dd6b123977afd3e391f39e2bef68f7daa0cbecb /layouts/partials/excerpt.html
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.tar
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.tar.gz
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.zip
Squashed 'website/themes/hugo-clarity/' content from commit 4969d5a
git-subtree-dir: website/themes/hugo-clarity git-subtree-split: 4969d5a1fb2c358c00e2d7f6fc1e39024d7d2355
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