{{ title | markdownInline | safe }}
+ {% if subtitle %}{{ subtitle | markdownInline | safe }}
{% endif %} + {% if date %}{{ date | postDate }}
{% endif %} + {{ content | safe }} +diff --git a/.eleventy.js b/.eleventy.js index 2cdb2d4..e7786d0 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -55,7 +55,7 @@ export default function (eleventyConfig) { type: "atom", outputPath: "/feed.xml", collection: { - name: "post", + name: "post", // Only posts, not recipes limit: 10, // 0 for no limit }, metadata: { diff --git a/src/_layouts/recipes.njk b/src/_layouts/recipes.njk new file mode 100644 index 0000000..b06f519 --- /dev/null +++ b/src/_layouts/recipes.njk @@ -0,0 +1,52 @@ + + +
+ {% include "head.njk" %} + + +{{ subtitle | markdownInline | safe }}
{% endif %} + {% if date %}{{ date | postDate }}
{% endif %} + {{ content | safe }} +
+
+
+
+ I love cooking despite being a very middle of the road home cook. I find it to be relaxing and I like that I get to actually make something in the physical world.
+ I keep an old-school recipe box filled with note cards of recipes that I enjoyed making and that turned out well. So I thought
+ a good way to start this page would be to describe
+
+ With attribution provided as appropriate. those recipes here the next time I decide to make them.
+
+ I'm a very average home cook but I really enjoy the act of cooking. +
+diff --git a/src/posts/features.md b/src/posts/features.md deleted file mode 100644 index eb2e6f5..0000000 --- a/src/posts/features.md +++ /dev/null @@ -1,171 +0,0 @@ ---- -title: Under Construction! -subtitle: Markdown Patterns -date: 2023-12-30T00:00:00-08:00 -tags: just-for-reference ---- - -In addition to basic markdown features like _emphasis,_ **strong text,** -[links](http://example.com), and `inline code`, the tufte-markdown parser pays special -attention to figures and footnotes. The official -[Tufte-CSS site](https://edwardtufte.github.io/tufte-css/) explains the more advanced -features in detail, but we're trying to poke and prod things a bit to eliminate some of -the manual HTML entry that's still necessary. - -## Sidenotes and Marginalia - -Here's where things really get exciting. Markdown footnotes[^1] are a convenient way to -move digressions and asides out of the primary flow of a document, but shoving them to -the bottom of a long page is no good, either. In his books, Tufte instead uses -sidenotes, which keep the asides as close as possible to the related text without -breaking the flow. - -[^1]: - [Footnotes](https://www.markdownguide.org/extended-syntax#footnotes) weren't - actually part of the original markdown spec, but they've become a popular bolt-on. - -During a heated yak-shaving conversation about enhancements to our site,[^2] -[Karen McGrane](https://karenmcgrane.com) pointed -[Ethan Marcotte](https://ethanmarcotte.com) and I to an excellent post by Koos -Looijesteijn outlining -[_his_ approach to sidenotes](https://www.kooslooijesteijn.net/blog/semantic-sidenotes). -That in turn led to Gwern Branwen's impressive -[evaluation of damn near every sidenote implementation on the web](https://www.gwern.net/Sidenotes). -And that, in turn, led me to tufte-markdown, which is how we got into this mess. - -[^2]: - Karen and Ethan are my partners in crime at [Autogram](https://autogram.is), a - freshly-minted strategic consultancy for companies with complicated content needs. - If "establishing a consistent domain vocabulary and grammar to streamline design - system iteration for complex high-variance content" sounds thrilling to you, hire - us. - -A few specific formats are supported, with different results: `[^foonote-id]` markers in -a paragraph are paired with `[^footnote]: Footnote text` below the paragraph in which -they appear; they get numbered automatically.[^eg] For a _margin note,_ with no -accompanying number, just add a goofy symbol before the footnote text like so: - -``` -[^footnote]: {-} This text will appear in the margin without a number. -``` - -Completely inlined sidenotes — ones without explicit markers in the rest of the text — -can be done like so: - -``` -[^ {-} A little fussy, but not bad once you get used to it.] -``` - -[^eg]: For example, this little guy. - -## LaTeX - -Here is a different format displayed equation: $ e^{i\pi} + 1 = 0 $ - -And here is a different format displayed equation: - -$$ -\int_{-\infty}^\infty e^{-x^2} dx=\sqrt{\pi} -$$ - -## Blockquotes and Epigraphs - -Blockquotes are handled as one would expect: - -[^marlene] - -> I love quotations because it is a joy to find thoughts one might have, beautifully -> expressed with much authority by someone recognized wiser than oneself. —Marlene -> Dietrich - -[^marlene]: - {-} Dietrich as Monica Teasdale in _No Highway in the Sky_ (1951). Not really. - -Epigraphs, however, are a slightly different treatment common in Tufte's chapter -openings. They provide a bit of extra styling for the attribution line. - -