mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-08-01 09:50:47 +02:00
Initial commit
This commit is contained in:
commit
ecca3df926
259 changed files with 53743 additions and 0 deletions
_includes/blog
37
_includes/blog/blog.liquid
Normal file
37
_includes/blog/blog.liquid
Normal file
|
@ -0,0 +1,37 @@
|
|||
<div class="posts">
|
||||
{% unless paginator.posts %}
|
||||
<article><section class="post-content"><p>There are no blog posts</p></section></article>
|
||||
{% endunless %}
|
||||
{% for post in paginator.posts %}
|
||||
<div class="post-teaser">
|
||||
{% if post.thumbnail %}
|
||||
<div class="post-img">
|
||||
<a aria-label="{{ post.title }}" href="{{ post.url | relative_url }}">
|
||||
<img alt="{{ post.title }}" src="{{ post.thumbnail | relative_url }}">
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<span>
|
||||
<header>
|
||||
<h1>
|
||||
<a aria-label="{{ post.title }}" class="post-link" href="{{ post.url | relative_url }}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</h1>
|
||||
{% include blog/post_info.liquid author=post.author date=post.date %}
|
||||
</header>
|
||||
{% if site.excerpt or site.theme_settings.excerpt %}
|
||||
<div class="excerpt">
|
||||
{% if site.excerpt == "truncate" %}
|
||||
{{ post.content | strip_html | truncate: '250' | escape }}
|
||||
{% else %}
|
||||
{{ post.excerpt | strip_html | escape }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% include blog/blog_nav.liquid %}
|
Loading…
Add table
Add a link
Reference in a new issue