diff --git a/.eleventy.js b/.eleventy.js index c07ac5b..c60544e 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -8,6 +8,14 @@ module.exports = function(eleventyConfig) { eleventyConfig.addPlugin(pluginRss); eleventyConfig.addPlugin(metagen); + eleventyConfig.addCollection("posts", function(collection) { + return collection.getFilteredByGlob("content/posts/**/*.md"); + }); + + eleventyConfig.addCollection("tils", function(collection) { + return collection.getFilteredByGlob("content/tils/**/*.md"); + }); + return { htmlTemplateEngine: "njk", markdownTemplateEngine: "md", diff --git a/.obsidian/app.json b/.obsidian/app.json index bf21f23..b3b406e 100644 --- a/.obsidian/app.json +++ b/.obsidian/app.json @@ -1,4 +1,5 @@ { "legacyEditor": false, - "livePreview": true + "livePreview": true, + "vimMode": true } \ No newline at end of file diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 78c3ef8..62926f5 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -11,8 +11,12 @@ "id": "73b3910cd9e889d3", "type": "leaf", "state": { - "type": "empty", - "state": {} + "type": "markdown", + "state": { + "file": "content/tils/struct_pattern_matching.md", + "mode": "source", + "source": false + } } } ] @@ -81,6 +85,7 @@ "state": { "type": "backlink", "state": { + "file": "content/tils/struct_pattern_matching.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -90,6 +95,16 @@ "unlinkedCollapsed": true } } + }, + { + "id": "97c1436caa6060e6", + "type": "leaf", + "state": { + "type": "all-properties", + "state": { + "sortOrder": "frequency" + } + } } ] } @@ -109,6 +124,35 @@ }, "active": "73b3910cd9e889d3", "lastOpenFiles": [ + "content/tils/tils.json", + "content/posts/a_modern_terminal_workflow_1.md", + "_site/tils/struct_pattern_matching/index.html", + "_site/tils/struct_pattern_matching", + "_site/til/index.html", + "_site/til", + "_site/index.html", + "_site/feed.xml", + "_site/posts/ultimate-dungeon-terrain/index.html", + "_site/posts/ultimate-dungeon-terrain", + "_site/posts/where_to_thrive_in_colorado/index.html", + "_site/posts/where_to_thrive_in_colorado", + "_site/posts/back-at-allovue.md", + "content/til.md", + "content/index.md", + "til.md", + "index.md", + "_site/images/ultimate-dungeon-terrain-3.jpg", + "_site/images/ultimate-dungeon-terrain-2.jpg", + "_site/images/ultimate-dungeon-terrain-1.jpg", + "_site/images/testjssummit-speakerbio.png", + "_site/images/thrive-colorado.jpg", + "_site/images/testjssummit.png", + "_site/images/testjssummit-slides.jpg", + "_site/images/testjssummit-happening.jpg", + "_site/images/screenshot_20190224-234525_firefox_focus.jpg", + "_site/images/screen-shot-2019-06-22-at-7.49.41-pm.png", + "content/tils/struct_pattern_matching.md", + "content/posts/a_modern_terminal_workflow_2.md", "content/posts/batch-of-kobolds.md", "content/posts/silhouette-spray-paintings.md", "content/posts/skillsengine.md", diff --git a/_includes/baselayout.njk b/_includes/baselayout.njk index 32f4590..d1b4028 100644 --- a/_includes/baselayout.njk +++ b/_includes/baselayout.njk @@ -1,5 +1,5 @@ - +
diff --git a/_includes/indexlayout.njk b/_includes/indexlayout.njk index 2ac22ec..4ef40e7 100644 --- a/_includes/indexlayout.njk +++ b/_includes/indexlayout.njk @@ -1,6 +1,6 @@ --- pagination: - data: collections.all + data: collections.posts size: 9 alias: posts reverse: true diff --git a/_includes/tilindexlayout.njk b/_includes/tilindexlayout.njk new file mode 100644 index 0000000..59e53bc --- /dev/null +++ b/_includes/tilindexlayout.njk @@ -0,0 +1,21 @@ +{% extends "baselayout.njk" %} + +{% block main %} +