2024-01-24 13:00:06 -06:00
2024-01-23 11:38:50 -06:00
2024-01-23 11:38:50 -06:00
2024-01-24 13:00:06 -06:00
2024-01-24 13:00:06 -06:00
2023-01-23 11:37:44 -06:00
2018-01-16 21:08:47 -06:00
2022-05-13 16:11:39 -05:00
2023-08-01 16:36:56 -05:00
2023-01-24 10:38:55 -06:00
2023-08-01 16:36:56 -05:00
2024-01-02 16:48:28 -06:00
2023-07-05 11:06:31 -05:00

nathanupchurch.com

My blog, based on the very helpful eleventy-base-blog v8.

Documentation

Metadata

Site metadata such as author info, title, etc. lives in _data/metadata.js. Links on the /me page, and default post images are also configured here.

How to add a cowsay to a post with the custom nunjucks filter

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:

  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.

Description
Languages
JavaScript 50.9%
Nunjucks 25%
CSS 22.2%
XSLT 1.8%
HTML 0.1%