This repository has been archived on 2025-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
coryd.dev-eleventy/src/links.html

28 lines
No EOL
1.3 KiB
HTML

---
title: Links
layout: default
pagination:
data: collections.links
size: 30
permalink: "/links/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
---
{% if pagination.pageNumber == 0 %}
<h2 class="page-header">Links</h2>
<p>These are links I've liked or otherwise found interesting. They're all added manually, after having been read and, I suppose, properly considered. Authors are associated with domains using a simple key-value map.</p>
{% render "partials/banners/rss.liquid", url: "https://feedpress.me/coryd-links", text: "Subscribe to my links feed or follow along on this page" %}
<hr class="large-spacing" />
{% endif %}
<div class="link-grid">
{% for link in pagination.items %}
{% assign author = link.data.link | stripUtm | authorLookup %}
<div class="link-box">
<a href="{{ link.data.link }}" title="{{ link.data.title | escape }}">
<strong>{{ link.data.title }}</strong>
</a>
{% if author %} via {{ author }}{% endif %}
{% render "partials/widgets/tags.liquid", tags:link.data.tags %}
{% render "partials/widgets/share-button.liquid", url:link.data.link, title:link.data.title, tagMap:collections.tagMap %}
</div>
{% endfor %}
</div>
{% render "partials/widgets/paginator.liquid", pagination:pagination %}