feat: simplified links page
This commit is contained in:
parent
faf0b4c6ee
commit
5ac7243c15
3 changed files with 18 additions and 29 deletions
|
@ -3,34 +3,19 @@ title: Links
|
|||
layout: default
|
||||
pagination:
|
||||
data: links
|
||||
size: 8
|
||||
size: 30
|
||||
image: /assets/img/ogi/links.jpg
|
||||
---
|
||||
{% for link in pagination.items %}
|
||||
{%- assign shareLink = link.url | findPost: linkPosts -%}
|
||||
<article class="h-entry" data-pagefind-body>
|
||||
<a class="no-underline" href="{{ link.url }}">
|
||||
<h2 class="flex--centered" data-pagefind-meta="title">{{ link.title }}</h2>
|
||||
</a>
|
||||
{%- if link.author and link.author != 'undefined' %}
|
||||
<div rel="author">
|
||||
{{ link.author }}
|
||||
</div>
|
||||
{% endif -%}
|
||||
<div class="flex--centered">
|
||||
<time class="dt-published" datetime="{{ link.date }}">
|
||||
{{ link.date | date: "%m.%Y" }}
|
||||
</time>
|
||||
{%- if shareLink %}
|
||||
<a class="brand-mastodon icon--small icon--center__vertical" href="{{ shareLink }}">
|
||||
{% tablericon "brand-mastodon" "Mastodon post" %}
|
||||
</a>
|
||||
{% endif -%}
|
||||
</div>
|
||||
<blockquote class="p-summary">{{ link.summary }}</blockquote>
|
||||
{%- if link.note %}
|
||||
<p>{{ link.note | markdown }}</p>
|
||||
{% endif -%}
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% capture css %}
|
||||
{% render "./assets/styles/pages/links.css" %}
|
||||
{% endcapture %}
|
||||
<style>{{ css }}</style>
|
||||
<ul class="link__list">
|
||||
{% for link in pagination.items %}
|
||||
<li>
|
||||
<a class="no-underline" href="{{ link.url }}">{{ link.title }}</a>
|
||||
{% if link.author and link.author != 'undefined' %}by {{ link.author }}{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% render "partials/paginator.liquid", pagination:pagination %}
|
Reference in a new issue