From: Cameron Otsuka Date: Thu, 30 Jan 2025 02:55:43 +0000 (-0800) Subject: add links category X-Git-Tag: v1.0.0~59 X-Git-Url: https://git.otsuka.systems/?a=commitdiff_plain;h=e767492489e32bd254eec32d0be46885fe0fa28b;p=cotsuka.github.io add links category --- diff --git a/_includes/components/activitylist.njk b/_includes/components/activitylist.njk index b92a70b..b0a6788 100644 --- a/_includes/components/activitylist.njk +++ b/_includes/components/activitylist.njk @@ -12,6 +12,8 @@ article {% elseif "reviews" in item.data.tags %} review + {% elseif "links" in item.data.tags %} + link {% endif %} {{ item.data.description }} diff --git a/_includes/components/linkslist.njk b/_includes/components/linkslist.njk new file mode 100644 index 0000000..b7c921d --- /dev/null +++ b/_includes/components/linkslist.njk @@ -0,0 +1,14 @@ +
+{% if maxPosts %} + {% set numPosts = collections.links | length | min(maxPosts) %} + {% set linkslist = collections.links | reverse | head(numPosts) %} +{% else %} + {% set linkslist = collections.links | reverse %} +{% endif %} +{%- for link in linkslist %} +
{{ link.data.title }}
+
+ {{ link.data.description }} +
+{%- endfor %} +
\ No newline at end of file diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index c695c71..a2f2bbf 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -61,6 +61,7 @@

{{ metadata.title }}

  • Articles
  • +
  • Links
  • Reviews
  • diff --git a/_includes/layouts/link.njk b/_includes/layouts/link.njk new file mode 100644 index 0000000..a76c87c --- /dev/null +++ b/_includes/layouts/link.njk @@ -0,0 +1,26 @@ +--- +layout: layouts/base.njk +--- + +

    {{ title }}

    + +
    + Metadata + +
    + +
    + {{ content | safe }} +
    diff --git a/content/links.njk b/content/links.njk new file mode 100644 index 0000000..c25782b --- /dev/null +++ b/content/links.njk @@ -0,0 +1,8 @@ +--- +layout: layouts/base.njk +title: Links +--- + +

    Links

    + +{% include "components/linkslist.njk" %} diff --git a/content/links/links.json b/content/links/links.json new file mode 100644 index 0000000..68d72f0 --- /dev/null +++ b/content/links/links.json @@ -0,0 +1,5 @@ +{ + "tags": ["links"], + "layout": "layouts/link.njk", + "permalink": "links/{{ date | htmlDateString }}-{{ title | slugify }}/" +} \ No newline at end of file diff --git a/content/links/were-ripping-off-the-cuff-about-dollar-rallying-rates-stargate-and-deepseek-listen-in.md b/content/links/were-ripping-off-the-cuff-about-dollar-rallying-rates-stargate-and-deepseek-listen-in.md new file mode 100644 index 0000000..e8d08c7 --- /dev/null +++ b/content/links/were-ripping-off-the-cuff-about-dollar-rallying-rates-stargate-and-deepseek-listen-in.md @@ -0,0 +1,17 @@ +--- +title: "we're ripping off-the-cuff about dollar rallying, rates, stargate, and deepseek. listen in 👇" +href: "https://x.com/CameronOtsuka/status/1882563050374631488" +date: 2025-01-23 +modified: 2025-01-23 +description: Build Weekly Roundup 2025-01-23 +tags: +- ai +- macro +posse: + 𝕏: https://x.com/CameronOtsuka/status/1882563050374631488 +--- + +> BUILD WEEKLY ROUNDUP https://x.com/i/broadcasts/1YqGovvolLkKv +> +> — Matt Dines (@LeveredUSTs) [January 23, 2025](https://twitter.com/LeveredUSTs/status/1882561482535436387) + diff --git a/eleventy.config.js b/eleventy.config.js index 86e2923..ff98001 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -10,8 +10,9 @@ const path = require("path"); let markdownOptions = { html: true, - breaks: true, + breaks: false, linkify: true, + typographer: true, }; let mdLibrary = markdownIt(markdownOptions).use(markdownItFootnote); @@ -34,6 +35,7 @@ module.exports = function (eleventyConfig) { eleventyConfig.addCollection("activities", function(collectionApi) { let collectionSubset = [ ...collectionApi.getFilteredByTag("articles"), + ...collectionApi.getFilteredByTag("links"), ...collectionApi.getFilteredByTag("reviews"), ]; let sortedSubset = collectionSubset.sort(function(a, b) { @@ -126,6 +128,22 @@ module.exports = function (eleventyConfig) { author: globalMetadata['author'], }, }); + eleventyConfig.addPlugin(feedPlugin, { + type: "atom", + outputPath: "/feeds/links.xml", + inputPath: "eleventy-plugin-feed-cameron-otsuka-links-atom.njk", + collection: { + name: "links", + limit: 10, + }, + metadata: { + language: globalMetadata['language'], + title: globalMetadata['title'].concat(" - Links"), + subtitle: globalMetadata['subtitle'], + base: globalMetadata['base'], + author: globalMetadata['author'], + }, + }); eleventyConfig.addPlugin(feedPlugin, { type: "atom", outputPath: "/feeds/reviews.xml",