feat: cms integration
This commit is contained in:
parent
ff77bdaf36
commit
d23243b177
1050 changed files with 1032 additions and 27229 deletions
|
@ -30,6 +30,5 @@ image: /assets/img/404.jpg
|
|||
What kind of idiots do you have working here? <a href="/">Hurry up and skip out on the room service bill!</a>
|
||||
</div>
|
||||
<hr class="large-spacing" />
|
||||
{% render "partials/widgets/tags.liquid", tags:collections.tagsSortedByCount, hasSpace:true %}
|
||||
{% render "partials/widgets/addon-links.liquid", posts:collections.posts, analytics:analytics, links:collections.links %}
|
||||
{% render "partials/widgets/addon-links.liquid", posts:posts, analytics:analytics, links:collections.links %}
|
||||
</div>
|
|
@ -1,27 +0,0 @@
|
|||
---
|
||||
title: Want to read • Books
|
||||
description: These are books I want to read, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.
|
||||
layout: default
|
||||
pagination:
|
||||
data: collections.booksToRead
|
||||
alias: books
|
||||
size: 30
|
||||
permalink: "/books/want-to-read/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
schema: books
|
||||
---
|
||||
{% if pagination.pageNumber == 0 %}
|
||||
<h2 class="page-header">Want to read</h2>
|
||||
<p>These are books I want to read, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.</p>
|
||||
<hr class="large-spacing" />
|
||||
{% endif %}
|
||||
<ul class="link-list reduced-spacing">
|
||||
{% for book in pagination.items %}
|
||||
<li>
|
||||
<a href="{{ book.url }}">
|
||||
<strong>{{ book.title }}</strong>
|
||||
</a>
|
||||
{% if book.authors %}by {{ book.authors }}{% endif %}{% if book.categories %} • <em>{{ book.categories }}</em>{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% render "partials/widgets/paginator.liquid", pagination:pagination %}
|
|
@ -2,7 +2,7 @@
|
|||
title: Links
|
||||
layout: default
|
||||
pagination:
|
||||
data: collections.links
|
||||
data: links
|
||||
size: 30
|
||||
permalink: "/links/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
---
|
||||
|
@ -14,13 +14,11 @@ permalink: "/links/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}
|
|||
{% 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 href="{{ link.link }}" title="{{ link.title | escape }}">
|
||||
<strong>{{ link.title }}</strong>
|
||||
</a>
|
||||
{% if author %} via {{ author }}{% endif %}
|
||||
{% render "partials/widgets/tags.liquid", tags:link.data.tags %}
|
||||
{% if link.authors %} via <a href="{{ link.authors.url }}">{{ link.authors.name }}</a>{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -46,8 +46,8 @@ schema: artist
|
|||
<p class="sub-meta"><strong class="highlight-text">{{ artist.total_plays }} plays</strong></p>
|
||||
{%- endif -%}
|
||||
<p class="sub-meta">
|
||||
<a href="https://coryd.dev/music/genres/{{ artist.genre | slugify | downcase }}" title="Learn more about {{ artist.genre | escape }}">
|
||||
{{ artist.genre }}
|
||||
<a href="https://coryd.dev/music/genres/{{ artist.genres | slugify | downcase }}" title="Learn more about {{ artist.genres | escape }}">
|
||||
{{ artist.genres }}
|
||||
</a>
|
||||
</p>
|
||||
<p class="sub-meta">
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
title: All posts
|
||||
layout: default
|
||||
pagination:
|
||||
data: collections.posts
|
||||
data: posts
|
||||
size: 8
|
||||
reverse: true
|
||||
alias: posts
|
||||
permalink: "/posts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
---
|
||||
|
@ -18,11 +17,11 @@ permalink: "/posts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}
|
|||
</time>
|
||||
</div>
|
||||
<a href="{{ post.url }}">
|
||||
<h2 class="flex-centered">{{ post.data.title }}</h2>
|
||||
<h2 class="flex-centered">{{ post.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 }}
|
||||
<div class="p-summary hidden">{{ post.description }}</div>
|
||||
<p>{{ post.description }}</p>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
|
@ -55,5 +55,4 @@ permalink: /search.html
|
|||
<input class="search__form--fallback" type="hidden" placeholder="Search" name="sites" value="coryd.dev">
|
||||
</form>
|
||||
<ul class="search__results hidden"></ul>
|
||||
{% render "partials/widgets/tags.liquid", tags:collections.tagsSortedByCount, hasSpace:true %}
|
||||
{% render "partials/widgets/addon-links.liquid", posts:collections.posts, analytics:analytics, links:collections.links %}
|
||||
{% render "partials/widgets/addon-links.liquid", posts:posts, analytics:analytics, links:links %}
|
|
@ -1,36 +0,0 @@
|
|||
---
|
||||
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 %}
|
|
@ -1,28 +0,0 @@
|
|||
---
|
||||
title: Movies to watch
|
||||
description: These are movies I want to watch, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.
|
||||
layout: default
|
||||
pagination:
|
||||
data: movies.toWatch
|
||||
alias: movies
|
||||
size: 30
|
||||
permalink: "/watching/movies-to-watch/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
schema: watching
|
||||
---
|
||||
<a class="back-link-header link-icon flex-centered" href="/watching" title="Go back to the watching index page">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||
{% if pagination.pageNumber == 0 %}
|
||||
<h2 class="page-header">{{ title }}</h2>
|
||||
<p>These are movies I want to watch, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.</p>
|
||||
<hr class="large-spacing" />
|
||||
{% endif %}
|
||||
<ul class="link-list reduced-spacing">
|
||||
{% for movie in pagination.items %}
|
||||
<li>
|
||||
<a href="{{ movie.url }}">
|
||||
<strong>{{ movie.title }}</strong>
|
||||
</a>
|
||||
({{ movie.year }})
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% render "partials/widgets/paginator.liquid", pagination:pagination %}
|
|
@ -1,28 +0,0 @@
|
|||
---
|
||||
title: Shows to watch
|
||||
description: These are shows I want to watch, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.
|
||||
layout: default
|
||||
pagination:
|
||||
data: tv.toWatch
|
||||
alias: shows
|
||||
size: 30
|
||||
permalink: "/watching/shows-to-watch/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
|
||||
schema: watching
|
||||
---
|
||||
<a class="back-link-header link-icon flex-centered" href="/watching" title="Go back to the watching index page">{% tablericon "arrow-left" "Go back" %} Go back</a>
|
||||
{% if pagination.pageNumber == 0 %}
|
||||
<h2 class="page-header">{{ title }}</h2>
|
||||
<p>These are shows I want to watch, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.</p>
|
||||
<hr class="large-spacing" />
|
||||
{% endif %}
|
||||
<ul class="link-list reduced-spacing">
|
||||
{% for show in pagination.items %}
|
||||
<li>
|
||||
<a href="{{ show.url }}">
|
||||
<strong>{{ show.title }}</strong>
|
||||
</a>
|
||||
{% if show.year %}({{ show.year }}){% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% render "partials/widgets/paginator.liquid", pagination:pagination %}
|
|
@ -9,5 +9,4 @@ description: I'll be in touch soon. Thanks for your message!
|
|||
I'll be in touch soon! <a href="/">Head home</a>
|
||||
</div>
|
||||
<hr class="large-spacing" />
|
||||
{% render "partials/widgets/tags.liquid", tags:collections.tagsSortedByCount, hasSpace:true %}
|
||||
{% render "partials/widgets/addon-links.liquid", posts:collections.posts, analytics:analytics, links:links %}
|
||||
{% render "partials/widgets/addon-links.liquid", posts:posts, analytics:analytics, links:links %}
|
Reference in a new issue