From 8a097206fcbf3931614ad0b36a8ad4ddc9679f27 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 23 Jun 2022 01:48:06 -0400 Subject: themes/default/layouts: Translate raw into generated content Reuse short code for markdown embeds. --- content/canory/messages/markdown.md | 10 +++++----- content/canory/messages/selfdestruct.md | 6 ++---- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'content') diff --git a/content/canory/messages/markdown.md b/content/canory/messages/markdown.md index 2fbffb0..032f5e5 100644 --- a/content/canory/messages/markdown.md +++ b/content/canory/messages/markdown.md @@ -7,9 +7,9 @@ author = "canory" [//]: # "That's a comment alright, hiding in plain sight." -The `metadata` :arrow_up: has a [`raw`](/raw/canory/messages/markdown.md) link -to the [`markdown`](https://www.markdownguide.org/cheat-sheet/) that generates -this message --- might as well show my internals. Casual users will frown, power users -will delight. +The `metadata` :arrow_up: has a link to the raw +[Markdown](https://www.markdownguide.org/cheat-sheet/) file {{< markdown >}} +that generates this message --- might as well show my internals. Casual users +will frown, power users will delight. -{{< self "/raw/canory/messages/markdown.md" >}} +{{< markdown embed=true >}} diff --git a/content/canory/messages/selfdestruct.md b/content/canory/messages/selfdestruct.md index a793638..c4bb726 100644 --- a/content/canory/messages/selfdestruct.md +++ b/content/canory/messages/selfdestruct.md @@ -22,9 +22,7 @@ controversy. This is not to be indexed --- search engine bots {{< smallcaps "shall not pass" >}} (hopefully), neither will this message propogate through `JSON` and `RSS` feeds. -This -[hidden message](/raw/canory/messages/selfdestruct.md "hidden in plain sight") -will only disappear in my timeline because I'm an intergalactic time traveler. - +This {{< markdown title="hidden in plain sight" >}} will only disappear in my +timeline because I'm an intergalactic time traveler. ![Isaac Asimov](/canory/media/internet-is-serious.jpg) -- cgit v1.2.3