Update Home

Nathan Upchurch 2025-02-06 11:20:54 -05:00
parent 62d65f96e4
commit 625932968a

50
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 `<figure>` 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`.
#### 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…
```