initial commit, add Publish, add minimal theme, add content
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
||||
{% for post in paginator.posts %}
|
||||
<div class="pb-5">
|
||||
|
||||
<div class="card bg-dark p-2">
|
||||
<div class="card-body">
|
||||
|
||||
<h2 class="card-title">
|
||||
<a href="{{ post.url | relative_url }}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</h2>
|
||||
|
||||
<div class="card-text">
|
||||
{% include post-meta.html post=post %}
|
||||
|
||||
{% if post.excerpt %}
|
||||
{{ post.excerpt }}
|
||||
{% else %}
|
||||
{{ post.content }}
|
||||
{% endif %}
|
||||
|
||||
{% if post.excerpt %}
|
||||
{% comment %}Excerpt may be equal to content. Check.{% endcomment %}
|
||||
{% capture content_words %}
|
||||
{{ post.content | number_of_words }}
|
||||
{% endcapture %}
|
||||
{% capture excerpt_words %}
|
||||
{{ post.excerpt | number_of_words }}
|
||||
{% endcapture %}
|
||||
</div>
|
||||
|
||||
{% if content_words != excerpt_words %}
|
||||
<a href="{{ post.url | relative_url }}" class="btn btn-sm btn-secondary">
|
||||
Read more {% octicon chevron-right height:12 %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<!-- end of paginator -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user