From 3c80eb4b5f85c22c6b739bafe69af6999e8fafe3 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 26 Oct 2024 13:28:21 -0700 Subject: [PATCH] feat: reorganize templates + layouts --- .eleventy.js | 1 + package-lock.json | 4 ++-- package.json | 2 +- src/feeds/json/all.liquid | 2 +- src/feeds/json/books.liquid | 2 +- src/feeds/json/links.liquid | 2 +- src/feeds/json/movies.liquid | 2 +- src/feeds/json/posts.liquid | 2 +- src/feeds/rss/all.liquid | 2 +- src/feeds/rss/books.liquid | 2 +- src/feeds/rss/links.liquid | 2 +- src/feeds/rss/movies.liquid | 2 +- src/feeds/rss/posts.liquid | 2 +- src/feeds/rss/syndication.liquid | 2 +- .../blocks/associated-media.liquid | 0 .../blocks/banners/coffee.liquid | 0 .../{partials => }/blocks/banners/error.liquid | 0 .../blocks/banners/github.liquid | 0 .../{partials => }/blocks/banners/npm.liquid | 0 .../blocks/banners/old-post.liquid | 0 .../{partials => }/blocks/banners/rss.liquid | 0 .../blocks/banners/warning.liquid | 0 src/includes/{partials => }/blocks/hero.liquid | 0 src/includes/blocks/index.liquid | 18 ++++++++++++++++++ .../{partials => }/blocks/mastodon-post.liquid | 0 .../{partials => }/blocks/modal.liquid | 0 .../{partials => }/blocks/now-playing.liquid | 0 .../blocks/youtube-player.liquid | 0 src/includes/{partials => }/feeds/json.liquid | 0 src/includes/{partials => }/feeds/rss.liquid | 0 .../feeds/syndication.rss.liquid | 0 src/includes/{partials => }/footer.liquid | 4 ++-- src/includes/{partials => }/header.liquid | 2 +- src/includes/{partials => }/home/intro.liquid | 0 .../{partials => }/home/recent-activity.liquid | 4 ++-- .../{partials => }/home/recent-posts.liquid | 0 src/includes/{partials => }/media/grid.liquid | 2 +- .../{partials => }/media/music/chart.liquid | 4 ++-- .../{partials => }/media/music/recent.liquid | 0 .../{partials => }/media/progress-bar.liquid | 0 .../{partials => }/media/watching/hero.liquid | 2 +- src/includes/{partials => }/metadata.liquid | 0 src/includes/{partials => }/nav/link.liquid | 0 src/includes/{partials => }/nav/menu.liquid | 4 ++-- .../{partials => }/nav/paginator.liquid | 0 .../{partials => }/nav/theme-toggle.liquid | 0 src/includes/partials/blocks/index.liquid | 18 ------------------ src/{includes => layouts}/base.liquid | 6 +++--- src/pages/books/index.html | 4 ++-- src/pages/books/year.html | 2 +- src/pages/index.html | 6 +++--- src/pages/links.html | 4 ++-- src/pages/music/concerts.html | 4 ++-- src/pages/music/index.html | 12 ++++++------ src/pages/music/this-month.html | 6 +++--- src/pages/page.html | 2 +- src/pages/posts/index.html | 2 +- src/pages/posts/post.html | 10 +++++----- src/pages/watching/favorites/movies.html | 2 +- src/pages/watching/favorites/shows.html | 2 +- src/pages/watching/index.html | 12 ++++++------ 61 files changed, 81 insertions(+), 80 deletions(-) rename src/includes/{partials => }/blocks/associated-media.liquid (100%) rename src/includes/{partials => }/blocks/banners/coffee.liquid (100%) rename src/includes/{partials => }/blocks/banners/error.liquid (100%) rename src/includes/{partials => }/blocks/banners/github.liquid (100%) rename src/includes/{partials => }/blocks/banners/npm.liquid (100%) rename src/includes/{partials => }/blocks/banners/old-post.liquid (100%) rename src/includes/{partials => }/blocks/banners/rss.liquid (100%) rename src/includes/{partials => }/blocks/banners/warning.liquid (100%) rename src/includes/{partials => }/blocks/hero.liquid (100%) create mode 100644 src/includes/blocks/index.liquid rename src/includes/{partials => }/blocks/mastodon-post.liquid (100%) rename src/includes/{partials => }/blocks/modal.liquid (100%) rename src/includes/{partials => }/blocks/now-playing.liquid (100%) rename src/includes/{partials => }/blocks/youtube-player.liquid (100%) rename src/includes/{partials => }/feeds/json.liquid (100%) rename src/includes/{partials => }/feeds/rss.liquid (100%) rename src/includes/{partials => }/feeds/syndication.rss.liquid (100%) rename src/includes/{partials => }/footer.liquid (79%) rename src/includes/{partials => }/header.liquid (77%) rename src/includes/{partials => }/home/intro.liquid (100%) rename src/includes/{partials => }/home/recent-activity.liquid (86%) rename src/includes/{partials => }/home/recent-posts.liquid (100%) rename src/includes/{partials => }/media/grid.liquid (96%) rename src/includes/{partials => }/media/music/chart.liquid (81%) rename src/includes/{partials => }/media/music/recent.liquid (100%) rename src/includes/{partials => }/media/progress-bar.liquid (100%) rename src/includes/{partials => }/media/watching/hero.liquid (76%) rename src/includes/{partials => }/metadata.liquid (100%) rename src/includes/{partials => }/nav/link.liquid (100%) rename src/includes/{partials => }/nav/menu.liquid (78%) rename src/includes/{partials => }/nav/paginator.liquid (100%) rename src/includes/{partials => }/nav/theme-toggle.liquid (100%) delete mode 100644 src/includes/partials/blocks/index.liquid rename src/{includes => layouts}/base.liquid (94%) diff --git a/.eleventy.js b/.eleventy.js index 8d3263b4..a8fc3943 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -105,6 +105,7 @@ export default async function (eleventyConfig) { dir: { input: "src", includes: "includes", + layouts: "layouts", data: "data", output: "_site", }, diff --git a/package-lock.json b/package-lock.json index 8d2b61b4..26bc93d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "1.9.0", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "1.9.0", + "version": "2.0.0", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.6.0", diff --git a/package.json b/package.json index 82576531..dfc99639 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "1.9.0", + "version": "2.0.0", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "engines": { diff --git a/src/feeds/json/all.liquid b/src/feeds/json/all.liquid index 3f7f81ab..632757ba 100644 --- a/src/feeds/json/all.liquid +++ b/src/feeds/json/all.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/all.json" --- -{% render "partials/feeds/json.liquid" +{% render "feeds/json.liquid" permalink:"/feeds/all.json" title:"All activity / Cory Dransfeldt" globals:globals diff --git a/src/feeds/json/books.liquid b/src/feeds/json/books.liquid index 67ebaaf4..8ffd3e16 100644 --- a/src/feeds/json/books.liquid +++ b/src/feeds/json/books.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/books.json" --- -{% render "partials/feeds/json.liquid" +{% render "feeds/json.liquid" permalink:"/feeds/books.json" title:"Books / Cory Dransfeldt" globals:globals diff --git a/src/feeds/json/links.liquid b/src/feeds/json/links.liquid index aa7b0d96..f1ee2266 100644 --- a/src/feeds/json/links.liquid +++ b/src/feeds/json/links.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/links.json" --- -{% render "partials/feeds/json.liquid" +{% render "feeds/json.liquid" permalink:"/feeds/links.json" title:"Links / Cory Dransfeldt" globals:globals diff --git a/src/feeds/json/movies.liquid b/src/feeds/json/movies.liquid index a4cceac1..88b5cc19 100644 --- a/src/feeds/json/movies.liquid +++ b/src/feeds/json/movies.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/movies.json" --- -{% render "partials/feeds/json.liquid" +{% render "feeds/json.liquid" permalink:"/feeds/movies.json" title:"Movies / Cory Dransfeldt" globals:globals diff --git a/src/feeds/json/posts.liquid b/src/feeds/json/posts.liquid index dd4acc3b..779ecf2a 100644 --- a/src/feeds/json/posts.liquid +++ b/src/feeds/json/posts.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/posts.json" --- -{% render "partials/feeds/json.liquid" +{% render "feeds/json.liquid" permalink:"/feeds/posts.json" title:"Posts / Cory Dransfeldt" globals:globals diff --git a/src/feeds/rss/all.liquid b/src/feeds/rss/all.liquid index 5e07fac9..f026b21d 100644 --- a/src/feeds/rss/all.liquid +++ b/src/feeds/rss/all.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/all" --- -{% render "partials/feeds/rss.liquid" +{% render "feeds/rss.liquid" permalink:"/feeds/all" title:"All activity / Cory Dransfeldt" globals:globals diff --git a/src/feeds/rss/books.liquid b/src/feeds/rss/books.liquid index 32458ec4..55fa5697 100644 --- a/src/feeds/rss/books.liquid +++ b/src/feeds/rss/books.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/books" --- -{% render "partials/feeds/rss.liquid" +{% render "feeds/rss.liquid" permalink:"/feeds/books" title:"Books / Cory Dransfeldt" globals:globals diff --git a/src/feeds/rss/links.liquid b/src/feeds/rss/links.liquid index 4061a7bf..2ee1eade 100644 --- a/src/feeds/rss/links.liquid +++ b/src/feeds/rss/links.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/links" --- -{% render "partials/feeds/rss.liquid" +{% render "feeds/rss.liquid" permalink:"/feeds/links" title:"Links / Cory Dransfeldt" globals:globals diff --git a/src/feeds/rss/movies.liquid b/src/feeds/rss/movies.liquid index 4a3cc24f..ba146bbf 100644 --- a/src/feeds/rss/movies.liquid +++ b/src/feeds/rss/movies.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/movies" --- -{% render "partials/feeds/rss.liquid" +{% render "feeds/rss.liquid" permalink:"/feeds/movies" title:"Movies / Cory Dransfeldt" globals:globals diff --git a/src/feeds/rss/posts.liquid b/src/feeds/rss/posts.liquid index 2d4244ea..58fca119 100644 --- a/src/feeds/rss/posts.liquid +++ b/src/feeds/rss/posts.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/posts" --- -{% render "partials/feeds/rss.liquid" +{% render "feeds/rss.liquid" permalink:"/feeds/posts" title:"Posts / Cory Dransfeldt" globals:globals diff --git a/src/feeds/rss/syndication.liquid b/src/feeds/rss/syndication.liquid index f87f7745..b9cab1f6 100644 --- a/src/feeds/rss/syndication.liquid +++ b/src/feeds/rss/syndication.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: "/feeds/syndication" --- -{% render "partials/feeds/syndication.rss.liquid" +{% render "feeds/syndication.rss.liquid" permalink:"/feeds/syndication" title:"Syndicated content / Cory Dransfeldt" globals:globals diff --git a/src/includes/partials/blocks/associated-media.liquid b/src/includes/blocks/associated-media.liquid similarity index 100% rename from src/includes/partials/blocks/associated-media.liquid rename to src/includes/blocks/associated-media.liquid diff --git a/src/includes/partials/blocks/banners/coffee.liquid b/src/includes/blocks/banners/coffee.liquid similarity index 100% rename from src/includes/partials/blocks/banners/coffee.liquid rename to src/includes/blocks/banners/coffee.liquid diff --git a/src/includes/partials/blocks/banners/error.liquid b/src/includes/blocks/banners/error.liquid similarity index 100% rename from src/includes/partials/blocks/banners/error.liquid rename to src/includes/blocks/banners/error.liquid diff --git a/src/includes/partials/blocks/banners/github.liquid b/src/includes/blocks/banners/github.liquid similarity index 100% rename from src/includes/partials/blocks/banners/github.liquid rename to src/includes/blocks/banners/github.liquid diff --git a/src/includes/partials/blocks/banners/npm.liquid b/src/includes/blocks/banners/npm.liquid similarity index 100% rename from src/includes/partials/blocks/banners/npm.liquid rename to src/includes/blocks/banners/npm.liquid diff --git a/src/includes/partials/blocks/banners/old-post.liquid b/src/includes/blocks/banners/old-post.liquid similarity index 100% rename from src/includes/partials/blocks/banners/old-post.liquid rename to src/includes/blocks/banners/old-post.liquid diff --git a/src/includes/partials/blocks/banners/rss.liquid b/src/includes/blocks/banners/rss.liquid similarity index 100% rename from src/includes/partials/blocks/banners/rss.liquid rename to src/includes/blocks/banners/rss.liquid diff --git a/src/includes/partials/blocks/banners/warning.liquid b/src/includes/blocks/banners/warning.liquid similarity index 100% rename from src/includes/partials/blocks/banners/warning.liquid rename to src/includes/blocks/banners/warning.liquid diff --git a/src/includes/partials/blocks/hero.liquid b/src/includes/blocks/hero.liquid similarity index 100% rename from src/includes/partials/blocks/hero.liquid rename to src/includes/blocks/hero.liquid diff --git a/src/includes/blocks/index.liquid b/src/includes/blocks/index.liquid new file mode 100644 index 00000000..9c742799 --- /dev/null +++ b/src/includes/blocks/index.liquid @@ -0,0 +1,18 @@ +{%- for block in blocks -%} + {%- case block.type -%} + {%- when 'youtube_player' -%} + {% render "blocks/youtube-player.liquid", url: block.url %} + {%- when 'github_banner' -%} + {% render "blocks/banners/github.liquid", url: block.url %} + {%- when 'npm_banner' -%} + {% render "blocks/banners/npm.liquid", url: block.url, command: block.command %} + {%- when 'rss_banner' -%} + {% render "blocks/banners/rss.liquid", url: block.url, text: block.text %} + {%- when 'hero' -%} + {% render "blocks/hero.liquid", globals: globals, image: block.image, alt: block.alt %} + {%- when 'markdown' -%} + {{ block.text | markdown }} + {%- when 'divider' -%} + {{ block.markup | markdown }} + {%- endcase -%} +{%- endfor -%} \ No newline at end of file diff --git a/src/includes/partials/blocks/mastodon-post.liquid b/src/includes/blocks/mastodon-post.liquid similarity index 100% rename from src/includes/partials/blocks/mastodon-post.liquid rename to src/includes/blocks/mastodon-post.liquid diff --git a/src/includes/partials/blocks/modal.liquid b/src/includes/blocks/modal.liquid similarity index 100% rename from src/includes/partials/blocks/modal.liquid rename to src/includes/blocks/modal.liquid diff --git a/src/includes/partials/blocks/now-playing.liquid b/src/includes/blocks/now-playing.liquid similarity index 100% rename from src/includes/partials/blocks/now-playing.liquid rename to src/includes/blocks/now-playing.liquid diff --git a/src/includes/partials/blocks/youtube-player.liquid b/src/includes/blocks/youtube-player.liquid similarity index 100% rename from src/includes/partials/blocks/youtube-player.liquid rename to src/includes/blocks/youtube-player.liquid diff --git a/src/includes/partials/feeds/json.liquid b/src/includes/feeds/json.liquid similarity index 100% rename from src/includes/partials/feeds/json.liquid rename to src/includes/feeds/json.liquid diff --git a/src/includes/partials/feeds/rss.liquid b/src/includes/feeds/rss.liquid similarity index 100% rename from src/includes/partials/feeds/rss.liquid rename to src/includes/feeds/rss.liquid diff --git a/src/includes/partials/feeds/syndication.rss.liquid b/src/includes/feeds/syndication.rss.liquid similarity index 100% rename from src/includes/partials/feeds/syndication.rss.liquid rename to src/includes/feeds/syndication.rss.liquid diff --git a/src/includes/partials/footer.liquid b/src/includes/footer.liquid similarity index 79% rename from src/includes/partials/footer.liquid rename to src/includes/footer.liquid index a83ae04d..e163d1e8 100644 --- a/src/includes/partials/footer.liquid +++ b/src/includes/footer.liquid @@ -4,12 +4,12 @@ {%- endif -%} diff --git a/src/includes/partials/header.liquid b/src/includes/header.liquid similarity index 77% rename from src/includes/partials/header.liquid rename to src/includes/header.liquid index 2bce00bb..d99dd4d8 100644 --- a/src/includes/partials/header.liquid +++ b/src/includes/header.liquid @@ -6,5 +6,5 @@ {{ globals.site_name }} {%- endif -%} - {% render "partials/nav/menu.liquid", page:page, nav:nav %} + {% render "nav/menu.liquid", page:page, nav:nav %} \ No newline at end of file diff --git a/src/includes/partials/home/intro.liquid b/src/includes/home/intro.liquid similarity index 100% rename from src/includes/partials/home/intro.liquid rename to src/includes/home/intro.liquid diff --git a/src/includes/partials/home/recent-activity.liquid b/src/includes/home/recent-activity.liquid similarity index 86% rename from src/includes/partials/home/recent-activity.liquid rename to src/includes/home/recent-activity.liquid index 3e9aa9db..0e8f2a72 100644 --- a/src/includes/partials/home/recent-activity.liquid +++ b/src/includes/home/recent-activity.liquid @@ -10,12 +10,12 @@ Recent activity - {% render "partials/blocks/banners/rss.liquid", url: "/feeds", text: "Subscribe to my movies, books, links or activity feed(s)" %} + {% render "blocks/banners/rss.liquid", url: "/feeds", text: "Subscribe to my movies, books, links or activity feed(s)" %} \ No newline at end of file diff --git a/src/includes/partials/home/recent-posts.liquid b/src/includes/home/recent-posts.liquid similarity index 100% rename from src/includes/partials/home/recent-posts.liquid rename to src/includes/home/recent-posts.liquid diff --git a/src/includes/partials/media/grid.liquid b/src/includes/media/grid.liquid similarity index 96% rename from src/includes/partials/media/grid.liquid rename to src/includes/media/grid.liquid index fb56060f..66bab808 100644 --- a/src/includes/partials/media/grid.liquid +++ b/src/includes/media/grid.liquid @@ -46,5 +46,5 @@ {%- endfor -%} {%- unless hidePagination -%} - {% render "partials/nav/paginator.liquid", pagination: pagination %} + {% render "nav/paginator.liquid", pagination: pagination %} {%- endunless -%} \ No newline at end of file diff --git a/src/includes/partials/media/music/chart.liquid b/src/includes/media/music/chart.liquid similarity index 81% rename from src/includes/partials/media/music/chart.liquid rename to src/includes/media/music/chart.liquid index ac478684..871fcce4 100644 --- a/src/includes/partials/media/music/chart.liquid +++ b/src/includes/media/music/chart.liquid @@ -10,12 +10,12 @@ {{ item.chart.artist }} {{ item.chart.plays }} {{ playsLabel }} - {% render "partials/media/progress-bar.liquid", percentage:percentage %} + {% render "media/progress-bar.liquid", percentage:percentage %} {%- endfor -%} {%- unless count -%} - {% render "partials/nav/paginator.liquid", pagination:pagination %} + {% render "nav/paginator.liquid", pagination:pagination %} {%- endunless -%} \ No newline at end of file diff --git a/src/includes/partials/media/music/recent.liquid b/src/includes/media/music/recent.liquid similarity index 100% rename from src/includes/partials/media/music/recent.liquid rename to src/includes/media/music/recent.liquid diff --git a/src/includes/partials/media/progress-bar.liquid b/src/includes/media/progress-bar.liquid similarity index 100% rename from src/includes/partials/media/progress-bar.liquid rename to src/includes/media/progress-bar.liquid diff --git a/src/includes/partials/media/watching/hero.liquid b/src/includes/media/watching/hero.liquid similarity index 76% rename from src/includes/partials/media/watching/hero.liquid rename to src/includes/media/watching/hero.liquid index 8b55c84e..5e84595a 100644 --- a/src/includes/partials/media/watching/hero.liquid +++ b/src/includes/media/watching/hero.liquid @@ -9,6 +9,6 @@ ({{ movie.year }}) - {% render "partials/blocks/hero.liquid", globals:globals, image:movie.backdrop, alt:movie.title %} + {% render "blocks/hero.liquid", globals:globals, image:movie.backdrop, alt:movie.title %} \ No newline at end of file diff --git a/src/includes/partials/metadata.liquid b/src/includes/metadata.liquid similarity index 100% rename from src/includes/partials/metadata.liquid rename to src/includes/metadata.liquid diff --git a/src/includes/partials/nav/link.liquid b/src/includes/nav/link.liquid similarity index 100% rename from src/includes/partials/nav/link.liquid rename to src/includes/nav/link.liquid diff --git a/src/includes/partials/nav/menu.liquid b/src/includes/nav/menu.liquid similarity index 78% rename from src/includes/partials/nav/menu.liquid rename to src/includes/nav/menu.liquid index 31c6a2be..7bc8b41d 100644 --- a/src/includes/partials/nav/menu.liquid +++ b/src/includes/nav/menu.liquid @@ -6,8 +6,8 @@ - {% render "partials/nav/theme-toggle.liquid" %} + {% render "nav/theme-toggle.liquid" %} \ No newline at end of file diff --git a/src/includes/partials/nav/paginator.liquid b/src/includes/nav/paginator.liquid similarity index 100% rename from src/includes/partials/nav/paginator.liquid rename to src/includes/nav/paginator.liquid diff --git a/src/includes/partials/nav/theme-toggle.liquid b/src/includes/nav/theme-toggle.liquid similarity index 100% rename from src/includes/partials/nav/theme-toggle.liquid rename to src/includes/nav/theme-toggle.liquid diff --git a/src/includes/partials/blocks/index.liquid b/src/includes/partials/blocks/index.liquid deleted file mode 100644 index b4df248b..00000000 --- a/src/includes/partials/blocks/index.liquid +++ /dev/null @@ -1,18 +0,0 @@ -{%- for block in blocks -%} - {%- case block.type -%} - {%- when 'youtube_player' -%} - {% render "partials/blocks/youtube-player.liquid", url: block.url %} - {%- when 'github_banner' -%} - {% render "partials/blocks/banners/github.liquid", url: block.url %} - {%- when 'npm_banner' -%} - {% render "partials/blocks/banners/npm.liquid", url: block.url, command: block.command %} - {%- when 'rss_banner' -%} - {% render "partials/blocks/banners/rss.liquid", url: block.url, text: block.text %} - {%- when 'hero' -%} - {% render "partials/blocks/hero.liquid", globals: globals, image: block.image, alt: block.alt %} - {%- when 'markdown' -%} - {{ block.text | markdown }} - {%- when 'divider' -%} - {{ block.markup | markdown }} - {%- endcase -%} -{%- endfor -%} \ No newline at end of file diff --git a/src/includes/base.liquid b/src/layouts/base.liquid similarity index 94% rename from src/includes/base.liquid rename to src/layouts/base.liquid index 78c70c62..ebd7deee 100644 --- a/src/includes/base.liquid +++ b/src/layouts/base.liquid @@ -13,7 +13,7 @@ - {% render "partials/metadata.liquid", + {% render "metadata.liquid", globals:globals, schema:schema, title:title, @@ -59,12 +59,12 @@
- {% render "partials/header.liquid", globals:globals, page:page, nav:nav %} + {% render "header.liquid", globals:globals, page:page, nav:nav %}
{{ content }}
- {% render "partials/footer.liquid", page:page, nav:nav, updated:updateTime %} + {% render "footer.liquid", page:page, nav:nav, updated:updateTime %}
\ No newline at end of file diff --git a/src/pages/books/index.html b/src/pages/books/index.html index e7ba203a..11d8b8f5 100644 --- a/src/pages/books/index.html +++ b/src/pages/books/index.html @@ -11,7 +11,7 @@ schema: books

Currently reading

Here's what I'm reading at the moment. I've finished {{ currentBookCount }} books this year.

{{ books.years | bookYearLinks }}

-{% render "partials/blocks/banners/rss.liquid", url: "/feeds/books", text: "Subscribe to my books feed or follow along on this page" %} +{% render "blocks/banners/rss.liquid", url: "/feeds/books", text: "Subscribe to my books feed or follow along on this page" %}
{% for book in bookData %} {% capture alt %}{{ book.title }} by {{ book.authors }}{% endcapture %} @@ -41,7 +41,7 @@ schema: books {% endif %} {% if book.progress %} {%- assign percentage = book.progress | append: '%' -%} - {% render "partials/media/progress-bar.liquid", percentage:percentage %} + {% render "media/progress-bar.liquid", percentage:percentage %} {% endif %} {% if book.description %}
{{ book.description | normalize_whitespace | markdown | htmlTruncate }}
{% endif %} diff --git a/src/pages/books/year.html b/src/pages/books/year.html index 12952f1c..4cd929c3 100644 --- a/src/pages/books/year.html +++ b/src/pages/books/year.html @@ -20,4 +20,4 @@ schema: books-year

I finished {{ bookData.size }} books in {{ year.value }}.{%- if favoriteBooks %} Among my favorites were {{ favoriteBooks }}.{%- endif -%}

{% endif %}
-{% render "partials/media/grid.liquid", globals:globals, data:bookData, shape:"vertical", count: 200, loading: "eager" %} \ No newline at end of file +{% render "media/grid.liquid", globals:globals, data:bookData, shape:"vertical", count: 200, loading: "eager" %} \ No newline at end of file diff --git a/src/pages/index.html b/src/pages/index.html index 760a126c..cbb34f24 100644 --- a/src/pages/index.html +++ b/src/pages/index.html @@ -1,6 +1,6 @@ --- permalink: / --- -{% render "partials/home/intro.liquid" intro:globals.intro %} -{% render "partials/home/recent-activity.liquid" music:music, nowPlaying:nowPlaying.content, books:books.currentYear, tv:tv, movies:movies, links:links %} -{% render "partials/home/recent-posts.liquid" posts:posts %} \ No newline at end of file +{% render "home/intro.liquid" intro:globals.intro %} +{% render "home/recent-activity.liquid" music:music, nowPlaying:nowPlaying.content, books:books.currentYear, tv:tv, movies:movies, links:links %} +{% render "home/recent-posts.liquid" posts:posts %} \ No newline at end of file diff --git a/src/pages/links.html b/src/pages/links.html index 94023ca7..6c200d93 100644 --- a/src/pages/links.html +++ b/src/pages/links.html @@ -9,7 +9,7 @@ permalink: "/links/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }} {% if pagination.pageNumber == 0 %}

Links

These are links I've liked or otherwise found interesting. They're all added manually, after having been read and, I suppose, properly considered.

-{% render "partials/blocks/banners/rss.liquid", url: "/feeds/links", text: "Subscribe to my links feed or follow along on this page" %} +{% render "blocks/banners/rss.liquid", url: "/feeds/links", text: "Subscribe to my links feed or follow along on this page" %}
{% endif %} {% endfor %} -{% render "partials/nav/paginator.liquid", pagination:pagination %} \ No newline at end of file +{% render "nav/paginator.liquid", pagination:pagination %} \ No newline at end of file diff --git a/src/pages/music/concerts.html b/src/pages/music/concerts.html index d0dec03d..49061512 100644 --- a/src/pages/music/concerts.html +++ b/src/pages/music/concerts.html @@ -34,9 +34,9 @@ permalink: "/music/concerts/{% if pagination.pageNumber > 0 %}{{ pagination.page {% if venue %} at {{ venue }}{% endif %} {%- if concert.notes -%} {% assign notes = concert.notes | prepend: "### Notes\n" | markdown %} - {% render "partials/blocks/modal.liquid", icon:"info-circle", content:notes, id:concert.id %} + {% render "blocks/modal.liquid", icon:"info-circle", content:notes, id:concert.id %} {%- endif -%} {%- endfor -%} -{% render "partials/nav/paginator.liquid", pagination:pagination %} \ No newline at end of file +{% render "nav/paginator.liquid", pagination:pagination %} \ No newline at end of file diff --git a/src/pages/music/index.html b/src/pages/music/index.html index 9aa3bd3a..32a0e150 100644 --- a/src/pages/music/index.html +++ b/src/pages/music/index.html @@ -8,18 +8,18 @@ schema: music-index

{{ title }}

I've listened to {{ music.week.artists.size }} artists, {{ music.week.albums.size }} albums and {{ music.week.totalTracks }} tracks this week. Most of that has been {{ music.week.genres | mediaLinks: "genre", 5 }}.

Take a look at what I've listened to this month or check out the concerts I've been to.

-{% render "partials/blocks/now-playing.liquid", music:music %} +{% render "blocks/now-playing.liquid", music:music %}

{% tablericon "microphone-2" %} Artists

-{% render "partials/media/grid.liquid", globals:globals, data:music.week.artists, shape:"square", count: 8, loading: "eager" %} +{% render "media/grid.liquid", globals:globals, data:music.week.artists, shape:"square", count: 8, loading: "eager" %}

{% tablericon "vinyl" %} Albums

-{% render "partials/media/grid.liquid", globals:globals, data:music.week.albums, shape:"square", count: 8 %} +{% render "media/grid.liquid", globals:globals, data:music.week.albums, shape:"square", count: 8 %}

{% tablericon "playlist" %} Tracks @@ -30,10 +30,10 @@ schema: music-index
- {% render "partials/media/music/recent", globals:globals, data:music.recent %} + {% render "media/music/recent", globals:globals, data:music.recent %}
- {% render "partials/media/music/chart.liquid", data:music.week.tracks, count: 10 %} + {% render "media/music/chart.liquid", data:music.week.tracks, count: 10 %}
{% if albumReleases.size > 0 %} @@ -41,5 +41,5 @@ schema: music-index {% tablericon "calendar-time" %} Anticipated albums

-{% render "partials/media/grid.liquid", globals:globals, data:albumReleases.upcoming, shape:"square", count: 8 %} +{% render "media/grid.liquid", globals:globals, data:albumReleases.upcoming, shape:"square", count: 8 %} {% endif %} \ No newline at end of file diff --git a/src/pages/music/this-month.html b/src/pages/music/this-month.html index f7e9e0a1..e2c6669d 100644 --- a/src/pages/music/this-month.html +++ b/src/pages/music/this-month.html @@ -14,14 +14,14 @@ schema: music-period {% tablericon "microphone-2" %} Artists -{% render "partials/media/grid.liquid", globals:globals, data:music.month.artists, shape:"square", count: 8, loading: "eager" %} +{% render "media/grid.liquid", globals:globals, data:music.month.artists, shape:"square", count: 8, loading: "eager" %}

{% tablericon "vinyl" %} Albums

-{% render "partials/media/grid.liquid", globals:globals, data:music.month.albums, shape:"square", count: 8 %} +{% render "media/grid.liquid", globals:globals, data:music.month.albums, shape:"square", count: 8 %}

{% tablericon "playlist" %} Tracks

-{% render "partials/media/music/chart.liquid", data:music.month.tracks, count: 10 %} \ No newline at end of file +{% render "media/music/chart.liquid", data:music.month.tracks, count: 10 %} \ No newline at end of file diff --git a/src/pages/page.html b/src/pages/page.html index 779e8b12..c7f4ec6d 100644 --- a/src/pages/page.html +++ b/src/pages/page.html @@ -9,4 +9,4 @@ image: "{{ page.open_graph_image | prepend: globals.cdn_url | default: globals.a updated: "{{ page.updated | default: null }}" schema: page --- -{% render "partials/blocks/index.liquid", blocks:page.blocks, globals:globals %} \ No newline at end of file +{% render "blocks/index.liquid", blocks:page.blocks, globals:globals %} \ No newline at end of file diff --git a/src/pages/posts/index.html b/src/pages/posts/index.html index 24d497cf..27ee7523 100644 --- a/src/pages/posts/index.html +++ b/src/pages/posts/index.html @@ -19,4 +19,4 @@ permalink: "/posts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}

{{ post.description | markdown }}

{% endfor %} -{% render "partials/nav/paginator.liquid", pagination:pagination %} \ No newline at end of file +{% render "nav/paginator.liquid", pagination:pagination %} \ No newline at end of file diff --git a/src/pages/posts/post.html b/src/pages/posts/post.html index 4dfe7fa7..b20127cd 100644 --- a/src/pages/posts/post.html +++ b/src/pages/posts/post.html @@ -17,7 +17,7 @@ schema: blog {{ post.title }}
- {% render "partials/blocks/banners/old-post.liquid", isOldPost:post.old_post %} + {% render "blocks/banners/old-post.liquid", isOldPost:post.old_post %} {%- if post.image -%} \ No newline at end of file diff --git a/src/pages/watching/favorites/movies.html b/src/pages/watching/favorites/movies.html index 676e4f55..c2026457 100644 --- a/src/pages/watching/favorites/movies.html +++ b/src/pages/watching/favorites/movies.html @@ -13,4 +13,4 @@ schema: favorite-movies

These are my favorite movies. There are many like them, but these are mine.


{% endif %} -{% render "partials/media/grid.liquid", globals:globals, data:pagination.items, pagination:pagination, shape:"poster" %} \ No newline at end of file +{% render "media/grid.liquid", globals:globals, data:pagination.items, pagination:pagination, shape:"poster" %} \ No newline at end of file diff --git a/src/pages/watching/favorites/shows.html b/src/pages/watching/favorites/shows.html index 5cd10d14..2f46ea9e 100644 --- a/src/pages/watching/favorites/shows.html +++ b/src/pages/watching/favorites/shows.html @@ -13,4 +13,4 @@ schema: favorite-shows

These are my favorite shows. There are many like them, but these are mine.


{% endif %} -{% render "partials/media/grid.liquid", globals:globals, data:pagination.items, pagination:pagination, shape:"poster" %} \ No newline at end of file +{% render "media/grid.liquid", globals:globals, data:pagination.items, pagination:pagination, shape:"poster" %} \ No newline at end of file diff --git a/src/pages/watching/index.html b/src/pages/watching/index.html index 8bc09216..e89d4faa 100644 --- a/src/pages/watching/index.html +++ b/src/pages/watching/index.html @@ -7,20 +7,20 @@ schema: watching --- {%- assign featuredMovie = movies.recentlyWatched | shuffleArray | first -%}

{{ title }}

-{% render "partials/media/watching/hero.liquid", globals:globals, movie:featuredMovie %} +{% render "media/watching/hero.liquid", globals:globals, movie:featuredMovie %}

Here's all of the TV and movies I've been watching presented in what is (hopefully) an organized fashion.

-{% render "partials/blocks/banners/rss.liquid", url: "/feeds/movies", text: "Subscribe to my movies feed or follow along on this page" %} +{% render "blocks/banners/rss.liquid", url: "/feeds/movies", text: "Subscribe to my movies feed or follow along on this page" %}

{% tablericon "movie" %} Recent movies

-{% render "partials/media/grid.liquid", globals:globals, data:movies.recentlyWatched, shape:"vertical", count: 6 %} +{% render "media/grid.liquid", globals:globals, data:movies.recentlyWatched, shape:"vertical", count: 6 %}

{% tablericon "device-tv-old" %} Recent shows

-{% render "partials/media/grid.liquid", globals:globals, data:tv.recentlyWatched, shape:"vertical", count: 6 %} +{% render "media/grid.liquid", globals:globals, data:tv.recentlyWatched, shape:"vertical", count: 6 %}

{% tablericon "star" %} @@ -28,7 +28,7 @@ schema: watching

{% assign favoriteMovies = movies.favorites | shuffleArray %} -{% render "partials/media/grid.liquid", globals:globals, data:favoriteMovies, shape:"vertical", count: 6 %} +{% render "media/grid.liquid", globals:globals, data:favoriteMovies, shape:"vertical", count: 6 %}

{% tablericon "star" %} @@ -36,4 +36,4 @@ schema: watching

{% assign favoriteShows = tv.favorites | shuffleArray %} -{% render "partials/media/grid.liquid", globals:globals, data:favoriteShows, shape:"vertical", count: 6 %} \ No newline at end of file +{% render "media/grid.liquid", globals:globals, data:favoriteShows, shape:"vertical", count: 6 %} \ No newline at end of file