From 625932968a52c769ead3ff2e780902da8985386d Mon Sep 17 00:00:00 2001 From: Nathan Upchurch Date: Thu, 6 Feb 2025 11:20:54 -0500 Subject: [PATCH] Update Home --- Home.md | 50 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/Home.md b/Home.md index 89e007f..48091a2 100644 --- a/Home.md +++ b/Home.md @@ -1,12 +1,11 @@ # Wiki Home ## About ### Planned Features -* Image gallery -* Audio Embedding -* Invidious embedding -* Blockquote styling +* ~~Image gallery~~ +* ~~Audio Embedding~~ +* ~~Blockquote styling~~ * /uses -* Blogroll +* ~~Blogroll~~ * [Not by AI](https://notbyai.fyi/) badge on posts * Résumé @@ -57,8 +56,8 @@ For example: ``` Embedded toots are live, so if the toot or instance is not reachable, the toot will not be shown on the page. I haven't built any error handling for this yet. -#### Adding comments via Mastodon -Simply add a toot ID to a post's frontmatter using the `mastodon_id` key in order to enable commenting via Mastodon: +#### Adding link to discuss on Mastodon +Simply add a toot ID to a post's frontmatter using the `mastodon_id` key in order to enable a link to discuss on Mastodon: ``` mastodon_id: "112409293978326719" ``` @@ -72,13 +71,32 @@ Embed audio using the custom "audio" shortcode: {% audio "Title'", "Artist", "audioFile.mp3", "coverImage.webp" %} ``` -#### Add a cowsay to a post -You can use the `cowsay` filter to output a captioned `
` containing a copy of an output from the cowsay program. Instead of using the usual three backticks, this method is accessible to visually impaired users thanks to the automatic captioning. Here's how to do it: +#### Image Galleries +Specify galleries in `_/data/galleries.js`. -1. Add a copy of the cowsay output you'd like to display to _data/cowList.js. Be sure and escape any backslashes. -2. Use the filter like this: `{{ cowList.name | cowsay | safe }}`. - -The `safe` filter is necessary so that Eleventy doesn't sanitize our HTML. - -#### Image Galleries: -Specify galleries in `_/data/galleries.js`. \ No newline at end of file +#### Quizzes +Quizzes can be specified using markdown files in `/content/quizzes`. The structure should look like this: +```json +--- +title: "" +description: "" +date: 2025-02-04 +imageURL: "" +imageAlt: "" +consequences: + - title: "" + points: 0 + spiel: "" + image: "" + imageAlt: "" +questions: + - title: "" + image: "" + imageAlt: "" + imageCaption: "" + answers: + - name: "" + points: 0 +--- +This is a great quiz that I'm sure you'll have fun taking. Let me tell you all about it… +``` \ No newline at end of file