feat: reworked the template structure
This commit is contained in:
parent
c607d57221
commit
c9808f90f8
24 changed files with 216 additions and 80 deletions
22
www/templates/fragments/blog/card.html
Normal file
22
www/templates/fragments/blog/card.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
<a href="{{post.url}}">
|
||||
<div class="article_blop">
|
||||
<div class="article_blop_bg" style="background-image:url({{post.preview_image}});"></div>
|
||||
|
||||
<div class="article_blop_content">
|
||||
<h1 class="article_blop_title">
|
||||
{{post.title}}
|
||||
</h1>
|
||||
|
||||
<ul class="article_blop_tags">
|
||||
{% for tag in post.tags %}
|
||||
<li> {{ tag }} </li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<span class="article_blop_excerpt">
|
||||
{{ post.brief }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
0
www/templates/fragments/blog/listing.html
Normal file
0
www/templates/fragments/blog/listing.html
Normal file
Loading…
Add table
Add a link
Reference in a new issue