diff --git a/_data/metadata.js b/_data/metadata.js index 2d22045..13c253d 100644 --- a/_data/metadata.js +++ b/_data/metadata.js @@ -1,8 +1,8 @@ module.exports = { - title: "Eleventy Base Blog v8", + title: "nycki.net", url: "https://nycki.net/beta/", language: "en", - description: "I am writing about my experiences as a naval navel-gazer.", + description: "nycki.net", author: { name: "Your Name Here", email: "youremailaddress@example.com", diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 0b451d0..a4aa104 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -28,15 +28,12 @@ layout: layouts/base.njk {%- endif %} {%- endif %} -{# -
- - -#} +{# + #} \ No newline at end of file diff --git a/content/blog/2024-09-12-01-hey-cohost.md b/content/blog/2024-09-12-01-hey-cohost.md index a098aac..0bf1145 100644 --- a/content/blog/2024-09-12-01-hey-cohost.md +++ b/content/blog/2024-09-12-01-hey-cohost.md @@ -3,6 +3,7 @@ title: Hey Cohost date: 2024-09-12 tags: - hey cohost + --- Holy shit I'm doing this. I'm... "blogging." diff --git a/content/blog/2024-09-12-02-chost.md b/content/blog/2024-09-12-02-chost.md index 3c4a387..d79a04a 100644 --- a/content/blog/2024-09-12-02-chost.md +++ b/content/blog/2024-09-12-02-chost.md @@ -3,7 +3,7 @@ title: Chost date: 2024-09-12 tags: - chost - + --- I put the cracker down first, then the cheese, then the hams. diff --git a/eleventy.config.js b/eleventy.config.js index 4fc054f..df89240 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -79,6 +79,20 @@ module.exports = function(eleventyConfig) { return (tags || []).filter(tag => ["all", "nav", "post", "posts"].indexOf(tag) === -1); }); + eleventyConfig.addFilter("getPostId", function getPostId(url) { + const fragments = url.split('/').filter(f => f.trim()); + return fragments[fragments.length - 1]; + }); + + eleventyConfig.addFilter("noTrailingSlash", function noTrailingSlash(url) { + const length = url.length; + if (url[length - 1] === '/') { + return url.slice(0, length - 1); + } else { + return url; + } + }); + // Customize Markdown library settings: eleventyConfig.amendLibrary("md", mdLib => { mdLib.use(markdownItAnchor, {