chore: organization
This commit is contained in:
parent
b02e70f187
commit
8440ec79d4
3 changed files with 0 additions and 0 deletions
27
src/pages/main/links.html
Normal file
27
src/pages/main/links.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
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 %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% render "partials/widgets/paginator.liquid", pagination:pagination %}
|
29
src/pages/main/posts.html
Normal file
29
src/pages/main/posts.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: All posts
|
||||
layout: default
|
||||
pagination:
|
||||
data: collections.posts
|
||||
size: 8
|
||||
reverse: true
|
||||
alias: posts
|
||||
permalink: "/posts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
---
|
||||
<div class="posts-wrapper">
|
||||
{% for post in pagination.items %}
|
||||
<article class="h-entry">
|
||||
<div class="flex-centered gap-xs icon-small icon-light">
|
||||
{% tablericon "calendar-month" "Date" %}
|
||||
<time class="dt-published" datetime="{{ post.date }}">
|
||||
{{ post.date | date: "%B %e, %Y" }}
|
||||
</time>
|
||||
</div>
|
||||
<a href="{{ post.url }}">
|
||||
<h2 class="flex-centered">{{ post.data.title }}</h2>
|
||||
</a>
|
||||
<span class="p-author h-card hidden">{{ meta.siteName }}</span>
|
||||
<div class="p-summary hidden">{{ post.data.post_excerpt }}</div>
|
||||
{{ post.data.post_excerpt | markdown }}
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% render "partials/widgets/paginator.liquid", pagination:pagination %}
|
36
src/pages/main/tag-list.html
Normal file
36
src/pages/main/tag-list.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
layout: default
|
||||
pagination:
|
||||
data: collections
|
||||
size: 1
|
||||
alias: tag
|
||||
permalink: /tags/{{ tag }}/
|
||||
eleventyComputed:
|
||||
title: '{{ tag }}'
|
||||
---
|
||||
{% assign posts = collections[tag] | reverse %}
|
||||
{% for post in posts %}
|
||||
{% assign author = post.data.link | stripUtm | authorLookup %}
|
||||
<article class="h-entry tag-post">
|
||||
<div class="flex-centered gap-xs icon-small icon-light">
|
||||
{% if author %}{% tablericon "link" "Link" %}{% endif %}
|
||||
{% tablericon "calendar-month" "Date" %}
|
||||
<time class="dt-published" datetime="{{ post.date }}">
|
||||
{{ post.date | date: "%B %e, %Y" }}
|
||||
</time>
|
||||
</div>
|
||||
{% if author %}
|
||||
<a href="{{ post.data.link }}">
|
||||
{% else %}
|
||||
<a href="{{ post.url }}">
|
||||
{% endif %}
|
||||
<h2 class="flex-centered">{{ post.data.title }}</h2>
|
||||
</a>
|
||||
{% if author %}via {{ author }}{% endif %}
|
||||
{% if post.data.excerpt %}
|
||||
<p class="p-summary">{{ post.data.post_excerpt | markdown }}</p>
|
||||
{% else %}
|
||||
<p class="p-summary">{{ post.data.description | markdown }}</p>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endfor %}
|
Reference in a new issue