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