1
This commit is contained in:
44
Yes.Blog/wwwroot/defaulttheme/Index.liquid
Normal file
44
Yes.Blog/wwwroot/defaulttheme/Index.liquid
Normal file
@@ -0,0 +1,44 @@
|
||||
<div class="max-wrapper">
|
||||
<div id="list-page">
|
||||
{% if Model.Articles.Items.size == 0 %}
|
||||
<div>
|
||||
<p> 没有任何文章。 </p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% for article in Model.Articles.Items %}
|
||||
<section class="list-item">
|
||||
<h2 class="title">
|
||||
<a href="{{ article.Link }}">{{ article.Title }}</a>
|
||||
</h2>
|
||||
|
||||
<div class="tips">
|
||||
<div class="date">
|
||||
<time datetime="{{ article.CreateDate }}">{{ article.CreateDate | format_date: "yyyy-MM-dd" }}</time>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="categories">
|
||||
<span>分类:</span>
|
||||
<a href="{{ article.Category.Link }}">{{ article.Category.Name }}</a>
|
||||
</div>
|
||||
|
||||
{% if article.Tags != null and article.Tags.size > 0 %}
|
||||
<div class="tags">
|
||||
<span>标签:</span>
|
||||
{% for tag in article.Tags %}
|
||||
<a href="{{ tag.Link }}">{{ tag.Name }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="summary">
|
||||
{{ article.Summary }}
|
||||
<a href="{{ article.Link }}" class="read-more">阅读全文</a>
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% partial '_Pagination' %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user