diff options
Diffstat (limited to 'www/layouts/partials/preview/article.html')
-rw-r--r-- | www/layouts/partials/preview/article.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/www/layouts/partials/preview/article.html b/www/layouts/partials/preview/article.html new file mode 100644 index 0000000..6245434 --- /dev/null +++ b/www/layouts/partials/preview/article.html @@ -0,0 +1,10 @@ +<section class="article-preview"> + <span class="date">{{ .date | time.Format ":date_medium" }}</span> + {{ (printf `<%[1]s class="title"><a href="%s">%s</a></%[1]s>` .h .link .title) | safeHTML }} + <p class="content"> + {{ range split .content "\n" | first 5 }} + {{ . | htmlUnescape }}<br/> + {{ end }} + </p> + <p>... <a class="mono-link" href="{{ .link }}">Read more</a></p> +</section> |