mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Add teaser layout for posts
This commit is contained in:
16
layouts/post/teaser.html
Normal file
16
layouts/post/teaser.html
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<article class="post">
|
||||||
|
<h1 class="post-title">
|
||||||
|
<a href="{{ .RelPermalink }}">
|
||||||
|
{{ .Title }}
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<span class="post-date">
|
||||||
|
<time datetime="{{ .Date.Format "2006-01-02" }}" class="post-date">
|
||||||
|
{{ .Date.Format .Site.Params.date_format }}
|
||||||
|
</time>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
{{ .Summary }}
|
||||||
|
|
||||||
|
</article>
|
||||||
Reference in New Issue
Block a user