pleroma layout
This commit is contained in:
parent
dd42b76a4a
commit
d7771186a6
2 changed files with 43 additions and 17 deletions
41
index.html
41
index.html
|
|
@ -112,23 +112,25 @@ apps:
|
|||
<section id="read">
|
||||
|
||||
</section>
|
||||
{% assign sorted = site.posts | sort: 'date' | reverse %}
|
||||
{% for post in sorted %}
|
||||
{% for post in site.posts %}
|
||||
{% if post.category == 'releases' %}
|
||||
<section class="news" style="margin:0;">
|
||||
<section id="read" class="front-section">
|
||||
|
||||
<div style="background-image:url({{ relBase }}{{ post.image }}"></div>
|
||||
<div class="description">
|
||||
<div class="container">
|
||||
<h2>{{ post.title }}</h2>
|
||||
|
||||
<p><strong>{% for tag in post.tags %}{{ tag }}{% endfor %} released {% include forloop-dates.html %}</strong></p>
|
||||
<p>{{ post.description }}</p>
|
||||
<p><a href="{{ relBase }}{{ post.url }}" class="button">🔊 Listen</a></p>
|
||||
<div style="background-image:url({{ post.image }})">
|
||||
<p class="editor-link"><a href="cloudcannon:collections/_posts/{{ post.path }}" rel="nofollow"
|
||||
class="btn"><strong>✎</strong> Edit Post</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<div class="container">
|
||||
<h2>{{ post.title }}</h2>
|
||||
|
||||
<p><strong>{% for tag in post.tags %}{{ tag }}{% endfor %} released {% include forloop-dates.html %}</strong></p>
|
||||
<p>{{ post.description }}</p>
|
||||
<p><a href="{{ relBase }}{{ post.url }}" class="button">🔊 Listen</a></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
@ -151,13 +153,14 @@ apps:
|
|||
|
||||
{% for enclosure in item.link %}
|
||||
{% if enclosure.type == "image/jpeg" %}
|
||||
<img src="{{ enclosure.href }}" />
|
||||
<a href="{{ item.id }}" target="_blank" rel="noopener"><img src="{{ enclosure.href }}" /></a>
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<p><br /><a href="{{ item.id }}" target="_blank" rel="noopener" class="button">Interact</a></p>
|
||||
<hr />
|
||||
<p class="date">
|
||||
|
||||
{% assign d = item.published | date: "%-d" %}
|
||||
{% case d %}
|
||||
{% when '1' or '21' or '31' %}{{ d }}:st
|
||||
|
|
@ -178,7 +181,15 @@ apps:
|
|||
{% when '9' %}September {% when '10' %}October {% when '11' %}November {% when '12' %}December
|
||||
{% endcase %}
|
||||
{{ item.published | date: "%Y" }} - {{ item.published | date: "%R" }}
|
||||
<br />
|
||||
{% assign avatars = site.data.pleroma.feed.author.link %}
|
||||
{% for avatar in avatars %}
|
||||
{% if avatar.rel == 'avatar' %}
|
||||
<a href="{{ site.data.pleroma.feed.author.uri }}" target="_blank" rel="noopener"><img src="{{ avatar.href }}" /></a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue