mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-24 02:06:17 +01:00
65 lines
1.9 KiB
HTML
65 lines
1.9 KiB
HTML
---
|
|
layout: base
|
|
title: Home
|
|
---
|
|
|
|
{% for post in site.posts %}
|
|
|
|
{% if post.layout == "link" %}
|
|
|
|
<article class="hentry format-link">
|
|
<header>
|
|
<h1 class="entry-title">
|
|
<a href="{{ post.linkurl }}" title="Go to source">{{ post.title }} <i class="icon-forward"></i></a>
|
|
</h1>
|
|
</header>
|
|
|
|
<section class="entry-content">
|
|
{{ post.content }}
|
|
<p>
|
|
<a class="more-link" href="{{ post.linkurl }}">Go to source <i class="icon-forward"></i></a>
|
|
<a class="permalink-link" href="{{ post.url }}" rel="tooltip" title="Permalink">∞</a>
|
|
</p>
|
|
</section>
|
|
</article>
|
|
|
|
{% elsif post.layout == "image" %}
|
|
|
|
<article class="hentry format-image">
|
|
|
|
<a class="photoPost" href="{{ post.url }}">
|
|
<figure class="hmedia">
|
|
|
|
<img src="/media/{{ post.image }}" />
|
|
<figcaption class="entry-title fn">{{ post.title }}</figcaption>
|
|
exif
|
|
</figure>
|
|
</a>
|
|
|
|
</article>
|
|
|
|
{% else %}
|
|
|
|
<article class="hentry format-post">
|
|
<header>
|
|
<h1 class="entry-title"><a href="{{ post.url }}">{{ post.title }}</a></h1>
|
|
</header>
|
|
|
|
<section class="entry-content">
|
|
|
|
{% if post.image %}
|
|
<a href="{{ post.url }}">
|
|
<img class="teaser" src="/media/{{ post.image }}" />
|
|
</a>
|
|
{% endif %}
|
|
|
|
{{ post.excerpt }}
|
|
|
|
<a class="more-link" href="{{ post.url }}">Continue reading <i class="icon-arrow-right"></i></a>
|
|
|
|
</section>
|
|
</article>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %} |