Compare commits

51 Commits
pages ... main

Author SHA1 Message Date
a6ee200965 build 2026-05-06 14:44:00 -07:00
c6a09ba2ea new listing zbennoui 2026-05-06 14:43:43 -07:00
4828e2c99f build 2026-05-06 11:08:22 -07:00
a05f79c780 wording tweak for zillion 2026-05-06 11:08:06 -07:00
6b9ce45c68 build 2026-05-06 10:51:42 -07:00
95df74bda6 new listing zillion science 2026-05-06 10:51:33 -07:00
814219308d build 2026-05-06 10:45:33 -07:00
4428a7130b new listing zillion writing 2026-05-06 10:45:13 -07:00
4987b37fe6 build 2026-05-06 09:27:56 -07:00
dd415df862 requests page and styling 2026-05-06 09:27:10 -07:00
73c195cab2 build 2026-05-06 09:02:12 -07:00
7d6c64e964 continue building out request infrastructure 2026-05-06 08:59:44 -07:00
2615556003 build 2026-05-06 08:28:25 -07:00
c2ff13327c start to work in requests by cleaning up listing code 2026-05-06 08:28:07 -07:00
3f20d7317b build 2026-05-06 07:42:37 -07:00
66364f8e40 janeadams madgeface daily for may 6th 2026-05-06 07:42:19 -07:00
5312c4a37a build 2026-05-06 07:28:59 -07:00
bfb03575fb rename ads -> offers, add new listing (syd) 2026-05-06 07:28:25 -07:00
439e207539 sort by title, add og image and alt 2026-05-05 20:20:07 -07:00
b7aa9a9a62 fix category name on submit page 2026-05-05 19:54:39 -07:00
2d1bfc0272 slightly nicer favicon 2026-05-05 17:17:45 -07:00
9b3b15ab2e build 2026-05-05 17:14:05 -07:00
72d5f8b2be fallback fonts 2026-05-05 17:13:50 -07:00
e3f062d335 rename category 2026-05-05 17:11:39 -07:00
159aac612a change source code link in footer 2026-05-05 17:08:24 -07:00
3a43ed9f68 add site folder in prep for hosting 2026-05-05 14:31:46 -07:00
a0a1c04651 Merge branch 'pages' 2026-05-05 12:47:40 -07:00
98d5544d0a add date to robotistry listing 2026-05-05 12:46:38 -07:00
e9c5c32026 add name change warning and tweak some styles to fit 2026-05-05 12:46:24 -07:00
a4338717e4 bold rate 2026-05-05 12:42:03 -07:00
2904872e34 more title changing 2026-05-05 12:41:43 -07:00
e89caf9423 listing robotistry 2026-05-05 12:41:23 -07:00
57fa31ba45 listing robotistry 2026-05-05 12:40:58 -07:00
1ecd538c90 bold rate 2026-05-05 12:40:42 -07:00
f3f9c4d70e Merge branch 'pages' 2026-05-05 08:24:54 -07:00
c7b6f1a28d favicon line? can we fix it? 2026-05-05 08:19:29 -07:00
a2d4dc99fb start to switch to fedilearns 2026-05-05 08:17:28 -07:00
fdd3db4e59 new listing wizardofdocs 2026-05-05 07:43:47 -07:00
40509f436c minor wording tweak 2026-05-04 21:20:58 -07:00
90521346be adjust rate 2026-05-04 21:06:05 -07:00
58847c8942 new listing durian 2026-05-04 18:03:41 -07:00
2527f51ae4 new listing 2026-05-04 16:11:58 -07:00
6348f33548 add rate to template 2026-05-04 16:11:19 -07:00
fd80653ab4 new listings 2026-05-04 15:31:21 -07:00
3ee657a7b9 new listing 2026-05-04 11:41:23 -07:00
84a13786d7 404 page with no apostrophe in the title 2026-05-04 11:17:53 -07:00
199c6bef66 404 page 2026-05-04 11:17:05 -07:00
2d3a6a8ce4 remove rsync script as it's no longer needed 2026-05-04 11:16:51 -07:00
e1f4cac12d ugh 2026-05-04 11:12:27 -07:00
07495688f3 remove node modules folder woops 2026-05-04 11:07:15 -07:00
47d1f3ef21 woodpecker file 2026-05-04 11:03:26 -07:00
1755 changed files with 11024 additions and 327452 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
_live _live
_site node_modules/

59
.woodpecker.yml Normal file
View File

@ -0,0 +1,59 @@
# NodeJS / 11ty on Woodpecker to codeberg pages
#
# This file would typically be .woodpecker.yml in the root of your repository.
#
# Takes a repository with 11ty source, generates the static site and
# pushes the result to codeberg pages
#
#
# SECRETS
# https://woodpecker-ci.org/docs/usage/secrets
# CBTOKEN needs a codeberg access token as secret in woodpecker config
# CBEMAIL with email address for git config
# SOURCEREPO must be replaced with the source repo
# DESTREPO must be replaced with the target codeberg pages repo
# CBUSERNAME must be replaced with the user/org
#
#
# We also assume a domains file in the source repo that gets copied to
# .domains in the target repo so codeberg pages works for custom domains
steps:
- name: build
when:
- branch: pages
event: push
- event: manual
image: node
environment:
CBUSERNAME: inherentlee
SOURCEREPO: fedi-skillshares-src
DESTREPO: fedi-skillshares
CBTOKEN:
from_secret: CBTOKEN
CBEMAIL:
from_secret: CBEMAIL
commands:
# Avoid permission denied errors
- chmod -R a+w .
# Set up git in a working way
- git config --global --add safe.directory /woodpecker/src/codeberg.org/$CBUSERNAME/$SOURCEREPO/_site
- git config --global user.email "$CBEMAIL"
- git config --global user.name "CI Builder"
# clone and move the target repo
- git clone -b pages https://codeberg.org/$CBUSERNAME/$DESTREPO.git _site
- chmod -R a+w _site
- cd _site
# Prepare for push
- git remote set-url origin https://$CBTOKEN@codeberg.org/$CBUSERNAME/$DESTREPO.git
- cd ..
# Run 11ty build stage
- npm install
- npm run build-codeberg
# Only needed for custom domains
#- cp domains _site/.domains
# Push to target
- cd _site
- git add --all
- git commit -m "Woodpecker CI 11ty Build at $( env TZ=America/Chicago date +"%Y-%m-%d %X %Z" )"
- git push -u origin pages

View File

@ -1,7 +1,9 @@
import { DateTime } from "luxon"; import { DateTime } from "luxon";
export default function(eleventyConfig) { export default function(eleventyConfig) {
/* Filter by date */
eleventyConfig.addFilter("filterByDate", (listings, date) => { eleventyConfig.addFilter("filterByDate", (listings, date) => {
if (date === null) return listings;
date = DateTime.fromISO(date, { zone: "utc" }); date = DateTime.fromISO(date, { zone: "utc" });
return listings.filter((listing) => { return listings.filter((listing) => {
let postDate = DateTime.fromJSDate(listing.data.date, { zone: "utc" }); let postDate = DateTime.fromJSDate(listing.data.date, { zone: "utc" });
@ -9,12 +11,17 @@ export default function(eleventyConfig) {
}); });
}) })
/* Filter by tag */
eleventyConfig.addFilter("filterByTag", (listings, tag) => {
return listings.filter(listing => listing.data.tags.includes(tag));
});
// Return the keys used in an object // Return the keys used in an object
eleventyConfig.addFilter("getKeys", target => { eleventyConfig.addFilter("getKeys", target => {
return Object.keys(target); return Object.keys(target);
}); });
/* */ /* Taglines for each category */
eleventyConfig.addFilter("getTagline", tag => { eleventyConfig.addFilter("getTagline", tag => {
let tagline; let tagline;
switch (tag) { switch (tag) {
@ -33,7 +40,7 @@ export default function(eleventyConfig) {
case "food and drink": case "food and drink":
tagline = "good eatin'"; tagline = "good eatin'";
break; break;
case "history and science": case "history science and languages":
tagline = "book learnin'" tagline = "book learnin'"
break; break;
case "miscellany and more": case "miscellany and more":
@ -68,11 +75,17 @@ export default function(eleventyConfig) {
/* Filter out structural tags */ /* Filter out structural tags */
eleventyConfig.addFilter("removeCoreTags", (tags) => { eleventyConfig.addFilter("removeCoreTags", (tags) => {
return tags.filter(tag => ["all", "ads", "daily"].indexOf(tag) === -1); return tags.filter(tag => ["all", "daily", "offers", "requests"].indexOf(tag) === -1);
}); });
/* What it says on the tin */ /* What it says on the tin */
eleventyConfig.addFilter("sortAlphabetically", strings => eleventyConfig.addFilter("sortAlphabetically", strings =>
(strings || []).sort((b, a) => b.localeCompare(a)) (strings || []).sort((b, a) => b.localeCompare(a))
); );
/* Sort alphabetically by item title */
eleventyConfig.addFilter("sortAlphabeticallyByTitle", collection => {
collection.sort((b, a) => b.data.title.localeCompare(a.data.title));
return collection;
});
}; };

View File

@ -1,6 +1,6 @@
export default { export default {
title: "Fediverse Skillshare Classifieds", title: "FediLearns",
description: "Skillshare listings for the Fediverse", description: "Learning together, by and for the fediverse",
url: "https://inherentlee.codeberg.page/fedi-skillshares", url: "https://fedilearns.fyi",
author: "Lee Cattarin" author: "Lee Cattarin"
} }

22
_includes/daily.njk Normal file
View File

@ -0,0 +1,22 @@
{% css %}
section > h2 {
background-color: var(--color-gray);
font-size: 2rem;
text-align: center;
margin: 5rem 0 1rem;
}
{% endcss %}
<section>
<h2>Offers</h2>
{% set category = "offers" %}
{% include "listings.njk" %}
</section>
<section>
<h2>Requests</h2>
{% set category = "requests" %}
{% include "listings.njk" %}
</section>

View File

@ -7,11 +7,11 @@
<a href="/daily/">Listings by day</a> <a href="/daily/">Listings by day</a>
</li> </li>
<li> <li>
<a href="/feed.xml">RSS</a> <a href="https://heckin.technology/inherentlee/fedilearns"
target="_blank">source code</a>
</li> </li>
<li> <li>
<a href="https://heckin.technology/inherentlee/fedi-classifieds" <a href="/feed.xml">RSS</a>
target="_blank">source code</a>
</li> </li>
</ul> </ul>
</footer> </footer>

View File

@ -2,9 +2,14 @@
<nav> <nav>
<ul> <ul>
<li><a id="skip" href="#main">skip to content</a></li> <li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/" {% if page.url === "/" %}aria-current="page"{% endif %}>home page</a></li> <li><a href="/" {% if page.url == "/" %}aria-current="page"{% endif %}
<li><a href="/about/" {% if page.url === "/about/" %}aria-current="page"{% endif %}>about this site</a></li> >home page</a></li>
<li><a href="/submit/" {% if page.url === "/submit/" %}aria-current="page"{% endif %}>submit a listing</a></li> <li><a href="/about/" {% if page.url == "/about/" %}aria-current="page"{% endif %}
>about this site</a></li>
<li><a href="/submit/" {% if page.url == "/submit/" %}aria-current="page"{% endif %}
>submit a listing</a></li>
<li><a href="/requests/" {% if page.url == "/requests/" %}aria-current="page"{% endif %}
>requests for help</a></li>
</ul> </ul>
</nav> </nav>
</header> </header>

View File

@ -3,6 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
{% if title %} {% if title %}
{% set pageTitle %}{{ title }} | {{ metadata.title }}{% endset %} {% set pageTitle %}{{ title }} | {{ metadata.title }}{% endset %}
@ -16,6 +17,8 @@
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:description" content="{{ description or metadata.description }}" /> <meta property="og:description" content="{{ description or metadata.description }}" />
<meta property="og:site_name" content="{{ metadata.title }}" /> <meta property="og:site_name" content="{{ metadata.title }}" />
<meta property="og:image" content="/favicon.ico" />
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed." />
<meta name="generator" content="{{ eleventy.generator }}"> <meta name="generator" content="{{ eleventy.generator }}">

View File

@ -1,4 +1,4 @@
<div class="listing{% if listing.data.draft %} draft{% endif %}"> <div class="listing">
<h3>{{ listing.data.title }}</h3> <h3>{{ listing.data.title }}</h3>
<p class="blurb"> <p class="blurb">
<strong> <strong>
@ -7,7 +7,7 @@
offers:</strong> {{ listing.data.blurb }} offers:</strong> {{ listing.data.blurb }}
</p> </p>
{% if listing.data.rate %} {% if listing.data.rate %}
<p>Suggested rate: {{ listing.data.rate }}</p> <p><strong>Suggested rate:</strong> {{ listing.data.rate }}</p>
{% endif %} {% endif %}
<p class="listed-on"> <p class="listed-on">
listed on <time datetime="{{ listing.date | htmlDateString }}" listed on <time datetime="{{ listing.date | htmlDateString }}"

View File

@ -1,14 +1,15 @@
<div id="listings"> <div class="listings">
{% for tag in collections | getKeys | removeCoreTags | sortAlphabetically %} {% for tag in collections | getKeys | removeCoreTags | sortAlphabetically %}
<div class="category"> <div class="category">
<div class="category-title"> <div class="category-title">
<h2>{{ tag }}</h2> <h2>{{ tag }}</h2>
<p>{{ tag | getTagline }}</p> <p>{{ tag | getTagline }}</p>
</div> </div>
{% if collections[tag] | filterByDate(today) | length == 0 %} {% set listings = collections[tag] | filterByDate(day) | filterByTag(category) %}
{% if listings | length == 0 %}
<p>No listings.</p> <p>No listings.</p>
{% endif %} {% endif %}
{% for listing in collections[tag] | filterByDate(today) %} {% for listing in listings | sortAlphabeticallyByTitle %}
{% include "listing.njk" %} {% include "listing.njk" %}
{% endfor %} {% endfor %}
</div> </div>

244
_site/404.html Normal file
View File

@ -0,0 +1,244 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Page not found | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="Page not found | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="page-not-found">Page not found</h1>
<p>Go <a href="/">home</a>.</p>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/404.html` was built on 2026-05-06T21:43:51.315Z -->
</body>
</html>

297
_site/about/index.html Normal file
View File

@ -0,0 +1,297 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>About the Classifieds | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="About the Classifieds | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/" aria-current="page">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="about-the-classifieds">About the Classifieds</h1>
<p>
We all have something to share. So let's help others learn.
</p>
<p>
<a href="/submit/">Post a listing</a> for your skill and someone might reach
out for help! <a href="/">Read the listings</a> and see if there's things you
want to know.
</p>
<h2 id="why-not-a-hashtag">Why not a hashtag?</h2>
<p>
I... I love fedi, I really do, but we all know that federation has its flaws.
One such flaw is that discovery can be limited, and looking up a hashtag is
not really a guarantee that you'll see all the posts under that hashtag. While
I was looking at this concept, someone told me about the hashtag
<a href="https://flipping.rocks/tags/knowItTeachIt" target="_blank">#knowItTeachIt</a>
and of course, I promptly went to check it out. And saw a single post
from 2023. Apparently there's more in that tag, but my server doesn't
know that. So yeah. Maybe more than a hashtag, then.
</p>
<h2 id="is-this-paid">Is this paid?</h2>
<p>
Some listings may have a stated rate, whether that is monetary, skill swap, or free.
If there's no stated rate, free is assumed. Feel free to talk to the person/people
you reach out to about compensation!
</p>
<h2 id="how-do-i-take-down-my-listing">How do I take down my listing?</h2>
<p>
Message me and I'll remove it.
</p>
<h2 id="who-made-this">Who made this?</h2>
<p>
Hi, I'm Lee! I like to make silly little websites. You can find all my contact
methods on the site linked to my name in the footer, or just
<a href="https://flipping.rocks/@inherentlee" target="_blank">send me a message
on fedi</a>.
</p>
<h2 id="colophon">Colophon</h2>
<p>
Built with <a href="https://11ty.dev" target="_blank">Eleventy v3.1.5</a>,
and <a href="https://declare-ai.org/1.0.0/none.html" target="_blank">without the
aid of generative AI</a>. Hosted by <a href="https://heckin.technology/" target="_blank">heckin.technology</a>.
</p>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/about/` was built on 2026-05-06T21:43:51.315Z -->
</body>
</html>

View File

@ -0,0 +1,687 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>April 29th, 2026 | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="April 29th, 2026 | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>.listings {
columns: 3;
}
@media (max-width: 1200px) {
.listings {
columns: 2;
}
}
@media (max-width: 650px) {
.listings {
columns: 1;
}
}
/* jump links */
#jump-links {
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: solid var(--color-pink);
}
#jump-links h2,
#jump-links li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
font-weight: normal;
}
#jump-links * {
display: inline;
}
#jump-links a {
text-decoration: none;
}
#jump-links li {
list-style: none;
margin: 0;
}
#jump-links li:not(:last-child)::after {
content: "..." / "";
}
/* categories */
.category {
break-inside: avoid;
}
.category-title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
}
/* references highlighting */
/* drawn from https://aarontgrogg.com/blog/2012/05/18/pure-css-highlight-for-link-target/ */
.category-title:has(h2:target) {
animation: hilite 2.5s;
}
@keyframes hilite {
0% {background-color: var(--color-gray);}
10% {background-color: var(--color-cyan-flipped);}
100% {background-color: var(--color-gray);}
}
/* remove animation for reduced motion viewers */
@media (prefers-reduced-motion: reduce) {
.category-title:has(h2:target) {
animation: none;
color: var(--color-cyan);
}
}
.category-title h2 {
text-align: left;
scroll-margin-top: 4rem;
font-family: "Bebas Neue";
margin: 0;
}
.category-title p {
text-align: right;
font-weight: bold;
margin: 0;
}
/* individual listings */
.listing,
.request {
margin-bottom: 1rem;
}
.listing strong,
.request strong {
font-weight: bold;
}
.blurb {
margin-bottom: .5rem;
}
.listed-on {
font-size: .85rem;
text-align: right;
}
/* Requests page */
.title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
display: flex;
justify-content: space-between;
flex-flow: row wrap;
}
.title h2 {
text-transform: capitalize;
margin: 0;
}
.title p {
font-family: "Bebas Neue", sans-serif;
font-size: 1.5rem;
margin: 0;
text-align: right;
margin-left: auto;
}
section > h2 {
background-color: var(--color-gray);
font-size: 2rem;
text-align: center;
margin: 5rem 0 1rem;
}
:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="april-29th-2026">April 29th, 2026</h1>
<section>
<h2 id="offers">Offers</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology">technology</h2>
<p>computer touchin&#39;</p>
</div>
<div class="listing">
<h3 id="introductory-web-development-and-terminal-basics">introductory web development and terminal basics</h3>
<p class="blurb">
<strong>
<a href="https://flipping.rocks/@inherentlee" target="_blank">@inherentlee@flipping.rocks</a>
offers:</strong> I&#39;m happy to help you set up a personal or hobby site with HTML, CSS, and JS basics, or maybe a static site generator! Alternately, I&#39;ll talk about git and the terminal.
</p>
<p><strong>Suggested rate:</strong> free or skill swap</p>
<p class="listed-on">
listed on <time datetime="2026-04-29">April 29, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
<section>
<h2 id="requests">Requests</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors-2">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts-2">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health-2">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business-2">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink-2">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages-2">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life-2">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more-2">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy-2">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology-2">technology</h2>
<p>computer touchin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature-2">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/daily/2026-04-29/` was built on 2026-05-06T21:43:51.311Z -->
</body>
</html>

View File

@ -0,0 +1,787 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>May 1st, 2026 | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="May 1st, 2026 | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>.listings {
columns: 3;
}
@media (max-width: 1200px) {
.listings {
columns: 2;
}
}
@media (max-width: 650px) {
.listings {
columns: 1;
}
}
/* jump links */
#jump-links {
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: solid var(--color-pink);
}
#jump-links h2,
#jump-links li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
font-weight: normal;
}
#jump-links * {
display: inline;
}
#jump-links a {
text-decoration: none;
}
#jump-links li {
list-style: none;
margin: 0;
}
#jump-links li:not(:last-child)::after {
content: "..." / "";
}
/* categories */
.category {
break-inside: avoid;
}
.category-title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
}
/* references highlighting */
/* drawn from https://aarontgrogg.com/blog/2012/05/18/pure-css-highlight-for-link-target/ */
.category-title:has(h2:target) {
animation: hilite 2.5s;
}
@keyframes hilite {
0% {background-color: var(--color-gray);}
10% {background-color: var(--color-cyan-flipped);}
100% {background-color: var(--color-gray);}
}
/* remove animation for reduced motion viewers */
@media (prefers-reduced-motion: reduce) {
.category-title:has(h2:target) {
animation: none;
color: var(--color-cyan);
}
}
.category-title h2 {
text-align: left;
scroll-margin-top: 4rem;
font-family: "Bebas Neue";
margin: 0;
}
.category-title p {
text-align: right;
font-weight: bold;
margin: 0;
}
/* individual listings */
.listing,
.request {
margin-bottom: 1rem;
}
.listing strong,
.request strong {
font-weight: bold;
}
.blurb {
margin-bottom: .5rem;
}
.listed-on {
font-size: .85rem;
text-align: right;
}
/* Requests page */
.title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
display: flex;
justify-content: space-between;
flex-flow: row wrap;
}
.title h2 {
text-transform: capitalize;
margin: 0;
}
.title p {
font-family: "Bebas Neue", sans-serif;
font-size: 1.5rem;
margin: 0;
text-align: right;
margin-left: auto;
}
section > h2 {
background-color: var(--color-gray);
font-size: 2rem;
text-align: center;
margin: 5rem 0 1rem;
}
:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="may-1st-2026">May 1st, 2026</h1>
<section>
<h2 id="offers">Offers</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<div class="listing">
<h3 id="home-gardening-including-low-spoons">🌿Home gardening - including low spoons 🪴🧑🏼‍🦽</h3>
<p class="blurb">
<strong>
<a href="https://zeroes.ca/@NilaJones" target="_blank">@NilaJones@zeroes.ca</a>
offers:</strong> Want to grow a few herbs or flowers on your balcony? Or enough food to feed your family for a year? Something in between? I&#39;ve been doing and teaching organic gardening for a long long time, and I love to answer questions or brainstorm together 🌿
</p>
<p class="listed-on">
listed on <time datetime="2026-05-01">May 1, 2026</time>
</p>
</div>
<div class="listing">
<h3 id="dog-training">Dog training</h3>
<p class="blurb">
<strong>
<a href="https://sunny.garden/@Goodworkdog" target="_blank">@Goodworkdog@sunny.garden</a>
offers:</strong> I can advise you on animal behavior, enrichment, problem solving, multi-pet homes, dog sports, and changes in home life. I have multiple certifications. I cant offer veterinary advice, but I will tell you when to see a vet instead of a trainer.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-01">May 1, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<div class="listing">
<h3 id="making-the-respirator-and-masking-experience-better">Making the Respirator and Masking Experience Better</h3>
<p class="blurb">
<strong>
<a href="https://kind.social/@Texan_Reverend" target="_blank">@Texan_Reverend@kind.social</a>
offers:</strong> Are you interested in a mask or respirator to protect you from wildfire smoke, pathogens, construction dust, or allergens? Are people close to you asking that you mask up, but it&#39;s uncomfortable or hard to get in the habit? I can help with... Finding models of a good size and shape. Adjustments to achieve a good fit and seal. Safe and effective modifications. Fun and engaging decorations. Learning more about how respirators work and how they&#39;re tested.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-01">May 1, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="business">business</h2>
<p>makin&#39; money</p>
</div>
<div class="listing">
<h3 id="answers-to-your-silly-marketing-questions">Answers to Your Silly Marketing Questions</h3>
<p class="blurb">
<strong>
<a href="https://hachyderm.io/@mariyadelano" target="_blank">@mariyadelano@hachyderm.io</a>
offers:</strong> I want to answer marketing questions that you have been too afraid to ask. The sillier your question, the better! Examples for inspiration... why would I want to collect peoples emails for a list? Why do SEO blogs look like that? How did LinkedIn posts become this particular kind of cringe? Why does nobody think my website is the coolest thing since sliced bread? Be brave and maybe we will all learn something.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-01">May 1, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<div class="listing">
<h3 id="ask-a-math-teacher">Ask a math teacher</h3>
<p class="blurb">
<strong>
<a href="https://chaosfem.tw/@TonyaMarie" target="_blank">@TonyaMarie@chaosfem.tw</a>
offers:</strong> Need help with your kid&#39;s homework? Going back to school? Retired teacher will help with your math questions up through basic college level!
</p>
<p class="listed-on">
listed on <time datetime="2026-05-01">May 1, 2026</time>
</p>
</div>
<div class="listing">
<h3 id="pure-math-q-and-a">pure math Q&amp;A</h3>
<p class="blurb">
<strong>
<a href="https://kolektiva.social/@AdrianRiskin" target="_blank">@AdrianRiskin@kolektiva.social</a>
offers:</strong> I am happy to help with K-12 math, undergraduate pure math, e.g. college algebra, precalc, calc, discrete, intro to proof, abstract algebra, number theory, analysis, etc. Also graduate level graph theory.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-01">May 1, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<div class="listing">
<h3 id="learn-lockpicking-with-alice">Learn Lockpicking with Alice</h3>
<p class="blurb">
<strong>
<a href="https://lgbtqia.space/@alice" target="_blank">@alice@lgbtqia.space</a>
offers:</strong> I&#39;ve been an expert at opening things in unconventional ways for many years, and I&#39;m always happy to talk locks, lockpicking/bypassing, and other security-related topics. I have short lessons under the #LearnLockpickingWithAlice hashtag on Fedi.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-01">May 1, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology">technology</h2>
<p>computer touchin&#39;</p>
</div>
<div class="listing">
<h3 id="mobile-device-hacking-advice">Mobile device hacking advice</h3>
<p class="blurb">
<strong>
<a href="https://based.zone/@rpgwaiter" target="_blank">@rpgwaiter@based.zone</a>
offers:</strong> I&#39;ve been exploiting/reverse engineering mobile devices for over 10 years. I&#39;m always happy to discuss tooling, techniques, or anything else related to hacking mobile devices. Want to know how a certain app works? I have experience in everything from mitm traffic capture to memory hacking with Frida and static binary analysis, feel free to ask!
</p>
<p class="listed-on">
listed on <time datetime="2026-05-01">May 1, 2026</time>
</p>
</div>
<div class="listing">
<h3 id="what-the-hell-is-c">what the hell is C?</h3>
<p class="blurb">
<strong>
<a href="https://sweet.succubi.services/twinkle" target="_blank">@twinkle@sweet.succubi.services</a>
offers:</strong> Have you wanted to get into programming but don&#39;t know where to start? Do you know a programming language already but feel like you don&#39;t get Why Things Are Like This? I myself started out with the C programming language-- and I&#39;d love to pass on the knowledge to more people, because I think a good programming lesson is rare nowadays!
</p>
<p class="listed-on">
listed on <time datetime="2026-05-01">May 1, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
<section>
<h2 id="requests">Requests</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors-2">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts-2">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health-2">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business-2">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink-2">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages-2">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life-2">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more-2">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy-2">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology-2">technology</h2>
<p>computer touchin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature-2">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/daily/2026-05-01/` was built on 2026-05-06T21:43:51.311Z -->
</body>
</html>

View File

@ -0,0 +1,785 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>May 2nd, 2026 | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="May 2nd, 2026 | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>.listings {
columns: 3;
}
@media (max-width: 1200px) {
.listings {
columns: 2;
}
}
@media (max-width: 650px) {
.listings {
columns: 1;
}
}
/* jump links */
#jump-links {
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: solid var(--color-pink);
}
#jump-links h2,
#jump-links li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
font-weight: normal;
}
#jump-links * {
display: inline;
}
#jump-links a {
text-decoration: none;
}
#jump-links li {
list-style: none;
margin: 0;
}
#jump-links li:not(:last-child)::after {
content: "..." / "";
}
/* categories */
.category {
break-inside: avoid;
}
.category-title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
}
/* references highlighting */
/* drawn from https://aarontgrogg.com/blog/2012/05/18/pure-css-highlight-for-link-target/ */
.category-title:has(h2:target) {
animation: hilite 2.5s;
}
@keyframes hilite {
0% {background-color: var(--color-gray);}
10% {background-color: var(--color-cyan-flipped);}
100% {background-color: var(--color-gray);}
}
/* remove animation for reduced motion viewers */
@media (prefers-reduced-motion: reduce) {
.category-title:has(h2:target) {
animation: none;
color: var(--color-cyan);
}
}
.category-title h2 {
text-align: left;
scroll-margin-top: 4rem;
font-family: "Bebas Neue";
margin: 0;
}
.category-title p {
text-align: right;
font-weight: bold;
margin: 0;
}
/* individual listings */
.listing,
.request {
margin-bottom: 1rem;
}
.listing strong,
.request strong {
font-weight: bold;
}
.blurb {
margin-bottom: .5rem;
}
.listed-on {
font-size: .85rem;
text-align: right;
}
/* Requests page */
.title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
display: flex;
justify-content: space-between;
flex-flow: row wrap;
}
.title h2 {
text-transform: capitalize;
margin: 0;
}
.title p {
font-family: "Bebas Neue", sans-serif;
font-size: 1.5rem;
margin: 0;
text-align: right;
margin-left: auto;
}
section > h2 {
background-color: var(--color-gray);
font-size: 2rem;
text-align: center;
margin: 5rem 0 1rem;
}
:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="may-2nd-2026">May 2nd, 2026</h1>
<section>
<h2 id="offers">Offers</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<div class="listing">
<h3 id="intimacy-with-plants-discovering-their-unique-features">Intimacy with Plants - Discovering Their Unique Features</h3>
<p class="blurb">
<strong>
<a href="https://thicc.horse/@taq" target="_blank">@taq@thicc.horse</a>
offers:</strong> Not focused on plant care or identification, but building curiosity and awareness of the features of plants which help with identification. Enjoy walks more by taking the time to explore the differences in each plant. Leaf shape, texture, size and growth patterns, symmetries. Soon you&#39;ll be recognizing old friends from across the street!
</p>
<p class="listed-on">
listed on <time datetime="2026-05-02">May 2, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<div class="listing">
<h3 id="art-design-critique-and-encouragement">Art/design critique and encouragement</h3>
<p class="blurb">
<strong>
<a href="https://kind.social/@moss" target="_blank">@moss@kind.social</a>
offers:</strong> I am a visual jack of all trades, pretty experienced in some. Creative critique &amp; external support is a really great way to grow as an artist or designer (those titles used here in the broadest sense possible). Whether youre starting a project, stuck on a piece and trying to discern next steps, or its a finished project you want to reflect on, Im happy to give whatever balance of kind constructive critique &amp;/or positive reinforcement you need. My best mediums are in no particular order: fountain pens &amp; ink, photography, lighting &amp; production design, analog/irl interaction design, visual narratives, and installation/themed environments. Ive taken classes in &amp; enjoyed digital painting, game design, neon art, ceramics and many more. Im less skilled in audio, software, &amp; film/video. I also enjoy creative research, as well as brainstorming how to make your interests adaptive and accessible for different kinds of disabilities &amp; health challenges. (I have limited spoons so please check in with me on my bandwidth/timelines, and Id love to swap skills, especially if youre looking for a lot of support!)
</p>
<p class="listed-on">
listed on <time datetime="2026-05-02">May 2, 2026</time>
</p>
</div>
<div class="listing">
<h3 id="i-can-help-you-get-started-with-recording-music">I can help you get started with recording music</h3>
<p class="blurb">
<strong>
<a href="https://kind.social/@JessicatheVIArtist" target="_blank">@JessicatheVIArtist@kind.social</a>
offers:</strong> If you&#39;re just starting out with a digital audio workstation, I can help you understand concepts. How do I record myself, what are takes, and how do I make myself sound good? What the heck are pre- and post-fader sends, and what on earth is MIDI?? I can also help you understand synthesis if you&#39;ve got a hardware or software synth you&#39;d like to tame. What are oscillators, filters, envelopes and LFOs and how do I create a whole new sound? If you&#39;ve got a website or app you&#39;re developing, I can also offer feedback on its accessibility to screen reader users.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-02">May 2, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<div class="listing">
<h3 id="how-do-i-make-this-without-meat-dairy-eggs">How do I make this without meat/dairy/eggs?!</h3>
<p class="blurb">
<strong>
<a href="https://zeroes.ca/@cthulku" target="_blank">@cthulku@zeroes.ca</a>
offers:</strong> I am a food dork with a couple decades&#39; experience with both vegan and vegetarian (ovo-lacto) cookery, and I quite enjoy finding ways to make normally omnivorous dishes vegetarian. While I&#39;m not one to build a homebrew Beyond burger, I have experience with a wide range of vegan proteins and preparations, as well as techniques and tips that I&#39;ve picked up over the years, to make something that may not fool an omnivore, but will still be delicious! I&#39;m thinking of more of a Q&amp;A type service, rather than any kind of structured lesson, but every journey begins with a single step and all that.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-02">May 2, 2026</time>
</p>
</div>
<div class="listing">
<h3 id="how-to-drink-wine">How To Drink Wine</h3>
<p class="blurb">
<strong>
<a href="https://mas.to/@liferstate" target="_blank">@lifertate@mas.to</a>
offers:</strong> If you&#39;ve ever felt intimidated by the supermarket wine aisle, or wanted something better but not known where to start, I can help. Like food, wine tells stories about geography, history, politics. I can advise you on food pairings, lesser known regions/grape varieties, how to get a good deal, and what *not* to buy. Don&#39;t ask an app what you should drink - ask me! Unlike the people in the app, I know what I&#39;m about and I will not bullshit you.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-02">May 2, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<div class="listing">
<h3 id="applied-statistics">Applied statistics</h3>
<p class="blurb">
<strong>
<a href="https://sfba.social/@minmi" target="_blank">@minmi@sfba.social</a>
offers:</strong> I am happy to answer any questions about statistics and data analysis. Whether its homework, curiosity, trying to understand a study or run an analysis, happy to share what I know!
</p>
<p class="listed-on">
listed on <time datetime="2026-05-02">May 2, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<div class="listing">
<h3 id="how-to-mend-things">How To Mend Things</h3>
<p class="blurb">
<strong>
<a href="https://neuromatch.social/@iris" target="_blank">@iris@neuromatch.social</a>
offers:</strong> I attempt to fix everything, some of it succeeds. Bring me (virtually) your thing that is damaged and we can assess whether it is, or can shortly be, within your capabilities (and current inventory of tools and materials) to fix it. Examples: favorite mug cracked, zipper broke, office chair sinking, backpack falling apart.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-02">May 2, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology">technology</h2>
<p>computer touchin&#39;</p>
</div>
<div class="listing">
<h3 id="nvda-screen-reader-basics-to-advanced">NVDA screen reader basics to advanced</h3>
<p class="blurb">
<strong>
<a href="https://dragonscave.space/@x0" target="_blank">@x0@dragonscave.space</a>
offers:</strong> I&#39;m a blind Windows user who has been cutting my teeth on Non-Visual Desktop Access (NVDA) for over a decade. I use it to do everything from file management to web apps to development. If you&#39;re just getting started with screen readers, or know your way around the basics and want to take your usage to the next level, I can help! I&#39;ll happily teach a sighted person who is picking up NVDA for proper accessibility testing as well, you never know if your app or website works right with a screen reader until you drive it with one.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-02">May 2, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<div class="listing">
<h3 id="scientific-paper-editing">Scientific paper editing</h3>
<p class="blurb">
<strong>
<a href="https://neuromatch.social/@SRLevine" target="_blank">@SRLevine@neuromatch.social</a>
offers:</strong> Do you have all of the information/data/figures, but an awkwardly worded paper? Do you need help getting it ready for submission? Would you otherwise turn to AI? Happy to help, particularly in field (organic chemistry, chemical biology), but should be able to mange most of chemistry &amp; biology. Can also help with qualifying exam papers, etc.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-02">May 2, 2026</time>
</p>
</div>
</div>
</div>
</section>
<section>
<h2 id="requests">Requests</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors-2">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts-2">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health-2">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business-2">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink-2">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages-2">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life-2">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more-2">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy-2">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology-2">technology</h2>
<p>computer touchin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature-2">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/daily/2026-05-02/` was built on 2026-05-06T21:43:51.312Z -->
</body>
</html>

View File

@ -0,0 +1,723 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>May 3rd, 2026 | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="May 3rd, 2026 | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>.listings {
columns: 3;
}
@media (max-width: 1200px) {
.listings {
columns: 2;
}
}
@media (max-width: 650px) {
.listings {
columns: 1;
}
}
/* jump links */
#jump-links {
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: solid var(--color-pink);
}
#jump-links h2,
#jump-links li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
font-weight: normal;
}
#jump-links * {
display: inline;
}
#jump-links a {
text-decoration: none;
}
#jump-links li {
list-style: none;
margin: 0;
}
#jump-links li:not(:last-child)::after {
content: "..." / "";
}
/* categories */
.category {
break-inside: avoid;
}
.category-title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
}
/* references highlighting */
/* drawn from https://aarontgrogg.com/blog/2012/05/18/pure-css-highlight-for-link-target/ */
.category-title:has(h2:target) {
animation: hilite 2.5s;
}
@keyframes hilite {
0% {background-color: var(--color-gray);}
10% {background-color: var(--color-cyan-flipped);}
100% {background-color: var(--color-gray);}
}
/* remove animation for reduced motion viewers */
@media (prefers-reduced-motion: reduce) {
.category-title:has(h2:target) {
animation: none;
color: var(--color-cyan);
}
}
.category-title h2 {
text-align: left;
scroll-margin-top: 4rem;
font-family: "Bebas Neue";
margin: 0;
}
.category-title p {
text-align: right;
font-weight: bold;
margin: 0;
}
/* individual listings */
.listing,
.request {
margin-bottom: 1rem;
}
.listing strong,
.request strong {
font-weight: bold;
}
.blurb {
margin-bottom: .5rem;
}
.listed-on {
font-size: .85rem;
text-align: right;
}
/* Requests page */
.title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
display: flex;
justify-content: space-between;
flex-flow: row wrap;
}
.title h2 {
text-transform: capitalize;
margin: 0;
}
.title p {
font-family: "Bebas Neue", sans-serif;
font-size: 1.5rem;
margin: 0;
text-align: right;
margin-left: auto;
}
section > h2 {
background-color: var(--color-gray);
font-size: 2rem;
text-align: center;
margin: 5rem 0 1rem;
}
:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="may-3rd-2026">May 3rd, 2026</h1>
<section>
<h2 id="offers">Offers</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<div class="listing">
<h3 id="ama-about-parkrun">AMA about parkrun</h3>
<p class="blurb">
<strong>
<a href="https://sunny.garden/@thegiddystitcher" target="_blank">@thegiddystitcher@sunny.garden</a>
offers:</strong> Parkrun is a free weekly 5k event run by volunteers around the world. Talk to me to learn more about it, how to join, whether you&#39;re welcome at your level of fitness (yes), what it&#39;s like to volunteer. No question too anxious!
</p>
<p class="listed-on">
listed on <time datetime="2026-05-03">May 3, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="business">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<div class="listing">
<h3 id="emotional-support-and-technical-advice-when-repairing-your-bicycle">Emotional support and technical advice when repairing your bicycle</h3>
<p class="blurb">
<strong>
<a href="https://graz.social/@TheSecondVariation" target="_blank">@TheSecondVariation@graz.social</a>
offers:</strong> I can help you repair your bicycle by giving advice. Besides I am also happy to give you advice on other bicycle related things.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-03">May 3, 2026</time>
</p>
</div>
<div class="listing">
<h3 id="wind-up-and-acoustic-record-players">Wind-up and Acoustic Record Players</h3>
<p class="blurb">
<strong>
<a href="https://sfba.social/@Essanay" target="_blank">@Essanay@sfba.social</a>
offers:</strong> Do you have an old Victrola or Edison cylinder player that doesn&#39;t work? I&#39;ve fixed a bunch of them and I can help diagnose problems, and maybe even help you fix it. And if you&#39;re anywhere near me (Northern California) I could even come take a look at it. This account is for the Niles Essanay Silent FIlm Museum, in Fremont CA, where we have several restored machines on display. I can also give advice on handling of movies (on physical film) and I&#39;m learning how to fix projectors.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-03">May 3, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology">technology</h2>
<p>computer touchin&#39;</p>
</div>
<div class="listing">
<h3 id="renewable-energy-q-and-a">Renewable Energy Q&amp;A</h3>
<p class="blurb">
<strong>
<a href="https://plasmatrap.com/@mzedp" target="_blank">@mzedp@plasmatrap.com</a>
offers:</strong> I&#39;m an electrical engineer with a specialization in Solar energy, glad to offer guidance on solar energy/renewables/energy transition related questions.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-03">May 3, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
<section>
<h2 id="requests">Requests</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors-2">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts-2">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health-2">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business-2">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink-2">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages-2">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life-2">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more-2">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy-2">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology-2">technology</h2>
<p>computer touchin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature-2">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/daily/2026-05-03/` was built on 2026-05-06T21:43:51.312Z -->
</body>
</html>

View File

@ -0,0 +1,749 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>May 4th, 2026 | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="May 4th, 2026 | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>.listings {
columns: 3;
}
@media (max-width: 1200px) {
.listings {
columns: 2;
}
}
@media (max-width: 650px) {
.listings {
columns: 1;
}
}
/* jump links */
#jump-links {
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: solid var(--color-pink);
}
#jump-links h2,
#jump-links li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
font-weight: normal;
}
#jump-links * {
display: inline;
}
#jump-links a {
text-decoration: none;
}
#jump-links li {
list-style: none;
margin: 0;
}
#jump-links li:not(:last-child)::after {
content: "..." / "";
}
/* categories */
.category {
break-inside: avoid;
}
.category-title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
}
/* references highlighting */
/* drawn from https://aarontgrogg.com/blog/2012/05/18/pure-css-highlight-for-link-target/ */
.category-title:has(h2:target) {
animation: hilite 2.5s;
}
@keyframes hilite {
0% {background-color: var(--color-gray);}
10% {background-color: var(--color-cyan-flipped);}
100% {background-color: var(--color-gray);}
}
/* remove animation for reduced motion viewers */
@media (prefers-reduced-motion: reduce) {
.category-title:has(h2:target) {
animation: none;
color: var(--color-cyan);
}
}
.category-title h2 {
text-align: left;
scroll-margin-top: 4rem;
font-family: "Bebas Neue";
margin: 0;
}
.category-title p {
text-align: right;
font-weight: bold;
margin: 0;
}
/* individual listings */
.listing,
.request {
margin-bottom: 1rem;
}
.listing strong,
.request strong {
font-weight: bold;
}
.blurb {
margin-bottom: .5rem;
}
.listed-on {
font-size: .85rem;
text-align: right;
}
/* Requests page */
.title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
display: flex;
justify-content: space-between;
flex-flow: row wrap;
}
.title h2 {
text-transform: capitalize;
margin: 0;
}
.title p {
font-family: "Bebas Neue", sans-serif;
font-size: 1.5rem;
margin: 0;
text-align: right;
margin-left: auto;
}
section > h2 {
background-color: var(--color-gray);
font-size: 2rem;
text-align: center;
margin: 5rem 0 1rem;
}
:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="may-4th-2026">May 4th, 2026</h1>
<section>
<h2 id="offers">Offers</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<div class="listing">
<h3 id="foraging-in-the-uk">Foraging in the UK</h3>
<p class="blurb">
<strong>
<a href="https://weirder.earth/@worshipthesquid" target="_blank">@worshipthesquid@weirder.earth</a>
offers:</strong> I&#39;m happy to share responsible UK plant foraging skills, including figuring out how you can get started. I&#39;m in Scotland (but the rest of the UK shares a lot of the same plants). (Also always excited to hear about others&#39; foraging and plant connection!)
</p>
<p class="listed-on">
listed on <time datetime="2026-05-04">May 4, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<div class="listing">
<h3 id="got-questions-about-pixels-hit-me-up">Got questions about pixels? Hit me up!</h3>
<p class="blurb">
<strong>
<a href="https://mastodon.art/@HuguesRoss" target="_blank">@HuguesRoss@mastodon.art</a>
offers:</strong> I&#39;ve been making pixel art for close to a decade, I think I&#39;ve gotten pretty good at it, and I&#39;d like to help you get good at it too! I&#39;m happy to offer feedback and advice regardless of your art experience--whether you&#39;re totally new to art and want to learn how to make cool retro sprites or an expert digital painter looking to understand the unique properties of this medium, I&#39;d be happy to chat. I don&#39;t always have the time and energy to give a quick response, but I&#39;m eager to help others and I don&#39;t bite! &#39;AI Artists&#39; need not apply.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-04">May 4, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<div class="listing">
<h3 id="curious-about-trying-menstrual-cups-but-dont-know-who-to-ask">Curious about trying menstrual cups but don&#39;t know who to ask?</h3>
<p class="blurb">
<strong>
<a href="https://social.coop/@afewbugs" target="_blank">@afewbugs@social.coop</a>
offers:</strong> I have been using a menstrual cup for nearly two decades and am happy to answer any questions, no matter how weird or embarrassing, based on my personal experience. Please note I am not a gynaecologist or trained medical professional.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-04">May 4, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="business">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<div class="listing">
<h3 id="math-tutoring">math tutoring</h3>
<p class="blurb">
<strong>
<a href="https://weirder.earth/@june" target="_blank">@june@weirder.earth</a>
offers:</strong> a math PhD helping you learn any mathematics from middle school to grad school
</p>
<p><strong>Suggested rate:</strong> 120 USD/hr but lower if you need</p>
<p class="listed-on">
listed on <time datetime="2026-05-04">May 4, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<div class="listing">
<h3 id="assistance-with-basic-car-repair-maintenance">Assistance with basic car repair/maintenance</h3>
<p class="blurb">
<strong>
<a href="https://pnw.zone/@OGJester" target="_blank">@OGJester@pnw.zone</a>
offers:</strong> I offer guidance in diagnosing automotive problems/concerns, and I can also assist with performing oil/filter changes and minor repairs. If you have basic hand tools (wrenches, screwdrivers, pliers, etc.), you have all you need to do most minor fixes. Save hundreds of dollars by doing it yourself! Feel free to reach out; Ill be happy to help.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-04">May 4, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology">technology</h2>
<p>computer touchin&#39;</p>
</div>
<div class="listing">
<h3 id="getting-started-on-digital-privacy">Getting started on digital privacy</h3>
<p class="blurb">
<strong>
<a href="https://social.acab.fans/@durian" target="_blank">@durian@social.acab.fans</a>
offers:</strong> Feeling overwhelmed with digital privacy? I can help get you started on the basics and guide you based on your needs.
</p>
<p><strong>Suggested rate:</strong> Sliding scale from 30 USD to 60 USD</p>
<p class="listed-on">
listed on <time datetime="2026-05-04">May 4, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
<section>
<h2 id="requests">Requests</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors-2">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts-2">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health-2">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business-2">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink-2">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages-2">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life-2">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more-2">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy-2">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology-2">technology</h2>
<p>computer touchin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature-2">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/daily/2026-05-04/` was built on 2026-05-06T21:43:51.312Z -->
</body>
</html>

View File

@ -0,0 +1,697 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>May 5th, 2026 | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="May 5th, 2026 | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>.listings {
columns: 3;
}
@media (max-width: 1200px) {
.listings {
columns: 2;
}
}
@media (max-width: 650px) {
.listings {
columns: 1;
}
}
/* jump links */
#jump-links {
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: solid var(--color-pink);
}
#jump-links h2,
#jump-links li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
font-weight: normal;
}
#jump-links * {
display: inline;
}
#jump-links a {
text-decoration: none;
}
#jump-links li {
list-style: none;
margin: 0;
}
#jump-links li:not(:last-child)::after {
content: "..." / "";
}
/* categories */
.category {
break-inside: avoid;
}
.category-title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
}
/* references highlighting */
/* drawn from https://aarontgrogg.com/blog/2012/05/18/pure-css-highlight-for-link-target/ */
.category-title:has(h2:target) {
animation: hilite 2.5s;
}
@keyframes hilite {
0% {background-color: var(--color-gray);}
10% {background-color: var(--color-cyan-flipped);}
100% {background-color: var(--color-gray);}
}
/* remove animation for reduced motion viewers */
@media (prefers-reduced-motion: reduce) {
.category-title:has(h2:target) {
animation: none;
color: var(--color-cyan);
}
}
.category-title h2 {
text-align: left;
scroll-margin-top: 4rem;
font-family: "Bebas Neue";
margin: 0;
}
.category-title p {
text-align: right;
font-weight: bold;
margin: 0;
}
/* individual listings */
.listing,
.request {
margin-bottom: 1rem;
}
.listing strong,
.request strong {
font-weight: bold;
}
.blurb {
margin-bottom: .5rem;
}
.listed-on {
font-size: .85rem;
text-align: right;
}
/* Requests page */
.title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
display: flex;
justify-content: space-between;
flex-flow: row wrap;
}
.title h2 {
text-transform: capitalize;
margin: 0;
}
.title p {
font-family: "Bebas Neue", sans-serif;
font-size: 1.5rem;
margin: 0;
text-align: right;
margin-left: auto;
}
section > h2 {
background-color: var(--color-gray);
font-size: 2rem;
text-align: center;
margin: 5rem 0 1rem;
}
:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="may-5th-2026">May 5th, 2026</h1>
<section>
<h2 id="offers">Offers</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<div class="listing">
<h3 id="quilts-and-colors">Quilts and Colors!</h3>
<p class="blurb">
<strong>
<a href="https://fediscience.org/@robotistry" target="_blank">@robotistry@fediscience.org</a>
offers:</strong> If you want a second set of eyes on your quilt design or help choosing colors (for any project!), I&#39;m here. I have made many pieced quilts and can help you learn how to use fabric color, pattern, and intensity with your design to get the effect you want. I can also help you design your quilt, if you&#39;d like help with that. I have a large library of quilt books for inspiration. I can also provide troubleshooting and recovery ideas when things (inevitably) go wrong.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-05">May 5, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology">technology</h2>
<p>computer touchin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<div class="listing">
<h3 id="short-fiction-and-nonfiction-editing">Short Fiction &amp; Nonfiction Editing</h3>
<p class="blurb">
<strong>
<a href="https://wandering.shop/@WizardOfDocs" target="_blank">@WizardOfDocs@wandering.shop</a>
offers:</strong> Need help making your writing sound the way you want? Frustrated with AI hype and looking for an editor who actually understands the difference between lightning and a lightning bug? I&#39;ve been writing and editing short fiction and technical documentation for at least a decade, and I want to help you make your audience feel what you want them to feel and learn what you want them to learn. I&#39;m also happy to go through my feedback with you and help you develop your own writing instincts.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-05">May 5, 2026</time>
</p>
</div>
</div>
</div>
</section>
<section>
<h2 id="requests">Requests</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors-2">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts-2">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health-2">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business-2">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink-2">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages-2">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life-2">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more-2">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy-2">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology-2">technology</h2>
<p>computer touchin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature-2">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/daily/2026-05-05/` was built on 2026-05-06T21:43:51.312Z -->
</body>
</html>

View File

@ -0,0 +1,771 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>May 6th, 2026 | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="May 6th, 2026 | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>.listings {
columns: 3;
}
@media (max-width: 1200px) {
.listings {
columns: 2;
}
}
@media (max-width: 650px) {
.listings {
columns: 1;
}
}
/* jump links */
#jump-links {
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: solid var(--color-pink);
}
#jump-links h2,
#jump-links li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
font-weight: normal;
}
#jump-links * {
display: inline;
}
#jump-links a {
text-decoration: none;
}
#jump-links li {
list-style: none;
margin: 0;
}
#jump-links li:not(:last-child)::after {
content: "..." / "";
}
/* categories */
.category {
break-inside: avoid;
}
.category-title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
}
/* references highlighting */
/* drawn from https://aarontgrogg.com/blog/2012/05/18/pure-css-highlight-for-link-target/ */
.category-title:has(h2:target) {
animation: hilite 2.5s;
}
@keyframes hilite {
0% {background-color: var(--color-gray);}
10% {background-color: var(--color-cyan-flipped);}
100% {background-color: var(--color-gray);}
}
/* remove animation for reduced motion viewers */
@media (prefers-reduced-motion: reduce) {
.category-title:has(h2:target) {
animation: none;
color: var(--color-cyan);
}
}
.category-title h2 {
text-align: left;
scroll-margin-top: 4rem;
font-family: "Bebas Neue";
margin: 0;
}
.category-title p {
text-align: right;
font-weight: bold;
margin: 0;
}
/* individual listings */
.listing,
.request {
margin-bottom: 1rem;
}
.listing strong,
.request strong {
font-weight: bold;
}
.blurb {
margin-bottom: .5rem;
}
.listed-on {
font-size: .85rem;
text-align: right;
}
/* Requests page */
.title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
display: flex;
justify-content: space-between;
flex-flow: row wrap;
}
.title h2 {
text-transform: capitalize;
margin: 0;
}
.title p {
font-family: "Bebas Neue", sans-serif;
font-size: 1.5rem;
margin: 0;
text-align: right;
margin-left: auto;
}
section > h2 {
background-color: var(--color-gray);
font-size: 2rem;
text-align: center;
margin: 5rem 0 1rem;
}
:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="may-6th-2026">May 6th, 2026</h1>
<section>
<h2 id="offers">Offers</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<div class="listing">
<h3 id="data-visualization-advice">Data visualization advice</h3>
<p class="blurb">
<strong>
<a href="https://datavis.social/@janeadams" target="_blank">@janeadams@datavis.social</a>
offers:</strong> Not sure how to answer a question with a chart? Confused about when to use a box plot versus a bar chart? Dont get why everyone hates pie charts so much? Need advice on choosing an interactive visualization code library? Want some compelling graphs for your zine? I can offer sync video calls (evenings ET) or async feedback and advice for any not-for-profit visual encoding tasks!
</p>
<p class="listed-on">
listed on <time datetime="2026-05-06">May 6, 2026</time>
</p>
</div>
<div class="listing">
<h3 id="digital-illustration">Digital Illustration</h3>
<p class="blurb">
<strong>
<a href="https://mastodon.art/@madgeface" target="_blank">@madgeface@mastodon.art</a>
offers:</strong> Do you need a diagram to illustrate a concept? I can help make something from scratch or improve your diagram. Currently working in Affinity but I also know Adobe Creative Suite and am willing to learn other open-source software.
</p>
<p><strong>Suggested rate:</strong> negotiable and open to trade</p>
<p class="listed-on">
listed on <time datetime="2026-05-06">May 6, 2026</time>
</p>
</div>
<div class="listing">
<h3 id="learning-to-produce-music">Learning To Produce Music</h3>
<p class="blurb">
<strong>
<a href="https://dragonscave.space/@ZBennoui" target="_blank">@ZBennoui@dragonscave.space</a>
offers:</strong> I&#39;ve been producing music for about 15 years now and would love to help anyone I can. I&#39;ve primarily taught fellow blind / low vision people, but open to working with anyone really. I use Ableton Live, Reaper, Logic, and have worked with ProTools in the past.
</p>
<p><strong>Suggested rate:</strong> If the person I&#39;m helping is in a position to pay, I think 50 USD an hour is a pretty good baseline rate, but I&#39;m happy to help out anybody for free, especially if we&#39;re not going too in depth. It all depends</p>
<p class="listed-on">
listed on <time datetime="2026-05-06">May 6, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<div class="listing">
<h3 id="academic-philosophy-of-science-and-mathematics">Academic Philosophy of Science and Mathematics</h3>
<p class="blurb">
<strong>
<a href="https://freeradical.zone/@zillion" target="_blank">@zillion@freeradical.zone</a>
offers:</strong> Philosophy of Science and Mathematics. Philosophical logic. Discussion, suggested reading, commenting on papers
</p>
<p class="listed-on">
listed on <time datetime="2026-05-06">May 6, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<div class="listing">
<h3 id="reading-tarot-for-personal-introspection">Reading Tarot for Personal Introspection</h3>
<p class="blurb">
<strong>
<a href="https://pagan.plus/@syd" target="_blank">@syd@pagan.plus</a>
offers:</strong> Interested in tarot? Have a deck you don&#39;t know what to do with? I can talk you through the basics of reading tarot for personal insight, including the tarot journaling practice I used to learn the card meanings and a simple three card spread for routine readings.
</p>
<p class="listed-on">
listed on <time datetime="2026-05-06">May 6, 2026</time>
</p>
</div>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology">technology</h2>
<p>computer touchin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<div class="listing">
<h3 id="technical-editing">Technical editing</h3>
<p class="blurb">
<strong>
<a href="https://freeradical.zone/@zillion" target="_blank">@zillion@freeradical.zone</a>
offers:</strong> Physics, mathematics, logic, popularizing science. Help with formatting mathematics in HTML, MathJax, AMS-LaTeX. I can also copy edit your short story or novel to enforce formal spelling and punctuation—I don&#39;t care if you don&#39;t, but, if you do, lmk
</p>
<p><strong>Suggested rate:</strong> I might want to charge a token amount if the project is long or complicated.</p>
<p class="listed-on">
listed on <time datetime="2026-05-06">May 6, 2026</time>
</p>
</div>
<div class="listing">
<h3 id="writer-available-for-coaching-and-advising">writer available for coaching and advising</h3>
<p class="blurb">
<strong>
<a href="https://mastodon.art/@madgeface" target="_blank">@madgeface@mastodon.art</a>
offers:</strong> I&#39;m a technical writer, writing coach, and editor who is happy to help if you&#39;re stuck with writing something (from fiction to biz comms to books). Don&#39;t turn to AI - turn to me.
</p>
<p><strong>Suggested rate:</strong> Sliding scale/rates/trade negotiable depending on what the ask is</p>
<p class="listed-on">
listed on <time datetime="2026-05-06">May 6, 2026</time>
</p>
</div>
</div>
</div>
</section>
<section>
<h2 id="requests">Requests</h2>
<div class="listings">
<div class="category">
<div class="category-title">
<h2 id="animals-and-the-outdoors-2">animals and the outdoors</h2>
<p>touchin&#39; grass</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="art-and-crafts-2">art and crafts</h2>
<p>makin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="beauty-and-health-2">beauty and health</h2>
<p>feelin&#39; good</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="business-2">business</h2>
<p>makin&#39; money</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="food-and-drink-2">food and drink</h2>
<p>good eatin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="history-science-and-languages-2">history science and languages</h2>
<p>book learnin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="interpersonal-and-life-2">interpersonal and life</h2>
<p>better livin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="miscellany-and-more-2">miscellany and more</h2>
<p>leaves me guessin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="repair-and-diy-2">repair and diy</h2>
<p>fixin&#39; stuff</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="technology-2">technology</h2>
<p>computer touchin&#39;</p>
</div>
<p>No listings.</p>
</div>
<div class="category">
<div class="category-title">
<h2 id="writing-editing-and-literature-2">writing editing and literature</h2>
<p>wordsmithin&#39;</p>
</div>
<p>No listings.</p>
</div>
</div>
</section>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/daily/2026-05-06/` was built on 2026-05-06T21:43:51.312Z -->
</body>
</html>

280
_site/daily/index.html Normal file
View File

@ -0,0 +1,280 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Day-by-day listings | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="Day-by-day listings | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>ol {
list-style: none;
text-align: center;
}
:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="day-by-day-listings">Day-by-day listings</h1>
<ol>
<li>
<a href="/daily/2026-05-06/">May 6th, 2026</a>
</li>
<li>
<a href="/daily/2026-05-05/">May 5th, 2026</a>
</li>
<li>
<a href="/daily/2026-05-04/">May 4th, 2026</a>
</li>
<li>
<a href="/daily/2026-05-03/">May 3rd, 2026</a>
</li>
<li>
<a href="/daily/2026-05-02/">May 2nd, 2026</a>
</li>
<li>
<a href="/daily/2026-05-01/">May 1st, 2026</a>
</li>
<li>
<a href="/daily/2026-04-29/">April 29th, 2026</a>
</li>
</ol>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/daily/` was built on 2026-05-06T21:43:51.315Z -->
</body>
</html>

BIN
_site/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

2573
_site/feed.xml Normal file

File diff suppressed because it is too large Load Diff

1093
_site/index.html Normal file

File diff suppressed because it is too large Load Diff

385
_site/requests/index.html Normal file
View File

@ -0,0 +1,385 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Requests for Help | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="Requests for Help | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>.listings {
columns: 3;
}
@media (max-width: 1200px) {
.listings {
columns: 2;
}
}
@media (max-width: 650px) {
.listings {
columns: 1;
}
}
/* jump links */
#jump-links {
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: solid var(--color-pink);
}
#jump-links h2,
#jump-links li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
font-weight: normal;
}
#jump-links * {
display: inline;
}
#jump-links a {
text-decoration: none;
}
#jump-links li {
list-style: none;
margin: 0;
}
#jump-links li:not(:last-child)::after {
content: "..." / "";
}
/* categories */
.category {
break-inside: avoid;
}
.category-title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
}
/* references highlighting */
/* drawn from https://aarontgrogg.com/blog/2012/05/18/pure-css-highlight-for-link-target/ */
.category-title:has(h2:target) {
animation: hilite 2.5s;
}
@keyframes hilite {
0% {background-color: var(--color-gray);}
10% {background-color: var(--color-cyan-flipped);}
100% {background-color: var(--color-gray);}
}
/* remove animation for reduced motion viewers */
@media (prefers-reduced-motion: reduce) {
.category-title:has(h2:target) {
animation: none;
color: var(--color-cyan);
}
}
.category-title h2 {
text-align: left;
scroll-margin-top: 4rem;
font-family: "Bebas Neue";
margin: 0;
}
.category-title p {
text-align: right;
font-weight: bold;
margin: 0;
}
/* individual listings */
.listing,
.request {
margin-bottom: 1rem;
}
.listing strong,
.request strong {
font-weight: bold;
}
.blurb {
margin-bottom: .5rem;
}
.listed-on {
font-size: .85rem;
text-align: right;
}
/* Requests page */
.title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
display: flex;
justify-content: space-between;
flex-flow: row wrap;
}
.title h2 {
text-transform: capitalize;
margin: 0;
}
.title p {
font-family: "Bebas Neue", sans-serif;
font-size: 1.5rem;
margin: 0;
text-align: right;
margin-left: auto;
}
:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/">submit a listing</a></li>
<li><a href="/requests/" aria-current="page">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="requests-for-help">Requests for Help</h1>
<p>There's nothing here yet. <a href="/submit/">Submit your own</a>.</p>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/requests/` was built on 2026-05-06T21:43:51.315Z -->
</body>
</html>

151
_site/robots.txt Normal file
View File

@ -0,0 +1,151 @@
# Sourced from https://codeberg.org/superseriousbusiness/gotosocial/
# AI scrapers and the like.
# https://github.com/ai-robots-txt/ai.robots.txt/
User-agent: AddSearchBot
User-agent: AI2Bot
User-agent: AI2Bot-DeepResearchEval
User-agent: Ai2Bot-Dolma
User-agent: aiHitBot
User-agent: amazon-kendra
User-agent: Amazonbot
User-agent: AmazonBuyForMe
User-agent: Andibot
User-agent: Anomura
User-agent: anthropic-ai
User-agent: Applebot
User-agent: Applebot-Extended
User-agent: atlassian-bot
User-agent: Awario
User-agent: bedrockbot
User-agent: bigsur.ai
User-agent: Bravebot
User-agent: Brightbot 1.0
User-agent: BuddyBot
User-agent: Bytespider
User-agent: CCBot
User-agent: Channel3Bot
User-agent: ChatGLM-Spider
User-agent: ChatGPT Agent
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: Claude-Web
User-agent: ClaudeBot
User-agent: Cloudflare-AutoRAG
User-agent: CloudVertexBot
User-agent: cohere-ai
User-agent: cohere-training-data-crawler
User-agent: Cotoyogi
User-agent: Crawl4AI
User-agent: Crawlspace
User-agent: Datenbank Crawler
User-agent: DeepSeekBot
User-agent: Devin
User-agent: Diffbot
User-agent: DuckAssistBot
User-agent: Echobot Bot
User-agent: EchoboxBot
User-agent: FacebookBot
User-agent: facebookexternalhit
User-agent: Factset_spyderbot
User-agent: FirecrawlAgent
User-agent: FriendlyCrawler
User-agent: Gemini-Deep-Research
User-agent: Google-CloudVertexBot
User-agent: Google-Extended
User-agent: Google-Firebase
User-agent: Google-NotebookLM
User-agent: GoogleAgent-Mariner
User-agent: GoogleOther
User-agent: GoogleOther-Image
User-agent: GoogleOther-Video
User-agent: GPTBot
User-agent: iAskBot
User-agent: iaskspider
User-agent: iaskspider/2.0
User-agent: IbouBot
User-agent: ICC-Crawler
User-agent: ImagesiftBot
User-agent: imageSpider
User-agent: img2dataset
User-agent: ISSCyberRiskCrawler
User-agent: Kangaroo Bot
User-agent: KlaviyoAIBot
User-agent: KunatoCrawler
User-agent: laion-huggingface-processor
User-agent: LAIONDownloader
User-agent: LCC
User-agent: LinerBot
User-agent: Linguee Bot
User-agent: LinkupBot
User-agent: Manus-User
User-agent: meta-externalagent
User-agent: Meta-ExternalAgent
User-agent: meta-externalfetcher
User-agent: Meta-ExternalFetcher
User-agent: meta-webindexer
User-agent: MistralAI-User
User-agent: MistralAI-User/1.0
User-agent: MyCentralAIScraperBot
User-agent: netEstate Imprint Crawler
User-agent: NotebookLM
User-agent: NovaAct
User-agent: OAI-SearchBot
User-agent: omgili
User-agent: omgilibot
User-agent: OpenAI
User-agent: Operator
User-agent: PanguBot
User-agent: Panscient
User-agent: panscient.com
User-agent: Perplexity-User
User-agent: PerplexityBot
User-agent: PetalBot
User-agent: PhindBot
User-agent: Poggio-Citations
User-agent: Poseidon Research Crawler
User-agent: QualifiedBot
User-agent: QuillBot
User-agent: quillbot.com
User-agent: SBIntuitionsBot
User-agent: Scrapy
User-agent: SemrushBot-OCOB
User-agent: SemrushBot-SWA
User-agent: ShapBot
User-agent: Sidetrade indexer bot
User-agent: Spider
User-agent: TerraCotta
User-agent: Thinkbot
User-agent: TikTokSpider
User-agent: Timpibot
User-agent: TwinAgent
User-agent: VelenPublicWebCrawler
User-agent: WARDBot
User-agent: Webzio-Extended
User-agent: webzio-extended
User-agent: wpbot
User-agent: WRTNBot
User-agent: YaK
User-agent: YandexAdditional
User-agent: YandexAdditionalBot
User-agent: YouBot
User-agent: ZanistaBot
Disallow: /
# Marketing/SEO "intelligence" data scrapers
User-agent: AwarioRssBot
User-agent: AwarioSmartBot
User-agent: DataForSeoBot
User-agent: magpie-crawler
User-agent: Meltwater
User-agent: peer39_crawler
User-agent: peer39_crawler/1.0
User-agent: PiplBot
User-agent: scoop.it
User-agent: Seekr
Disallow: /
# Rules for everything else
User-agent: *
Crawl-delay: 500

367
_site/submit/index.html Normal file
View File

@ -0,0 +1,367 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Submit a Listing | FediLearns</title>
<meta name="description" content="Learning together, by and for the fediverse">
<meta property="og:title" content="Submit a Listing | FediLearns">
<meta property="og:type" content="website">
<meta property="og:description" content="Learning together, by and for the fediverse">
<meta property="og:site_name" content="FediLearns">
<meta property="og:image" content="/favicon.ico">
<meta property="og:image:alt" content="a newspaper icon with the fediverse logo, an interconnected rainbow pentagon, superimposed.">
<meta name="generator" content="Eleventy v3.1.5">
<style>.category-title {
font-family: "Bebas Neue", sans-serif;
font-size: 1.5rem;
background-color: var(--color-gray);
padding: .25rem;
}
.requests-update {
padding: 1rem;
border: solid var(--color-cyan);
}
:root {
color-scheme: light dark;
--color-dark: #2e303e;
--color-dark-alt: #3c3f52;
--color-light: #ebeeef;
--color-light-alt: #dbe1e3;
--color-cyan-dark: #18737b;
--color-cyan-light: #25b0bc;
--color-pink-dark: #94195d;
--color-pink-light: #ee9fcb;
--color-text: light-dark(var(--color-dark), var(--color-light));
--color-bg: light-dark(var(--color-light), var(--color-dark));
--color-gray: light-dark(var(--color-light-alt), var(--color-dark-alt));
--color-cyan: light-dark(var(--color-cyan-dark), var(--color-cyan-light));
--color-cyan-flipped: light-dark(var(--color-cyan-light), var(--color-cyan-dark));
--color-pink: light-dark(var(--color-pink-dark), var(--color-pink-light));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
color: var(--color-text);
background-color: var(--color-bg);
width: 65%;
max-width: 1400px;
margin: 0 auto;
font-family: "Fraunces", serif;
font-weight: 300;
}
main {
padding-bottom: 2rem;
}
@media (max-width: 1050px) {
body {
width: 85%
}
}
@media (max-width: 650px) {
body {
width: 92%;
}
}
h1, h2, h3 {
font-weight: 400;
}
h1 {
text-align: center;
font-size: 3rem;
margin: 3rem auto;
}
@media (max-width: 650px) {
h1 {
font-size: 2.4rem;
margin-top: 1rem;
}
}
h2 {
margin-bottom: .5rem;
}
h3 {
text-transform: capitalize;
margin-bottom: .5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--color-cyan);
text-decoration-thickness: .1rem;
transition: text-decoration-thickness .5s;
border-radius: .05rem;
}
a:visited {
color: var(--color-pink);
}
@media (any-hover: hover) {
a:hover {
text-decoration-thickness: .2rem;
}
}
a:focus-visible {
outline: solid var(--color-pink);
}
a:visited:focus-visible {
outline-color: var(--color-cyan);
}
main ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
main li {
margin-left: 1rem;
}
/* iframe is on submission page */
iframe {
margin: 2rem 0;
}
nav {
padding: .25rem 0 1rem;
}
footer {
padding: 1rem 0;
}
nav ul,
footer ul {
list-style: none;
display: flex;
flex-flow: column;
text-align: center;
gap: .2rem;
}
header,
nav li,
footer li {
font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem;
}
header {
border-bottom: solid var(--color-pink);
}
footer {
border-top: solid var(--color-pink);
}
a[aria-current="page"] {
text-decoration: line-through;
color: rgb(from var(--color-pink) r g b / 65%);
}
/* Skip link */
#skip {
-webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
clip-path: polygon(0 0, 0 0, 0 0, 0 0);
}
#skip:focus-visible {
-webkit-clip-path: none;
clip-path: none;
}</style>
<script type="module"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fraunces:opsz,wght@9..144,100..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav>
<ul>
<li><a id="skip" href="#main">skip to content</a></li>
<li><a href="/">home page</a></li>
<li><a href="/about/">about this site</a></li>
<li><a href="/submit/" aria-current="page">submit a listing</a></li>
<li><a href="/requests/">requests for help</a></li>
</ul>
</nav>
</header>
<main id="main">
<h1 id="submit-a-listing">Submit a Listing</h1>
<p class="requests-update">
<em>Hey! Listen!</em> I'm working on supporting requests as well as offers,
so don't be surprised to see that on the submission form. Coming soon to the site!
</p>
<p>To submit to the FediLearns Classifieds, you'll need:</p>
<ul>
<li>the link to your fediverse profile</li>
<li>whether your listing is an offer or a request for help</li>
<li>the <a href="#category-guide">most relevant category</a> for your listing</li>
<li>a title for your offering</li>
<li>a short description</li>
<li>optionally, a suggested rate - if not provided, free is the assumption</li>
</ul>
<p>See <a href="/">the home page</a> for inspiration.</p>
<p> You can submit using
<a href="https://airtable.com/appbdRJ59MLprB1iC/pagfJTOl4KPwh7trd/form" target="_blank">the listing submission form</a>,
<a href="https://flipping.rocks/@inherentlee" target="_blank">message me on
fedi</a>, or
<a href="mailto:lee.cattarin@gmail.com?subject=Fediverse%20Skillshare%20Classifieds">email
me</a> all the information mentioned above.
</p>
<p>Feel free to submit multiple times in multiple categories, but I'd prefer that
all offerings within one category be grouped into one listing if possible!
Exceptions can be made for wildly divergent topics, but try to keep it short
and sweet.
</p>
<h2 id="category-guide">Category guide</h2>
<p>Here's some examples as to what might fall under each category as they currently exist...</p>
<h3 class="category-title" id="animals-and-the-outdoors">Animals and the outdoors</h3>
<ul>
<li>Raising a cat</li>
<li>Mushroom identification</li>
<li>Natural navigation</li>
</ul>
<h3 class="category-title" id="art-and-crafts">Art and Crafts</h3>
<ul>
<li>Learning to knit</li>
<li>Painting techniques</li>
<li>How to get started with woodcarving</li>
</ul>
<h3 class="category-title" id="beauty-and-health">Beauty and Health</h3>
<ul>
<li>Fashion tips</li>
<li>How to braid hair</li>
<li>Workouts for core strength</li>
</ul>
<h3 class="category-title" id="business">Business</h3>
<ul>
<li>Job interview practice</li>
<li>Guide to changing fields</li>
<li>Writing a good performance review</li>
</ul>
<h3 class="category-title" id="food-and-drink">Food and Drink</h3>
<ul>
<li>Sourdough starting</li>
<li>Gardening for food (also totally cool in "Animals and the Outdoors")</li>
<li>One-pot meals</li>
</ul>
<h3 class="category-title" id="history-science-and-language">History Science and Language</h3>
<ul>
<li>Exploring ancient history</li>
<li>Chemistry basics</li>
<li>Philosophy discussion</li>
</ul>
<h3 class="category-title" id="interpersonal-and-life">Interpersonal and Life</h3>
<ul>
<li>Neurodivergent life tactics</li>
<li>Navigating workplace transition (also totally cool in "Business")</li>
<li>Mediating hard discussions</li>
</ul>
<h3 class="category-title" id="miscellany-and-more">Miscellany and More</h3>
<ul>
<li>Surprise me!</li>
</ul>
<h3 class="category-title" id="repair-and-diy">Repair and DIY</h3>
<ul>
<li>Plumbing basics</li>
<li>Fixing broken appliances</li>
<li>Mending clothing (also totally cool in "Art and Crafts")</li>
</ul>
<h3 class="category-title" id="technology">Technology</h3>
<ul>
<li>Home networking</li>
<li>Introductory web development</li>
<li>Learning Python</li>
</ul>
<h3 class="category-title" id="writing-editing-and-literature">Writing Editing and Literature</h3>
<ul>
<li>Editing scientific writing</li>
<li>Creating relatable characters</li>
<li>How to write a book review</li>
</ul>
</main>
<footer>
<ul>
<li>
maintained by <a href="https://leecat.art" target="_blank">lee</a>
</li>
<li>
<a href="/daily/">Listings by day</a>
</li>
<li>
<a href="https://heckin.technology/inherentlee/fedilearns" target="_blank">source code</a>
</li>
<li>
<a href="/feed.xml">RSS</a>
</li>
</ul>
</footer>
<!-- This page `/submit/` was built on 2026-05-06T21:43:51.315Z -->
</body>
</html>

View File

@ -1,15 +1,15 @@
#listings { .listings {
columns: 3; columns: 3;
} }
@media (max-width: 1200px) { @media (max-width: 1200px) {
#listings { .listings {
columns: 2; columns: 2;
} }
} }
@media (max-width: 650px) { @media (max-width: 650px) {
#listings { .listings {
columns: 1; columns: 1;
} }
} }
@ -23,7 +23,7 @@
#jump-links h2, #jump-links h2,
#jump-links li { #jump-links li {
font-family: "Bebas Neue"; font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem; font-size: 1.3rem;
font-weight: normal; font-weight: normal;
} }
@ -78,6 +78,7 @@
} }
.category-title h2 { .category-title h2 {
text-align: left;
scroll-margin-top: 4rem; scroll-margin-top: 4rem;
font-family: "Bebas Neue"; font-family: "Bebas Neue";
margin: 0; margin: 0;
@ -91,19 +92,44 @@
/* individual listings */ /* individual listings */
.listing { .listing,
.request {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.listing strong,
.request strong {
font-weight: bold;
}
.blurb { .blurb {
margin-bottom: .5rem; margin-bottom: .5rem;
} }
.blurb strong {
font-weight: bold;
}
.listed-on { .listed-on {
font-size: .85rem; font-size: .85rem;
text-align: right; text-align: right;
} }
/* Requests page */
.title {
background-color: var(--color-gray);
padding: .25rem;
margin-bottom: .5rem;
display: flex;
justify-content: space-between;
flex-flow: row wrap;
}
.title h2 {
text-transform: capitalize;
margin: 0;
}
.title p {
font-family: "Bebas Neue", sans-serif;
font-size: 1.5rem;
margin: 0;
text-align: right;
margin-left: auto;
}

View File

@ -30,7 +30,7 @@ body {
width: 65%; width: 65%;
max-width: 1400px; max-width: 1400px;
margin: 0 auto; margin: 0 auto;
font-family: "Fraunces"; font-family: "Fraunces", serif;
font-weight: 300; font-weight: 300;
} }
@ -50,7 +50,7 @@ main {
} }
} }
h1, h3 { h1, h2, h3 {
font-weight: 400; font-weight: 400;
} }
@ -68,7 +68,7 @@ h1 {
} }
h2 { h2 {
margin-bottom: 1rem; margin-bottom: .5rem;
} }
h3 { h3 {

View File

@ -18,7 +18,7 @@ footer ul {
header, header,
nav li, nav li,
footer li { footer li {
font-family: "Bebas Neue"; font-family: "Bebas Neue", sans-serif;
font-size: 1.3rem; font-size: 1.3rem;
} }

View File

@ -42,9 +42,9 @@ export default async function(eleventyConfig) {
}, },
metadata: { metadata: {
language: "en", language: "en",
title: "Fediverse Skillshare Classifieds", title: "FediLearns",
subtitle: "Skillshare listings for the Fediverse", subtitle: "Learning together, by and for the fediverse",
base: "https://inherentlee.codeberg.page/", base: "https://fedilearns.fyi",
author: { author: {
name: "Lee Cattarin" name: "Lee Cattarin"
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 61 KiB

1
node_modules/.bin/acorn generated vendored
View File

@ -1 +0,0 @@
../acorn/bin/acorn

1
node_modules/.bin/eleventy generated vendored
View File

@ -1 +0,0 @@
../@11ty/eleventy/cmd.cjs

View File

@ -1 +0,0 @@
../@11ty/eleventy-dev-server/cmd.js

1
node_modules/.bin/errno generated vendored
View File

@ -1 +0,0 @@
../errno/cli.js

1
node_modules/.bin/esparse generated vendored
View File

@ -1 +0,0 @@
../esprima/bin/esparse.js

1
node_modules/.bin/esvalidate generated vendored
View File

@ -1 +0,0 @@
../esprima/bin/esvalidate.js

1
node_modules/.bin/js-yaml generated vendored
View File

@ -1 +0,0 @@
../js-yaml/bin/js-yaml.js

1
node_modules/.bin/liquid generated vendored
View File

@ -1 +0,0 @@
../liquidjs/bin/liquid.js

1
node_modules/.bin/liquidjs generated vendored
View File

@ -1 +0,0 @@
../liquidjs/bin/liquid.js

1
node_modules/.bin/markdown-it generated vendored
View File

@ -1 +0,0 @@
../markdown-it/bin/markdown-it.mjs

1
node_modules/.bin/mime generated vendored
View File

@ -1 +0,0 @@
../mime/cli.js

View File

@ -1 +0,0 @@
../nunjucks/bin/precompile

1
node_modules/.bin/semver generated vendored
View File

@ -1 +0,0 @@
../semver/bin/semver.js

1647
node_modules/.package-lock.json generated vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2023 Zach Leatherman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,53 +0,0 @@
# `dependency-tree-esm`
Returns an unordered array of local paths to dependencies of a Node ES module JavaScript file.
* See also: [`dependency-tree`](https://github.com/11ty/eleventy-dependency-tree) for the CommonJS version.
This is used by Eleventy to find dependencies of a JavaScript file to watch for changes to re-run Eleventys build.
## Installation
```
npm install --save-dev @11ty/dependency-tree-esm
```
## Features
* Ignores bare specifiers (e.g. `import "my-package"`)
* Ignores Nodes built-ins (e.g. `import "path"`)
* Handles circular dependencies
* Returns an empty set if the file does not exist.
## Usage
```js
// my-file.js
// if my-local-dependency.js has dependencies, it will include those too
import "./my-local-dependency.js";
// ignored, is a built-in
import path from "path";
```
```js
import { find } from "@11ty/dependency-tree-esm";
// CommonJS is fine too
// const { find } = require("@11ty/dependency-tree-esm");
await find("./my-file.js");
// returns ["./my-local-dependency.js"]
```
Return a [dependency-graph](https://github.com/jriecken/dependency-graph) instance:
```js
import { findGraph } from "@11ty/dependency-tree-esm";
// CommonJS is fine too
// const { find } = require("@11ty/dependency-tree-esm");
(await findGraph("./my-file.js")).overallOrder();
// returns ["./my-local-dependency.js", "./my-file.js"]
```

View File

@ -1,173 +0,0 @@
const path = require("node:path");
const { readFileSync, existsSync } = require("node:fs");
const acorn = require("acorn");
const normalizePath = require("normalize-path");
const { TemplatePath } = require("@11ty/eleventy-utils");
const { DepGraph } = require("dependency-graph");
// Is *not* a bare specifier (e.g. 'some-package')
// https://nodejs.org/dist/latest-v18.x/docs/api/esm.html#terminology
function isNonBareSpecifier(importSource) {
// Change \\ to / on Windows
let normalized = normalizePath(importSource);
// Relative specifier (e.g. './startup.js')
if(normalized.startsWith("./") || normalized.startsWith("../")) {
return true;
}
// Absolute specifier (e.g. 'file:///opt/nodejs/config.js')
if(normalized.startsWith("file:")) {
return true;
}
return false;
}
function normalizeFilePath(filePath) {
return TemplatePath.standardizeFilePath(path.relative(".", filePath));
}
function normalizeImportSourceToFilePath(filePath, source) {
let { dir } = path.parse(filePath);
let normalized = path.join(dir, source);
return normalizeFilePath(normalized);
}
function getImportAttributeType(attributes = []) {
for(let node of attributes) {
if(node.type === "ImportAttribute" && node.key.type === "Identifier" && node.key.name === "type") {
return node.value.value;
}
}
}
async function getSources(filePath, contents, options = {}) {
let { parserOverride } = Object.assign({}, options);
let sources = new Set();
let sourcesToRecurse = new Set();
let ast = (parserOverride || acorn).parse(contents, {
sourceType: "module",
ecmaVersion: "latest",
});
for(let node of ast.body) {
if(node.type === "ImportDeclaration" && isNonBareSpecifier(node.source.value)) {
let importAttributeType = getImportAttributeType(node?.attributes);
let normalized = normalizeImportSourceToFilePath(filePath, node.source.value);
if(normalized !== filePath) {
sources.add(normalized);
// Recurse typeless (JavaScript) import types only
// Right now only `css` and `json` are valid but others might come later
if(!importAttributeType) {
sourcesToRecurse.add(normalized);
}
}
}
}
return {
sources,
sourcesToRecurse,
}
}
// second argument used to be `alreadyParsedSet = new Set()`, keep that backwards compat
async function find(filePath, options = {}) {
if(options instanceof Set) {
options = {
alreadyParsedSet: options
};
}
if(!options.alreadyParsedSet) {
options.alreadyParsedSet = new Set();
}
// TODO add a cache here
// Unfortunately we need to read the entire file, imports need to be at the top level but they can be anywhere 🫠
let normalized = normalizeFilePath(filePath);
if(options.alreadyParsedSet.has(normalized) || !existsSync(filePath)) {
return [];
}
options.alreadyParsedSet.add(normalized);
let contents = readFileSync(normalized, { encoding: 'utf8' });
let { sources, sourcesToRecurse } = await getSources(filePath, contents, options);
// Recurse for nested deps
for(let source of sourcesToRecurse) {
let s = await find(source, options);
for(let p of s) {
if(sources.has(p) || p === filePath) {
continue;
}
sources.add(p);
}
}
return Array.from(sources);
}
function mergeGraphs(rootGraph, ...graphs) {
if(!(rootGraph instanceof DepGraph)) {
throw new Error("Incorrect type passed to mergeGraphs, expected DepGraph");
}
for(let g of graphs) {
for(let node of g.overallOrder()) {
if(!rootGraph.hasNode(node)) {
rootGraph.addNode(node);
}
for(let dep of g.directDependenciesOf(node)) {
rootGraph.addDependency(node, dep);
}
}
}
}
// second argument used to be `alreadyParsedSet = new Set()`, keep that backwards compat
async function findGraph(filePath, options = {}) {
if(options instanceof Set) {
options = {
alreadyParsedSet: options
};
}
if(!options.alreadyParsedSet) {
options.alreadyParsedSet = new Set();
}
let graph = new DepGraph();
let normalized = normalizeFilePath(filePath);
graph.addNode(filePath);
if(options.alreadyParsedSet.has(normalized) || !existsSync(filePath)) {
return graph;
}
options.alreadyParsedSet.add(normalized);
let contents = readFileSync(normalized, "utf8");
let { sources, sourcesToRecurse } = await getSources(filePath, contents, options);
for(let source of sources) {
if(!graph.hasNode(source)) {
graph.addNode(source);
}
graph.addDependency(normalized, source);
}
// Recurse for nested deps
for(let source of sourcesToRecurse) {
let recursedGraph = await findGraph(source, options);
mergeGraphs(graph, recursedGraph);
}
return graph;
}
module.exports = {
find,
findGraph,
mergeGraphs,
};

View File

@ -1,26 +0,0 @@
{
"name": "@11ty/dependency-tree-esm",
"version": "2.0.4",
"description": "Finds all JavaScript ES Module dependencies from a filename.",
"main": "main.js",
"type": "commonjs",
"scripts": {
"test": "echo \"Error: run tests from root directory\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/11ty/eleventy-utils.git"
},
"author": {
"name": "Zach Leatherman",
"email": "zach@zachleat.com",
"url": "https://zachleat.com/"
},
"license": "MIT",
"dependencies": {
"@11ty/eleventy-utils": "^2.0.7",
"acorn": "^8.15.0",
"dependency-graph": "^1.0.0",
"normalize-path": "^3.0.0"
}
}

View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2019 Zach Leatherman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,109 +0,0 @@
# `@11ty/dependency-tree`
Returns an unordered array of local paths to dependencies of a CommonJS node JavaScript file (everything it or any of its dependencies `require`s).
* See also: [`@11ty/dependency-tree-esm`](https://github.com/11ty/eleventy-utils/tree/main/parse-deps-esm) for the ESM version.
* See also: [`@11ty/dependency-tree-typescript`](https://github.com/11ty/eleventy-utils/tree/main/parse-deps-typescript) for the TypeScript version.
Reduced feature (faster) alternative to the [`dependency-tree` package](https://www.npmjs.com/package/dependency-tree). This is used by Eleventy to find dependencies of a JavaScript file to watch for changes to re-run Eleventys build.
## Big Huge Caveat
⚠ A big caveat to this plugin is that it will require the file in order to build a dependency tree. So if your module has side effects and you dont want it to execute—do not use this!
## Installation
```
npm install --save-dev @11ty/dependency-tree
```
## Features
* Ignores `node_modules`
* Or, use `nodeModuleNames` to control whether or not `node_modules` package names are included (added in v2.0.1)
* Ignores Nodes built-ins (e.g. `path`)
* Handles circular dependencies (Node does this too)
## Usage
```js
// my-file.js
// if my-local-dependency.js has dependencies, it will include those too
const test = require("./my-local-dependency.js");
// ignored, is a built-in
const path = require("path");
```
```js
const DependencyTree = require("@11ty/dependency-tree");
DependencyTree("./my-file.js");
// returns ["./my-local-dependency.js"]
```
### `allowNotFound`
```js
const DependencyTree = require("@11ty/dependency-tree");
DependencyTree("./this-does-not-exist.js"); // throws an error
DependencyTree("./this-does-not-exist.js", { allowNotFound: true });
// returns []
```
### `nodeModuleNames`
(Added in v2.0.1) Controls whether or not node package names are included in the list of dependencies.
* `nodeModuleNames: "include"`: included alongside the local JS files.
* `nodeModuleNames: "exclude"` (default): node module package names are excluded.
* `nodeModuleNames: "only"`: only node module package names are returned.
```js
// my-file.js:
require("./my-local-dependency.js");
require("@11ty/eleventy");
```
```js
const DependencyTree = require("@11ty/dependency-tree");
DependencyTree("./my-file.js");
// returns ["./my-local-dependency.js"]
DependencyTree("./my-file.js", { nodeModuleNames: "exclude" });
// returns ["./my-local-dependency.js"]
DependencyTree("./my-file.js", { nodeModuleNames: "include" });
// returns ["./my-local-dependency.js", "@11ty/eleventy"]
DependencyTree("./my-file.js", { nodeModuleNames: "only" });
// returns ["@11ty/eleventy"]
```
#### (Deprecated) `nodeModuleNamesOnly`
(Added in v2.0.0) Changed to use `nodeModuleNames` option instead. Backwards compatibility is maintained automatically.
* `nodeModuleNamesOnly: false` is mapped to `nodeModuleNames: "exclude"`
* `nodeModuleNamesOnly: true` is mapped to `nodeModuleNames: "only"`
If both `nodeModuleNamesOnly` and `nodeModuleNames` are included in options, `nodeModuleNames` takes precedence.
### `getPackagesByType` method
_Added in v4.0.2._
```js
const DependencyTree = require("@11ty/dependency-tree");
const {getPackagesByType} = DependencyTree;
// With `require(esm)` support, some targets may be modules!
// Return separate lists for commonjs and esm lists
getPackagesByType("./my-file.js");
// returns { commonjs: ["./my-file.js"], esm: [] }
```

View File

@ -1,157 +0,0 @@
const path = require("node:path");
const { TemplatePath } = require("@11ty/eleventy-utils");
function getAbsolutePath(filename) {
let normalizedFilename = path.normalize(filename); // removes dot slash
let hasDotSlash = filename.startsWith("./");
return hasDotSlash ? path.join(path.resolve("."), normalizedFilename) : normalizedFilename;
}
function getRelativePath(filename) {
let normalizedFilename = path.normalize(filename); // removes dot slash
let workingDirectory = path.resolve(".");
let result = "./" + (normalizedFilename.startsWith(workingDirectory) ? normalizedFilename.substr(workingDirectory.length + 1) : normalizedFilename);
return result;
}
function getNodeModuleName(filename) {
let foundNodeModules = false;
let moduleName = [];
let s = filename.split(path.sep);
for(let entry of s) {
if(entry === '.pnpm') {
foundNodeModules = false;
}
if(foundNodeModules) {
moduleName.push(entry);
if(!entry.startsWith("@")) {
return moduleName.join("/");
}
}
if(entry === "node_modules") {
foundNodeModules = true;
}
}
return false;
}
/* unordered */
function getDependenciesFor(filename, avoidCircular, optionsArg = {}) {
// backwards compatibility with `nodeModuleNamesOnly` boolean option
// Using `nodeModuleNames` property moving forward
if(("nodeModuleNamesOnly" in optionsArg) && !("nodeModuleNames" in optionsArg)) {
if(optionsArg.nodeModuleNamesOnly === true) {
optionsArg.nodeModuleNames = "only";
}
if(optionsArg.nodeModuleNamesOnly === false) {
optionsArg.nodeModuleNames = "exclude";
}
}
let options = Object.assign({
allowNotFound: false,
nodeModuleNames: "exclude", // also "include" or "only"
}, optionsArg);
let absoluteFilename = getAbsolutePath(filename);
let modules = new Set();
try {
let res = require(absoluteFilename);
if(res[Symbol.toStringTag] === "Module" || res.__esModule) {
modules.add(filename);
}
} catch(e) {
if(e.code === "MODULE_NOT_FOUND" && options.allowNotFound) {
// do nothing
} else {
throw e;
}
}
let mod;
for(let entry in require.cache) {
if(entry === absoluteFilename) {
mod = require.cache[entry];
break;
}
}
let dependencies = new Set();
if(!mod) {
if(!options.allowNotFound) {
throw new Error(`Could not find ${filename} in @11ty/dependency-tree`);
}
} else {
let relativeFilename = getRelativePath(mod.filename);
if(!avoidCircular) {
avoidCircular = {};
} else if(options.nodeModuleNames !== "only") {
dependencies.add(relativeFilename);
}
avoidCircular[relativeFilename] = true;
if(Array.isArray(mod.children) && mod.children.length > 0) {
for(let child of mod.children) {
let relativeChildFilename = getRelativePath(child.filename);
let nodeModuleName = getNodeModuleName(child.filename);
if(options.nodeModuleNames !== "exclude" && nodeModuleName) {
dependencies.add(nodeModuleName);
}
// Add dependencies of this dependency (not top level node_modules)
if(nodeModuleName === false) {
if(!dependencies.has(relativeChildFilename) && // avoid infinite looping with circular deps
!avoidCircular[relativeChildFilename] ) {
let { commonjs, esm } = getDependenciesFor(relativeChildFilename, avoidCircular, options);
for(let dependency of commonjs) {
dependencies.add(dependency);
}
for(let dependency of esm) {
modules.add(dependency);
}
}
}
}
}
}
return {
esm: modules,
commonjs: dependencies,
}
}
function normalizeList(packageSet) {
return Array.from( packageSet ).map(filePath => {
if(filePath.startsWith("./")) {
return TemplatePath.standardizeFilePath(filePath);
}
return filePath; // node_module name
})
}
function getCleanDependencyListFor(filename, options = {}) {
let { commonjs } = getDependenciesFor(filename, null, options);
return normalizeList(commonjs);
}
function getCleanDependencyListByTypeFor(filename, options = {}) {
let { commonjs, esm } = getDependenciesFor(filename, null, options);
return {
commonjs: normalizeList(commonjs),
esm: normalizeList(esm),
};
}
module.exports = getCleanDependencyListFor;
module.exports.getPackagesByType = getCleanDependencyListByTypeFor;
module.exports.getNodeModuleName = getNodeModuleName;

View File

@ -1,42 +0,0 @@
{
"name": "@11ty/dependency-tree",
"version": "4.0.2",
"description": "Finds all JavaScript CommmonJS require() dependencies from a filename.",
"main": "main.js",
"files": [
"main.js",
"!test",
"!test/**"
],
"scripts": {
"test": "npx ava"
},
"repository": {
"type": "git",
"url": "git+https://github.com/11ty/eleventy-dependency-tree.git"
},
"author": {
"name": "Zach Leatherman",
"email": "zach@zachleat.com",
"url": "https://zachleat.com/"
},
"license": "MIT",
"ava": {
"files": [
"./test/*.js"
],
"watchMode": {
"ignoreChanged": [
"./test/stubs/**"
]
}
},
"devDependencies": {
"@sindresorhus/is": "^4.6.0",
"ava": "^6.4.1",
"semver": "^7.7.3"
},
"dependencies": {
"@11ty/eleventy-utils": "^2.0.1"
}
}

View File

@ -1,60 +0,0 @@
<p align="center"><img src="https://www.11ty.dev/img/logo-github.svg" width="200" height="200" alt="11ty Logo"></p>
# eleventy-dev-server 🕚⚡️🎈🐀
A minimal, modern, generic, hot-reloading local web server to help web developers.
## ➡ [Documentation](https://www.11ty.dev/docs/watch-serve/#eleventy-dev-server)
- Please star [Eleventy on GitHub](https://github.com/11ty/eleventy/)!
- Follow us on Twitter [@eleven_ty](https://twitter.com/eleven_ty)
- Support [11ty on Open Collective](https://opencollective.com/11ty)
- [11ty on npm](https://www.npmjs.com/org/11ty)
- [11ty on GitHub](https://github.com/11ty)
[![npm Version](https://img.shields.io/npm/v/@11ty/eleventy-dev-server.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy-dev-server)
## Installation
This is bundled with `@11ty/eleventy` (and you do not need to install it separately) in Eleventy v2.0.
## CLI
Eleventy Dev Server now also includes a CLI. The CLI is for **standalone** (non-Eleventy) use only: separate installation is unnecessary if youre using this server with `@11ty/eleventy`.
```sh
npm install -g @11ty/eleventy-dev-server
# Alternatively, install locally into your project
npm install @11ty/eleventy-dev-server
```
This package requires Node 18 or newer.
### CLI Usage
```sh
# Serve the current directory
npx @11ty/eleventy-dev-server
# Serve a different subdirectory (also aliased as --input)
npx @11ty/eleventy-dev-server --dir=_site
# Disable the `domdiff` feature
npx @11ty/eleventy-dev-server --domdiff=false
# Full command list in the Help
npx @11ty/eleventy-dev-server --help
```
## Tests
```
npm run test
```
- We use the [ava JavaScript test runner](https://github.com/avajs/ava) ([Assertions documentation](https://github.com/avajs/ava/blob/master/docs/03-assertions.md))
## Changelog
* `v2.0.0` bumps Node.js minimum to 18.

View File

@ -1,89 +0,0 @@
const pkg = require("./package.json");
const EleventyDevServer = require("./server.js");
const Logger = {
info: function(...args) {
console.log( "[11ty/eleventy-dev-server]", ...args );
},
error: function(...args) {
console.error( "[11ty/eleventy-dev-server]", ...args );
},
fatal: function(...args) {
Logger.error(...args);
process.exitCode = 1;
}
};
Logger.log = Logger.info;
class Cli {
static getVersion() {
return pkg.version;
}
static getHelp() {
return `Usage:
eleventy-dev-server
eleventy-dev-server --dir=_site
eleventy-dev-server --port=3000
Arguments:
--version
--dir=.
Directory to serve (default: \`.\`)
--input (alias for --dir)
--port=8080
Run the web server on this port (default: \`8080\`)
Will autoincrement if already in use.
--domdiff (enabled, default)
--domdiff=false (disabled)
Apply HTML changes without a full page reload.
--help`;
}
static getDefaultOptions() {
return {
port: "8080",
input: ".",
domDiff: true,
}
}
async serve(options = {}) {
this.options = Object.assign(Cli.getDefaultOptions(), options);
this.server = EleventyDevServer.getServer("eleventy-dev-server-cli", this.options.input, {
// TODO allow server configuration extensions
showVersion: true,
logger: Logger,
domDiff: this.options.domDiff,
// CLI watches all files in the folder by default
// this is different from Eleventy usage!
watch: [ this.options.input ],
});
this.server.serve(this.options.port);
// TODO? send any errors here to the server too
// with server.sendError({ error });
}
close() {
if(this.server) {
return this.server.close();
}
}
}
module.exports = {
Logger,
Cli
}

View File

@ -1,336 +0,0 @@
class Util {
static pad(num, digits = 2) {
let zeroes = new Array(digits + 1).join(0);
return `${zeroes}${num}`.slice(-1 * digits);
}
static log(message) {
Util.output("log", message);
}
static error(message, error) {
Util.output("error", message, error);
}
static output(type, ...messages) {
let now = new Date();
let date = `${Util.pad(now.getUTCHours())}:${Util.pad(
now.getUTCMinutes()
)}:${Util.pad(now.getUTCSeconds())}.${Util.pad(
now.getUTCMilliseconds(),
3
)}`;
console[type](`[11ty][${date} UTC]`, ...messages);
}
static capitalize(word) {
return word.substr(0, 1).toUpperCase() + word.substr(1);
}
static matchRootAttributes(htmlContent) {
// Workaround for morphdom bug with attributes on <html> https://github.com/11ty/eleventy-dev-server/issues/6
// Note also `childrenOnly: true` above
const parser = new DOMParser();
let parsed = parser.parseFromString(htmlContent, "text/html");
let parsedDoc = parsed.documentElement;
let newAttrs = parsedDoc.getAttributeNames();
let docEl = document.documentElement;
// Remove old
let removedAttrs = docEl.getAttributeNames().filter(name => !newAttrs.includes(name));
for(let attr of removedAttrs) {
docEl.removeAttribute(attr);
}
// Add new
for(let attr of newAttrs) {
docEl.setAttribute(attr, parsedDoc.getAttribute(attr));
}
}
static isEleventyLinkNodeMatch(from, to) {
// Issue #18 https://github.com/11ty/eleventy-dev-server/issues/18
// Dont update a <link> if the _11ty searchParam is the only thing thats different
if(from.tagName !== "LINK" || to.tagName !== "LINK") {
return false;
}
let oldWithoutHref = from.cloneNode();
let newWithoutHref = to.cloneNode();
oldWithoutHref.removeAttribute("href");
newWithoutHref.removeAttribute("href");
// if all other attributes besides href match
if(!oldWithoutHref.isEqualNode(newWithoutHref)) {
return false;
}
let oldUrl = new URL(from.href);
let newUrl = new URL(to.href);
// morphdom wants to force href="style.css?_11ty" => href="style.css"
let paramName = EleventyReload.QUERY_PARAM;
let isErasing = oldUrl.searchParams.has(paramName) && !newUrl.searchParams.has(paramName);
if(!isErasing) {
// not a match if _11ty has a new value (not being erased)
return false;
}
oldUrl.searchParams.set(paramName, "");
newUrl.searchParams.set(paramName, "");
// is a match if erasing and the rest of the href matches too
return oldUrl.toString() === newUrl.toString();
}
// https://github.com/patrick-steele-idem/morphdom/issues/178#issuecomment-652562769
static runScript(source, target) {
let script = document.createElement('script');
// copy over the attributes
for(let attr of [...source.attributes]) {
script.setAttribute(attr.nodeName ,attr.nodeValue);
}
script.innerHTML = source.innerHTML;
(target || source).replaceWith(script);
}
static fullPageReload() {
Util.log(`Page reload initiated.`);
window.location.reload();
}
}
class EleventyReload {
static QUERY_PARAM = "_11ty";
static reloadTypes = {
css: (files, build = {}) => {
// Initiate a full page refresh if a CSS change is made but does match any stylesheet url
// `build.stylesheets` available in Eleventy v3.0.1-alpha.5+
if(Array.isArray(build.stylesheets)) {
let match = false;
for (let link of document.querySelectorAll(`link[rel="stylesheet"]`)) {
if (link.href) {
let url = new URL(link.href);
if(build.stylesheets.includes(url.pathname)) {
match = true;
}
}
}
if(!match) {
Util.fullPageReload();
return;
}
}
for (let link of document.querySelectorAll(`link[rel="stylesheet"]`)) {
if (link.href) {
let url = new URL(link.href);
url.searchParams.set(this.QUERY_PARAM, Date.now());
link.href = url.toString();
}
}
Util.log(`CSS updated without page reload.`);
},
default: async (files, build = {}) => {
let morphed = false;
let domdiffTemplates = (build?.templates || []).filter(({url, inputPath}) => {
return url === document.location.pathname && (files || []).includes(inputPath);
});
if(domdiffTemplates.length === 0) {
Util.fullPageReload();
return;
}
try {
// Important: using `./` allows the `.11ty` folder name to be changed
const { default: morphdom } = await import(`./morphdom.js`);
for (let {url, inputPath, content} of domdiffTemplates) {
// Notable limitation: this wont re-run script elements or JavaScript page lifecycle events (load/DOMContentLoaded)
morphed = true;
morphdom(document.documentElement, content, {
childrenOnly: true,
onBeforeElUpdated: function (fromEl, toEl) {
if (fromEl.nodeName === "SCRIPT" && toEl.nodeName === "SCRIPT") {
if(toEl.innerHTML !== fromEl.innerHTML) {
Util.log(`JavaScript modified, reload initiated.`);
window.location.reload();
}
return false;
}
// Speed-up trick from morphdom docs
// https://dom.spec.whatwg.org/#concept-node-equals
if (fromEl.isEqualNode(toEl)) {
return false;
}
if(Util.isEleventyLinkNodeMatch(fromEl, toEl)) {
return false;
}
return true;
},
addChild: function(parent, child) {
// Declarative Shadow DOM https://github.com/11ty/eleventy-dev-server/issues/90
if(child.nodeName === "TEMPLATE" && child.hasAttribute("shadowrootmode")) {
let root = parent.shadowRoot;
if(root) {
// remove all shadow root children
while(root.firstChild) {
root.removeChild(root.firstChild);
}
}
for(let newChild of child.content.childNodes) {
root.appendChild(newChild);
}
} else {
parent.appendChild(child);
}
},
onNodeAdded: function (node) {
if (node.nodeName === 'SCRIPT') {
Util.log(`JavaScript added, reload initiated.`);
window.location.reload();
}
},
onElUpdated: function(node) {
// Re-attach custom elements
if(customElements.get(node.tagName.toLowerCase())) {
let placeholder = document.createElement("div");
node.replaceWith(placeholder);
requestAnimationFrame(() => {
placeholder.replaceWith(node);
placeholder = undefined;
});
}
}
});
Util.matchRootAttributes(content);
Util.log(`HTML delta applied without page reload.`);
}
} catch(e) {
Util.error( "Morphdom error", e );
}
if (!morphed) {
Util.fullPageReload();
}
}
}
constructor() {
this.connectionMessageShown = false;
this.reconnectEventCallback = this.reconnect.bind(this);
}
init(options = {}) {
if (!("WebSocket" in window)) {
return;
}
let documentUrl = new URL(document.location.href);
let reloadPort = new URL(import.meta.url).searchParams.get("reloadPort");
if(reloadPort) {
documentUrl.port = reloadPort;
}
let { protocol, host } = documentUrl;
// works with http (ws) and https (wss)
let websocketProtocol = protocol.replace("http", "ws");
let socket = new WebSocket(`${websocketProtocol}//${host}`);
socket.addEventListener("message", async (event) => {
try {
let data = JSON.parse(event.data);
// Util.log( JSON.stringify(data, null, 2) );
let { type } = data;
if (type === "eleventy.reload") {
await this.onreload(data);
} else if (type === "eleventy.msg") {
Util.log(`${data.message}`);
} else if (type === "eleventy.error") {
// Log Eleventy build errors
// Extra parsing for Node Error objects
let e = JSON.parse(data.error);
Util.error(`Build error: ${e.message}`, e);
} else if (type === "eleventy.status") {
// Full page reload on initial reconnect
if (data.status === "connected" && options.mode === "reconnect") {
window.location.reload();
}
if(data.status === "connected") {
// With multiple windows, only show one connection message
if(!this.isConnected) {
Util.log(Util.capitalize(data.status));
}
this.connectionMessageShown = true;
} else {
if(data.status === "disconnected") {
this.addReconnectListeners();
}
Util.log(Util.capitalize(data.status));
}
} else {
Util.log("Unknown event type", data);
}
} catch (e) {
Util.error(`Error parsing ${event.data}: ${e.message}`, e);
}
});
socket.addEventListener("open", () => {
// no reconnection when the connect is already open
this.removeReconnectListeners();
});
socket.addEventListener("close", () => {
this.connectionMessageShown = false;
this.addReconnectListeners();
});
}
reconnect() {
Util.log( "Reconnecting…" );
this.init({ mode: "reconnect" });
}
async onreload({ subtype, files, build }) {
if(!EleventyReload.reloadTypes[subtype]) {
subtype = "default";
}
await EleventyReload.reloadTypes[subtype](files, build);
}
addReconnectListeners() {
this.removeReconnectListeners();
window.addEventListener("focus", this.reconnectEventCallback);
window.addEventListener("visibilitychange", this.reconnectEventCallback);
}
removeReconnectListeners() {
window.removeEventListener("focus", this.reconnectEventCallback);
window.removeEventListener("visibilitychange", this.reconnectEventCallback);
}
}
let reloader = new EleventyReload();
reloader.init();

View File

@ -1,77 +0,0 @@
#!/usr/bin/env node
const pkg = require("./package.json");
// Node check
require("please-upgrade-node")(pkg, {
message: function (requiredVersion) {
return (
"eleventy-dev-server requires Node " +
requiredVersion +
". You will need to upgrade Node!"
);
},
});
const { Logger, Cli } = require("./cli.js");
const debug = require("debug")("Eleventy:DevServer");
try {
const defaults = Cli.getDefaultOptions();
for(let key in defaults) {
if(key.toLowerCase() !== key) {
defaults[key.toLowerCase()] = defaults[key];
delete defaults[key];
}
}
const argv = require("minimist")(process.argv.slice(2), {
string: [
"dir",
"input", // alias for dir
"port",
],
boolean: [
"version",
"help",
"domdiff",
],
default: defaults,
unknown: function (unknownArgument) {
throw new Error(
`We dont know what '${unknownArgument}' is. Use --help to see the list of supported commands.`
);
},
});
debug("command: eleventy-dev-server %o", argv);
process.on("unhandledRejection", (error, promise) => {
Logger.fatal("Unhandled rejection in promise:", promise, error);
});
process.on("uncaughtException", (error) => {
Logger.fatal("Uncaught exception:", error);
});
if (argv.version) {
console.log(Cli.getVersion());
} else if (argv.help) {
console.log(Cli.getHelp());
} else {
let cli = new Cli();
cli.serve({
input: argv.dir || argv.input,
port: argv.port,
domDiff: argv.domdiff,
});
process.on("SIGINT", async () => {
await cli.close();
process.exitCode = 0;
});
}
} catch (e) {
Logger.fatal("Fatal Error:", e)
}

View File

@ -1,57 +0,0 @@
{
"name": "@11ty/eleventy-dev-server",
"version": "2.0.8",
"description": "A minimal, modern, generic, hot-reloading local web server to help web developers.",
"main": "server.js",
"scripts": {
"test": "npx ava --verbose",
"sample": "node cmd.js --input=test/stubs"
},
"license": "MIT",
"engines": {
"node": ">=18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/11ty"
},
"bin": {
"eleventy-dev-server": "./cmd.js"
},
"keywords": [
"eleventy",
"server",
"cli"
],
"publishConfig": {
"access": "public"
},
"author": {
"name": "Zach Leatherman",
"email": "zachleatherman@gmail.com",
"url": "https://zachleat.com/"
},
"repository": {
"type": "git",
"url": "git://github.com/11ty/eleventy-dev-server.git"
},
"bugs": "https://github.com/11ty/eleventy-dev-server/issues",
"homepage": "https://github.com/11ty/eleventy-dev-server/",
"dependencies": {
"@11ty/eleventy-utils": "^2.0.1",
"chokidar": "^3.6.0",
"debug": "^4.4.0",
"finalhandler": "^1.3.1",
"mime": "^3.0.0",
"minimist": "^1.2.8",
"morphdom": "^2.7.4",
"please-upgrade-node": "^3.2.0",
"send": "^1.1.0",
"ssri": "^11.0.0",
"urlpattern-polyfill": "^10.0.0",
"ws": "^8.18.1"
},
"devDependencies": {
"ava": "^6.2.0"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +0,0 @@
const os = require("node:os");
const INTERFACE_FAMILIES = ["IPv4"];
module.exports = function() {
return Object.values(os.networkInterfaces()).flat().filter(interface => {
return interface.internal === false && INTERFACE_FAMILIES.includes(interface.family);
}).map(interface => interface.address);
};

View File

@ -1,130 +0,0 @@
function getContentType(headers) {
if(!headers) {
return;
}
for(let key in headers) {
if(key.toLowerCase() === "content-type") {
return headers[key];
}
}
}
// Inspired by `resp-modifier` https://github.com/shakyShane/resp-modifier/blob/4a000203c9db630bcfc3b6bb8ea2abc090ae0139/index.js
function wrapResponse(resp, transformHtml) {
resp._wrappedOriginalWrite = resp.write;
resp._wrappedOriginalWriteHead = resp.writeHead;
resp._wrappedOriginalEnd = resp.end;
resp._wrappedHeaders = [];
resp._wrappedTransformHtml = transformHtml;
resp._hasEnded = false;
resp._shouldForceEnd = false;
// Compatibility with web standards Response()
Object.defineProperty(resp, "body", {
// Returns write cache
get: function() {
if(typeof this._writeCache === "string") {
return this._writeCache;
}
},
// Usage:
// res.body = ""; // overwrite existing content
// res.body += ""; // append to existing content, can also res.write("") to append
set: function(data) {
if(typeof data === "string") {
this._writeCache = data;
}
}
});
// Compatibility with web standards Response()
Object.defineProperty(resp, "bodyUsed", {
get: function() {
return this._hasEnded;
}
})
// Original signature writeHead(statusCode[, statusMessage][, headers])
resp.writeHead = function(statusCode, ...args) {
let headers = args[args.length - 1];
// statusMessage is a string
if(typeof headers !== "string") {
this._contentType = getContentType(headers);
}
if((this._contentType || "").startsWith("text/html")) {
this._wrappedHeaders.push([statusCode, ...args]);
} else {
return this._wrappedOriginalWriteHead(statusCode, ...args);
}
return this;
}
// data can be a String or Buffer
resp.write = function(data, ...args) {
if(typeof data === "string") {
if(!this._writeCache) {
this._writeCache = "";
}
// TODO encoding and callback args
this._writeCache += data;
} else {
// Buffers
return this._wrappedOriginalWrite(data, ...args);
}
return this;
}
// data can be a String or Buffer
resp.end = function(data, encoding, callback) {
resp._hasEnded = true;
if(typeof this._writeCache === "string" || typeof data === "string") {
// Strings
if(!this._writeCache) {
this._writeCache = "";
}
if(typeof data === "string") {
this._writeCache += data;
}
let result = this._writeCache;
// Only transform HTML
// Note the “setHeader versus writeHead” note on https://nodejs.org/api/http.html#responsewriteheadstatuscode-statusmessage-headers
let contentType = this._contentType || getContentType(this.getHeaders());
if(contentType?.startsWith("text/html")) {
if(this._wrappedTransformHtml && typeof this._wrappedTransformHtml === "function") {
result = this._wrappedTransformHtml(result);
// uncompressed size: https://github.com/w3c/ServiceWorker/issues/339
this.setHeader("Content-Length", Buffer.byteLength(result));
}
}
for(let headers of this._wrappedHeaders) {
this._wrappedOriginalWriteHead(...headers);
}
this._writeCache = [];
this._wrappedOriginalWrite(result, encoding)
return this._wrappedOriginalEnd(callback);
} else {
// Buffer or Uint8Array
for(let headers of this._wrappedHeaders) {
this._wrappedOriginalWriteHead(...headers);
}
if(data) {
this._wrappedOriginalWrite(data, encoding);
}
return this._wrappedOriginalEnd(callback);
}
}
return resp;
}
module.exports = wrapResponse;

View File

@ -1,337 +0,0 @@
# eleventy-plugin-bundle
Little bundles of code, little bundles of joy.
Create minimal per-page or app-level bundles of CSS, JavaScript, or HTML to be included in your Eleventy project.
Makes it easy to implement Critical CSS, in-use-only CSS/JS bundles, SVG icon libraries, or secondary HTML content to load via XHR.
## Why?
This project is a minimum-viable-bundler and asset pipeline in Eleventy. It does not perform any transpilation or code manipulation (by default). The code you put in is the code you get out (with configurable `transforms` if youd like to modify the code).
For more larger, more complex use cases you may want to use a more full featured bundler like Vite, Parcel, Webpack, rollup, esbuild, or others.
But do note that a full-featured bundler has a significant build performance cost, so take care to weigh the cost of using that style of bundler against whether or not this plugin has sufficient functionality for your use case—especially as the platform matures and we see diminishing returns on code transpilation (ES modules everywhere).
## Installation
No installation necessary. Starting with Eleventy `v3.0.0-alpha.10` and newer, this plugin is now bundled with Eleventy.
## Usage
By default, Bundle Plugin v2.0 does not include any default bundles. You must add these yourself via `eleventyConfig.addBundle`. One notable exception happens when using the WebC Eleventy Plugin, which adds `css`, `js`, and `html` bundles for you.
To create a bundle type, use `eleventyConfig.addBundle` in your Eleventy configuration file (default `.eleventy.js`):
```js
// .eleventy.js
export default function(eleventyConfig) {
eleventyConfig.addBundle("css");
};
```
This does two things:
1. Creates a new `css` shortcode for adding arbitrary code to this bundle
2. Adds `"css"` as an eligible type argument to the `getBundle` and `getBundleFileUrl` shortcodes.
### Full options list
```js
export default function(eleventyConfig) {
eleventyConfig.addBundle("css", {
// (Optional) Folder (relative to output directory) files will write to
toFileDirectory: "bundle",
// (Optional) File extension used for bundle file output, defaults to bundle name
outputFileExtension: "css",
// (Optional) Name of shortcode for use in templates, defaults to bundle name
shortcodeName: "css",
// shortcodeName: false, // disable this feature.
// (Optional) Modify bundle content
transforms: [],
// (Optional) If two identical code blocks exist in non-default buckets, theyll be hoisted to the first bucket in common.
hoist: true,
// (Optional) In 11ty.js templates, having a named export of `bundle` will populate your bundles.
bundleExportKey: "bundle",
// bundleExportKey: false, // disable this feature.
});
};
```
Read more about [`hoist` and duplicate bundle hoisting](https://github.com/11ty/eleventy-plugin-bundle/issues/5).
### Universal Shortcodes
The following Universal Shortcodes (available in `njk`, `liquid`, `hbs`, `11ty.js`, and `webc`) are provided by this plugin:
* `getBundle` to retrieve bundled code as a string.
* `getBundleFileUrl` to create a bundle file on disk and retrieve the URL to that file.
Heres a [real-world commit showing this in use on the `eleventy-base-blog` project](https://github.com/11ty/eleventy-base-blog/commit/c9595d8f42752fa72c66991c71f281ea960840c9?diff=split).
### Example: Add bundle code in a Markdown file in Eleventy
```md
# My Blog Post
This is some content, I am writing markup.
{% css %}
em { font-style: italic; }
{% endcss %}
## More Markdown
{% css %}
strong { font-weight: bold; }
{% endcss %}
```
Renders to:
```html
<h1>My Blog Post</h1>
<p>This is some content, I am writing markup.</p>
<h2>More Markdown</h2>
```
Note that the bundled code is excluded!
_There are a few [more examples below](#examples)!_
### Render bundle code
```html
<!-- Use this *anywhere*: a layout file, content template, etc -->
<style>{% getBundle "css" %}</style>
<!--
You can add more code to the bundle after calling
getBundle and it will be included.
-->
{% css %}* { color: orange; }{% endcss %}
```
### Write a bundle to a file
Writes the bundle content to a content-hashed file location in your output directory and returns the URL to the file for use like this:
```html
<link rel="stylesheet" href="{% getBundleFileUrl "css" %}">
```
Note that writing bundles to files will likely be slower for empty-cache first time visitors but better cached in the browser for repeat-views (and across multiple pages, too).
### Asset bucketing
```html
<!-- This goes into a `defer` bucket (the bucket can be any string value) -->
{% css "defer" %}em { font-style: italic; }{% endcss %}
```
```html
<!-- Pass the arbitrary `defer` bucket name as an additional argument -->
<style>{% getBundle "css", "defer" %}</style>
<link rel="stylesheet" href="{% getBundleFileUrl 'css', 'defer' %}">
```
A `default` bucket is implied:
```html
<!-- These two statements are the same -->
{% css %}em { font-style: italic; }{% endcss %}
{% css "default" %}em { font-style: italic; }{% endcss %}
<!-- These two are the same too -->
<style>{% getBundle "css" %}</style>
<style>{% getBundle "css", "default" %}</style>
```
### Examples
#### Critical CSS
```js
// .eleventy.js
export default function(eleventyConfig) {
eleventyConfig.addBundle("css");
};
```
Use asset bucketing to divide CSS between the `default` bucket and a `defer` bucket, loaded asynchronously.
_(Note that some HTML boilerplate has been omitted from the sample below)_
```html
<!-- … -->
<head>
<!-- Inlined critical styles -->
<style>{% getBundle "css" %}</style>
<!-- Deferred non-critical styles -->
<link rel="stylesheet" href="{% getBundleFileUrl 'css', 'defer' %}" media="print" onload="this.media='all'">
<noscript>
<link rel="stylesheet" href="{% getBundleFileUrl 'css', 'defer' %}">
</noscript>
</head>
<body>
<!-- This goes into a `default` bucket -->
{% css %}/* Inline in the head, great with @font-face! */{% endcss %}
<!-- This goes into a `defer` bucket (the bucket can be any string value) -->
{% css "defer" %}/* Load me later */{% endcss %}
</body>
<!-- … -->
```
**Related**:
* Check out the [demo of Critical CSS using Eleventy Edge](https://demo-eleventy-edge.netlify.app/critical-css/) for a repeat view optimization without JavaScript.
* You may want to improve the above code with [`fetchpriority`](https://www.smashingmagazine.com/2022/04/boost-resource-loading-new-priority-hint-fetchpriority/) when [browser support improves](https://caniuse.com/mdn-html_elements_link_fetchpriority).
#### SVG Icon Library
Here an `svg` is bundle is created.
```js
// .eleventy.js
export default function(eleventyConfig) {
eleventyConfig.addBundle("svg");
};
```
```html
<svg width="0" height="0" aria-hidden="true" style="position: absolute;">
<defs>{% getBundle "svg" %}</defs>
</svg>
<!-- And anywhere on your page you can add icons to the set -->
{% svg %}
<g id="icon-close"><path d="…" /></g>
{% endsvg %}
And now you can use `icon-close` in as many SVG instances as youd like (without repeating the heftier SVG content).
<svg><use xlink:href="#icon-close"></use></svg>
<svg><use xlink:href="#icon-close"></use></svg>
<svg><use xlink:href="#icon-close"></use></svg>
<svg><use xlink:href="#icon-close"></use></svg>
```
#### React Helmet-style `<head>` additions
```js
// .eleventy.js
export default function(eleventyConfig) {
eleventyConfig.addBundle("html");
};
```
This might exist in an Eleventy layout file:
```html
<head>
{% getBundle "html", "head" %}
</head>
```
And then in your content you might want to page-specific `preconnect`:
```html
{% html "head" %}
<link href="https://v1.opengraph.11ty.dev" rel="preconnect" crossorigin>
{% endhtml %}
```
#### Bundle Sass with the Render Plugin
You can render template syntax inside of the `{% css %}` shortcode too, if youd like to do more advanced things using Eleventy template types.
This example assumes you have added the [Render plugin](https://www.11ty.dev/docs/plugins/render/) and the [`scss` custom template type](https://www.11ty.dev/docs/languages/custom/) to your Eleventy configuration file.
```html
{% css %}
{% renderTemplate "scss" %}
h1 { .test { color: red; } }
{% endrenderTemplate %}
{% endcss %}
```
Now the compiled Sass is available in your default bundle and will show up in `getBundle` and `getBundleFileUrl`.
#### Use with [WebC](https://www.11ty.dev/docs/languages/webc/)
Starting with `@11ty/eleventy-plugin-webc@0.9.0` (track at [issue #48](https://github.com/11ty/eleventy-plugin-webc/issues/48)) this plugin is used by default in the Eleventy WebC plugin. Specifically, [WebC Bundler Mode](https://www.11ty.dev/docs/languages/webc/#css-and-js-(bundler-mode)) now uses the bundle plugin under the hood.
To add CSS to a bundle in WebC, you would use a `<style>` element in a WebC page or component:
```html
<style>/* This is bundled. */</style>
<style webc:keep>/* Do not bundle me—leave as is */</style>
```
To add JS to a page bundle in WebC, you would use a `<script>` element in a WebC page or component:
```html
<script>/* This is bundled. */</script>
<script webc:keep>/* Do not bundle me—leave as is */</script>
```
* Existing calls via WebC helpers `getCss` or `getJs` (e.g. `<style @raw="getCss(page.url)">`) have been wired up to `getBundle` (for `"css"` and `"js"` respectively) automatically.
* For consistency, you may prefer using the bundle plugin method names everywhere: `<style @raw="getBundle('css')">` and `<script @raw="getBundle('js')">` both work fine.
* Outside of WebC, the Universal Filters `webcGetCss` and `webcGetJs` were removed in Eleventy `v3.0.0-alpha.10` in favor of the `getBundle` Universal Shortcode (`{% getBundle "css" %}` and `{% getBundle "js" %}` respectively).
#### Modify the bundle output
You can wire up your own async-friendly callbacks to transform the bundle output too. Heres a quick example of [`postcss` integration](https://github.com/postcss/postcss#js-api).
```js
const postcss = require("postcss");
const postcssNested = require("postcss-nested");
export default function(eleventyConfig) {
eleventyConfig.addBundle("css", {
transforms: [
async function(content) {
// this.type returns the bundle name.
// Same as Eleventy transforms, this.page is available here.
let result = await postcss([postcssNested]).process(content, { from: this.page.inputPath, to: null });
return result.css;
}
]
});
};
```
## Advanced
### Limitations
Bundles do not support nesting or recursion (yet?). If this will be useful to you, please file an issue!
<!--
Version Two:
* Think about Eleventy transform order, scenarios where this transform needs to run first.
* JavaScript API independent of eleventy
* Clean up the _site/bundle folder on exit?
* Example ideas:
* App bundle and page bundle
* can we make this work for syntax highlighting? or just defer to WebC for this?
{% css %}
<style>
em { font-style: italic; }
</style>
{% endcss %}
* a way to declare dependencies? or just defer to buckets here
* What if we want to add code duplicates? Adding `alert(1);` `alert(1);` to alert twice?
* sourcemaps (maybe via magic-string module or https://www.npmjs.com/package/concat-with-sourcemaps)
-->

View File

@ -1,72 +0,0 @@
import bundleManagersPlugin from "./src/eleventy.bundleManagers.js";
import pruneEmptyBundlesPlugin from "./src/eleventy.pruneEmptyBundles.js";
import globalShortcodesAndTransforms from "./src/eleventy.shortcodes.js";
import debugUtil from "debug";
const debug = debugUtil("Eleventy:Bundle");
function normalizeOptions(options = {}) {
options = Object.assign({
// Plugin defaults
// Extra bundles
// css, js, and html are guaranteed unless `bundles: false`
bundles: [],
toFileDirectory: "bundle",
// post-process
transforms: [],
hoistDuplicateBundlesFor: [],
bundleExportKey: "bundle", // use a `bundle` export in a 11ty.js template to populate bundles
force: false, // force overwrite of existing getBundleManagers and addBundle configuration API methods
}, options);
if(options.bundles !== false) {
options.bundles = Array.from(new Set(["css", "js", "html", ...(options.bundles || [])]));
}
return options;
}
function eleventyBundlePlugin(eleventyConfig, pluginOptions = {}) {
eleventyConfig.versionCheck(">=3.0.0");
pluginOptions = normalizeOptions(pluginOptions);
let alreadyAdded = "getBundleManagers" in eleventyConfig || "addBundle" in eleventyConfig;
if(!alreadyAdded || pluginOptions.force) {
if(alreadyAdded && pluginOptions.force) {
debug("Bundle plugin already added via `addPlugin`, add was forced via `force: true`");
}
bundleManagersPlugin(eleventyConfig, pluginOptions);
}
// These cant be unique (dont skip re-add above), when the configuration file resets they need to be added again
pruneEmptyBundlesPlugin(eleventyConfig, pluginOptions);
globalShortcodesAndTransforms(eleventyConfig, pluginOptions);
// Support subsequent calls like addPlugin(BundlePlugin, { bundles: [] });
if(Array.isArray(pluginOptions.bundles)) {
debug("Adding bundles via `addPlugin`: %o", pluginOptions.bundles)
pluginOptions.bundles.forEach(name => {
let isHoisting = Array.isArray(pluginOptions.hoistDuplicateBundlesFor) && pluginOptions.hoistDuplicateBundlesFor.includes(name);
eleventyConfig.addBundle(name, {
hoist: isHoisting,
outputFileExtension: name, // default as `name`
shortcodeName: name, // `false` will skip shortcode
transforms: pluginOptions.transforms,
toFileDirectory: pluginOptions.toFileDirectory,
bundleExportKey: pluginOptions.bundleExportKey, // `false` will skip bundle export
});
});
}
};
// This is used to find the package name for this plugin (used in eleventy-plugin-webc to prevent dupes)
Object.defineProperty(eleventyBundlePlugin, "eleventyPackage", {
value: "@11ty/eleventy-plugin-bundle"
});
export default eleventyBundlePlugin;
export { normalizeOptions };

View File

@ -1,62 +0,0 @@
{
"name": "@11ty/eleventy-plugin-bundle",
"version": "3.0.7",
"description": "Little bundles of code, little bundles of joy.",
"main": "eleventy.bundle.js",
"type": "module",
"scripts": {
"sample": "DEBUG=Eleventy:Bundle npx @11ty/eleventy --config=sample/sample-config.js --input=sample --serve",
"test": "npx ava"
},
"publishConfig": {
"access": "public"
},
"license": "MIT",
"engines": {
"node": ">=18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/11ty"
},
"keywords": [
"eleventy",
"eleventy-plugin"
],
"repository": {
"type": "git",
"url": "git://github.com/11ty/eleventy-plugin-bundle.git"
},
"bugs": "https://github.com/11ty/eleventy-plugin-bundle/issues",
"homepage": "https://www.11ty.dev/",
"author": {
"name": "Zach Leatherman",
"email": "zachleatherman@gmail.com",
"url": "https://zachleat.com/"
},
"ava": {
"failFast": true,
"files": [
"test/*.js",
"test/*.mjs"
],
"watchMode": {
"ignoreChanges": [
"**/_site/**",
".cache"
]
}
},
"devDependencies": {
"@11ty/eleventy": "^3.0.0",
"ava": "^6.2.0",
"postcss": "^8.5.3",
"postcss-nested": "^7.0.2",
"sass": "^1.86.3"
},
"dependencies": {
"@11ty/eleventy-utils": "^2.0.2",
"debug": "^4.4.0",
"posthtml-match-helper": "^2.0.3"
}
}

View File

@ -1,75 +0,0 @@
import fs from "node:fs";
import path from "node:path";
import debugUtil from "debug";
import { createHash } from "@11ty/eleventy-utils";
const debug = debugUtil("Eleventy:Bundle");
const hashCache = {};
const directoryExistsCache = {};
const writingCache = new Set();
class BundleFileOutput {
constructor(outputDirectory, bundleDirectory) {
this.outputDirectory = outputDirectory;
this.bundleDirectory = bundleDirectory || "";
this.hashLength = 10;
this.fileExtension = undefined;
}
setFileExtension(ext) {
this.fileExtension = ext;
}
async getFilenameHash(content) {
if(hashCache[content]) {
return hashCache[content];
}
let base64hash = await createHash(content);
let filenameHash = base64hash.substring(0, this.hashLength);
hashCache[content] = filenameHash;
return filenameHash;
}
getFilename(filename, extension) {
return filename + (extension && !extension.startsWith(".") ? `.${extension}` : "");
}
modifyPathToUrl(dir, filename) {
return "/" + path.join(dir, filename).split(path.sep).join("/");
}
async writeBundle(content, type, writeToFileSystem) {
// do not write a bundle, do not return a file name is content is empty
if(!content) {
return;
}
let dir = path.join(this.outputDirectory, this.bundleDirectory);
let filenameHash = await this.getFilenameHash(content);
let filename = this.getFilename(filenameHash, this.fileExtension || type);
if(writeToFileSystem) {
let fullPath = path.join(dir, filename);
// no duplicate writes, this may be improved with a fs exists check, but it would only save the first write
if(!writingCache.has(fullPath)) {
writingCache.add(fullPath);
if(!directoryExistsCache[dir]) {
fs.mkdirSync(dir, { recursive: true });
directoryExistsCache[dir] = true;
}
debug("Writing bundle %o", fullPath);
fs.writeFileSync(fullPath, content);
}
}
return this.modifyPathToUrl(this.bundleDirectory, filename);
}
}
export { BundleFileOutput };

View File

@ -1,231 +0,0 @@
import { BundleFileOutput } from "./BundleFileOutput.js";
import debugUtil from "debug";
const debug = debugUtil("Eleventy:Bundle");
const DEBUG_LOG_TRUNCATION_SIZE = 200;
class CodeManager {
// code is placed in this bucket by default
static DEFAULT_BUCKET_NAME = "default";
// code is hoisted to this bucket when necessary
static HOISTED_BUCKET_NAME = "default";
constructor(name) {
this.name = name;
this.trimOnAdd = true;
// TODO unindent on add
this.reset();
this.transforms = [];
this.isHoisting = true;
this.fileExtension = undefined;
this.toFileDirectory = undefined;
this.bundleExportKey = "bundle";
this.runsAfterHtmlTransformer = false;
this.pluckedSelector = undefined;
}
setDelayed(isDelayed) {
this.runsAfterHtmlTransformer = Boolean(isDelayed);
}
isDelayed() {
return this.runsAfterHtmlTransformer;
}
// posthtml-match-selector friendly
setPluckedSelector(selector) {
this.pluckedSelector = selector;
}
getPluckedSelector() {
return this.pluckedSelector;
}
setFileExtension(ext) {
this.fileExtension = ext;
}
setHoisting(enabled) {
this.isHoisting = !!enabled;
}
setBundleDirectory(dir) {
this.toFileDirectory = dir;
}
setBundleExportKey(key) {
this.bundleExportKey = key;
}
getBundleExportKey() {
return this.bundleExportKey;
}
reset() {
this.pages = {};
}
static normalizeBuckets(bucket) {
if(Array.isArray(bucket)) {
return bucket;
} else if(typeof bucket === "string") {
return bucket.split(",");
}
return [CodeManager.DEFAULT_BUCKET_NAME];
}
setTransforms(transforms) {
if(!Array.isArray(transforms)) {
throw new Error("Array expected to setTransforms");
}
this.transforms = transforms;
}
_initBucket(pageUrl, bucket) {
if(!this.pages[pageUrl][bucket]) {
this.pages[pageUrl][bucket] = new Set();
}
}
addToPage(pageUrl, code = [], bucket) {
if(!Array.isArray(code) && code) {
code = [code];
}
if(code.length === 0) {
return;
}
if(!this.pages[pageUrl]) {
this.pages[pageUrl] = {};
}
let buckets = CodeManager.normalizeBuckets(bucket);
let codeContent = code.map(entry => {
if(this.trimOnAdd) {
return entry.trim();
}
return entry;
});
for(let b of buckets) {
this._initBucket(pageUrl, b);
for(let content of codeContent) {
if(content) {
if(!this.pages[pageUrl][b].has(content)) {
debug("Adding code to bundle %o for %o (bucket: %o, size: %o): %o", this.name, pageUrl, b, content.length, content.length > DEBUG_LOG_TRUNCATION_SIZE ? content.slice(0, DEBUG_LOG_TRUNCATION_SIZE) + "…" : content);
this.pages[pageUrl][b].add(content);
}
}
}
}
}
async runTransforms(str, pageData, buckets) {
for (let callback of this.transforms) {
str = await callback.call(
{
page: pageData,
type: this.name,
buckets: buckets
},
str
);
}
return str;
}
getBucketsForPage(pageData) {
let pageUrl = pageData.url;
if(!this.pages[pageUrl]) {
return [];
}
return Object.keys(this.pages[pageUrl]);
}
getRawForPage(pageData, buckets = undefined) {
let url = pageData.url;
if(!this.pages[url]) {
debug("No bundle code found for %o on %o, %O", this.name, url, this.pages);
return new Set();
}
buckets = CodeManager.normalizeBuckets(buckets);
let set = new Set();
let size = 0;
for(let b of buckets) {
if(!this.pages[url][b]) {
// Just continue, if you retrieve code from a bucket that doesnt exist or has no code, it will return an empty set
continue;
}
for(let entry of this.pages[url][b]) {
size += entry.length;
set.add(entry);
}
}
debug("Retrieving %o for %o (buckets: %o, entries: %o, size: %o)", this.name, url, buckets, set.size, size);
return set;
}
async getForPage(pageData, buckets = undefined) {
let set = this.getRawForPage(pageData, buckets);
let bundleContent = Array.from(set).join("\n");
// returns promise
return this.runTransforms(bundleContent, pageData, buckets);
}
async writeBundle(pageData, buckets, options = {}) {
let url = pageData.url;
if(!this.pages[url]) {
debug("No bundle code found for %o on %o, %O", this.name, url, this.pages);
return "";
}
let { output, write } = options;
buckets = CodeManager.normalizeBuckets(buckets);
// TODO the bundle output URL might be useful in the transforms for sourcemaps
let content = await this.getForPage(pageData, buckets);
let writer = new BundleFileOutput(output, this.toFileDirectory);
writer.setFileExtension(this.fileExtension);
return writer.writeBundle(content, this.name, write);
}
// Used when a bucket is output multiple times on a page and needs to be hoisted
hoistBucket(pageData, bucketName) {
let newTargetBucketName = CodeManager.HOISTED_BUCKET_NAME;
if(!this.isHoisting || bucketName === newTargetBucketName) {
return;
}
let url = pageData.url;
if(!this.pages[url] || !this.pages[url][bucketName]) {
debug("No bundle code found for %o on %o, %O", this.name, url, this.pages);
return;
}
debug("Code in bucket (%o) is being hoisted to a new bucket (%o)", bucketName, newTargetBucketName);
this._initBucket(url, newTargetBucketName);
for(let codeEntry of this.pages[url][bucketName]) {
this.pages[url][bucketName].delete(codeEntry);
this.pages[url][newTargetBucketName].add(codeEntry);
}
// delete the bucket
delete this.pages[url][bucketName];
}
}
export { CodeManager };

View File

@ -1,158 +0,0 @@
import debugUtil from "debug";
const debug = debugUtil("Eleventy:Bundle");
/* This class defers any `bundleGet` calls to a post-build transform step,
* to allow `getBundle` to be called before all of the `css` additions have been processed
*/
class OutOfOrderRender {
static SPLIT_REGEX = /(\/\*__EleventyBundle:[^:]*:[^:]*:[^:]*:EleventyBundle__\*\/)/;
static SEPARATOR = ":";
constructor(content) {
this.content = content;
this.managers = {};
}
// type if `get` (return string) or `file` (bundle writes to file, returns file url)
static getAssetKey(type, name, bucket) {
if(Array.isArray(bucket)) {
bucket = bucket.join(",");
} else if(typeof bucket === "string") {
} else {
bucket = "";
}
return `/*__EleventyBundle:${type}:${name}:${bucket || "default"}:EleventyBundle__*/`
}
static parseAssetKey(str) {
if(str.startsWith("/*__EleventyBundle:")) {
let [prefix, type, name, bucket, suffix] = str.split(OutOfOrderRender.SEPARATOR);
return { type, name, bucket };
}
return false;
}
setAssetManager(name, assetManager) {
this.managers[name] = assetManager;
}
setOutputDirectory(dir) {
this.outputDirectory = dir;
}
normalizeMatch(match) {
let ret = OutOfOrderRender.parseAssetKey(match)
return ret || match;
}
findAll() {
let matches = this.content.split(OutOfOrderRender.SPLIT_REGEX);
let ret = [];
for(let match of matches) {
ret.push(this.normalizeMatch(match));
}
return ret;
}
setWriteToFileSystem(isWrite) {
this.writeToFileSystem = isWrite;
}
getAllBucketsForPage(pageData) {
let availableBucketsForPage = new Set();
for(let name in this.managers) {
for(let bucket of this.managers[name].getBucketsForPage(pageData)) {
availableBucketsForPage.add(`${name}::${bucket}`);
}
}
return availableBucketsForPage;
}
getManager(name) {
if(!this.managers[name]) {
throw new Error(`No asset manager found for ${name}. Known names: ${Object.keys(this.managers)}`);
}
return this.managers[name];
}
async replaceAll(pageData, stage = 0) {
let matches = this.findAll();
let availableBucketsForPage = this.getAllBucketsForPage(pageData);
let usedBucketsOnPage = new Set();
let bucketsOutputStringCount = {};
let bucketsFileCount = {};
for(let match of matches) {
if(typeof match === "string") {
continue;
}
// type is `file` or `get`
let {type, name, bucket} = match;
let key = `${name}::${bucket}`;
if(!usedBucketsOnPage.has(key)) {
usedBucketsOnPage.add(key);
}
if(type === "get") {
if(!bucketsOutputStringCount[key]) {
bucketsOutputStringCount[key] = 0;
}
bucketsOutputStringCount[key]++;
} else if(type === "file") {
if(!bucketsFileCount[key]) {
bucketsFileCount[key] = 0;
}
bucketsFileCount[key]++;
}
}
// Hoist code in non-default buckets that are output multiple times
// Only hoist if 2+ `get` OR 1+ `get` and 1+ `file`
for(let bucketInfo in bucketsOutputStringCount) {
let stringOutputCount = bucketsOutputStringCount[bucketInfo];
if(stringOutputCount > 1 || stringOutputCount === 1 && bucketsFileCount[bucketInfo] > 0) {
let [name, bucketName] = bucketInfo.split("::");
this.getManager(name).hoistBucket(pageData, bucketName);
}
}
let content = await Promise.all(matches.map(match => {
if(typeof match === "string") {
return match;
}
let {type, name, bucket} = match;
let manager = this.getManager(name);
// Quit early if in stage 0, run delayed replacements if in stage 1+
if(typeof manager.isDelayed === "function" && manager.isDelayed() && stage === 0) {
return OutOfOrderRender.getAssetKey(type, name, bucket);
}
if(type === "get") {
// returns promise
return manager.getForPage(pageData, bucket);
} else if(type === "file") {
// returns promise
return manager.writeBundle(pageData, bucket, {
output: this.outputDirectory,
write: this.writeToFileSystem,
});
}
return "";
}));
for(let bucketInfo of availableBucketsForPage) {
if(!usedBucketsOnPage.has(bucketInfo)) {
let [name, bucketName] = bucketInfo.split("::");
debug(`WARNING! \`${pageData.inputPath}\` has unbundled \`${name}\` assets (in the '${bucketName}' bucket) that were not written to or used on the page. You might want to add a call to \`getBundle('${name}', '${bucketName}')\` to your content! Learn more: https://github.com/11ty/eleventy-plugin-bundle#asset-bucketing`);
}
}
return content.join("");
}
}
export { OutOfOrderRender };

View File

@ -1,69 +0,0 @@
import debugUtil from "debug";
import matchHelper from "posthtml-match-helper";
const debug = debugUtil("Eleventy:Bundle");
const ATTRS = {
ignore: "eleventy:ignore",
bucket: "eleventy:bucket",
};
const POSTHTML_PLUGIN_NAME = "11ty/eleventy/html-bundle-plucker";
function hasAttribute(node, name) {
return node?.attrs?.[name] !== undefined;
}
function addHtmlPlucker(eleventyConfig, bundleManager) {
let matchSelector = bundleManager.getPluckedSelector();
if(!matchSelector) {
throw new Error("Internal error: missing plucked selector on bundle manager.");
}
eleventyConfig.htmlTransformer.addPosthtmlPlugin(
"html",
function (context = {}) {
let pageUrl = context?.url;
if(!pageUrl) {
throw new Error("Internal error: missing `url` property from context.");
}
return function (tree, ...args) {
tree.match(matchHelper(matchSelector), function (node) {
try {
// ignore
if(hasAttribute(node, ATTRS.ignore)) {
delete node.attrs[ATTRS.ignore];
return node;
}
if(Array.isArray(node?.content) && node.content.length > 0) {
// TODO make this better decoupled
if(node?.content.find(entry => entry.includes(`/*__EleventyBundle:`))) {
// preserve {% getBundle %} calls as-is
return node;
}
let bucketName = node?.attrs?.[ATTRS.bucket];
bundleManager.addToPage(pageUrl, [ ...node.content ], bucketName);
return { attrs: [], content: [], tag: false };
}
} catch(e) {
debug(`Bundle plucker: error adding content to bundle in HTML Assets: %o`, e);
return node;
}
return node;
});
};
},
{
// pluginOptions
name: POSTHTML_PLUGIN_NAME,
},
);
}
export { addHtmlPlucker };

View File

@ -1,85 +0,0 @@
import debugUtil from "debug";
import { CodeManager } from "./CodeManager.js";
import { addHtmlPlucker } from "./bundlePlucker.js"
const debug = debugUtil("Eleventy:Bundle");
function eleventyBundleManagers(eleventyConfig, pluginOptions = {}) {
if(pluginOptions.force) {
// no errors
} else if(("getBundleManagers" in eleventyConfig || "addBundle" in eleventyConfig)) {
throw new Error("Duplicate addPlugin calls for @11ty/eleventy-plugin-bundle");
}
let managers = {};
function addBundle(name, bundleOptions = {}) {
if(name in managers) {
// note: shortcode must still be added
debug("Bundle exists %o, skipping.", name);
} else {
debug("Creating new bundle %o", name);
managers[name] = new CodeManager(name);
if(bundleOptions.delayed !== undefined) {
managers[name].setDelayed(bundleOptions.delayed);
}
if(bundleOptions.hoist !== undefined) {
managers[name].setHoisting(bundleOptions.hoist);
}
if(bundleOptions.bundleHtmlContentFromSelector !== undefined) {
managers[name].setPluckedSelector(bundleOptions.bundleHtmlContentFromSelector);
managers[name].setDelayed(true); // must override `delayed` above
addHtmlPlucker(eleventyConfig, managers[name]);
}
if(bundleOptions.bundleExportKey !== undefined) {
managers[name].setBundleExportKey(bundleOptions.bundleExportKey);
}
if(bundleOptions.outputFileExtension) {
managers[name].setFileExtension(bundleOptions.outputFileExtension);
}
if(bundleOptions.toFileDirectory) {
managers[name].setBundleDirectory(bundleOptions.toFileDirectory);
}
if(bundleOptions.transforms) {
managers[name].setTransforms(bundleOptions.transforms);
}
}
// if undefined, defaults to `name`
if(bundleOptions.shortcodeName !== false) {
let shortcodeName = bundleOptions.shortcodeName || name;
// e.g. `css` shortcode to add code to page bundle
// These shortcode names are not configurable on purpose (for wider plugin compatibility)
eleventyConfig.addPairedShortcode(shortcodeName, function addContent(content, bucket, explicitUrl) {
let url = explicitUrl || this.page?.url;
if(url) { // dont add if a file doesnt have an output URL
managers[name].addToPage(url, content, bucket);
}
return "";
});
}
};
eleventyConfig.addBundle = addBundle;
eleventyConfig.getBundleManagers = function() {
return managers;
};
eleventyConfig.on("eleventy.before", async () => {
for(let key in managers) {
managers[key].reset();
}
});
};
export default eleventyBundleManagers;

View File

@ -1,105 +0,0 @@
import matchHelper from "posthtml-match-helper";
import debugUtil from "debug";
const debug = debugUtil("Eleventy:Bundle");
const ATTRS = {
keep: "eleventy:keep"
};
const POSTHTML_PLUGIN_NAME = "11ty/eleventy-bundle/prune-empty";
function getTextNodeContent(node) {
if (!node.content) {
return "";
}
return node.content
.map((entry) => {
if (typeof entry === "string") {
return entry;
}
if (Array.isArray(entry.content)) {
return getTextNodeContent(entry);
}
return "";
})
.join("");
}
function eleventyPruneEmptyBundles(eleventyConfig, options = {}) {
// Right now script[src],link[rel="stylesheet"] nodes are removed if the final bundles are empty.
// `false` to disable
options.pruneEmptySelector = options.pruneEmptySelector ?? `style,script,link[rel="stylesheet"]`;
// Subsequent call can remove a previously added `addPosthtmlPlugin` entry
// htmlTransformer.remove is v3.0.1-alpha.4+
if(typeof eleventyConfig.htmlTransformer.remove === "function") {
eleventyConfig.htmlTransformer.remove("html", entry => {
if(entry.name === POSTHTML_PLUGIN_NAME) {
return true;
}
// Temporary workaround for missing `name` property.
let fnStr = entry.fn.toString();
return !entry.name && fnStr.startsWith("function (pluginOptions = {}) {") && fnStr.includes(`tree.match(matchHelper(options.pruneEmptySelector), function (node)`);
});
}
// `false` disables this plugin
if(options.pruneEmptySelector === false) {
return;
}
if(!eleventyConfig.htmlTransformer || !eleventyConfig.htmlTransformer?.constructor?.SUPPORTS_PLUGINS_ENABLED_CALLBACK) {
debug("You will need to upgrade your version of Eleventy core to remove empty bundle tags automatically (v3 or newer).");
return;
}
eleventyConfig.htmlTransformer.addPosthtmlPlugin(
"html",
function bundlePruneEmptyPosthtmlPlugin(pluginOptions = {}) {
return function (tree) {
tree.match(matchHelper(options.pruneEmptySelector), function (node) {
if(node.attrs && node.attrs[ATTRS.keep] !== undefined) {
delete node.attrs[ATTRS.keep];
return node;
}
// <link rel="stylesheet" href="">
if(node.tag === "link") {
if(node.attrs?.rel === "stylesheet" && (node.attrs?.href || "").trim().length === 0) {
return false;
}
} else {
let content = getTextNodeContent(node);
if(!content) {
// <script></script> or <script src=""></script>
if(node.tag === "script" && (node.attrs?.src || "").trim().length === 0) {
return false;
}
// <style></style>
if(node.tag === "style") {
return false;
}
}
}
return node;
});
};
},
{
name: POSTHTML_PLUGIN_NAME,
// the `enabled` callback for plugins is available on v3.0.0-alpha.20+ and v3.0.0-beta.2+
enabled: () => {
return Object.keys(eleventyConfig.getBundleManagers()).length > 0;
}
}
);
}
export default eleventyPruneEmptyBundles;

View File

@ -1,83 +0,0 @@
import { OutOfOrderRender } from "./OutOfOrderRender.js";
import debugUtil from "debug";
const debug = debugUtil("Eleventy:Bundle");
export default function(eleventyConfig, pluginOptions = {}) {
let managers = eleventyConfig.getBundleManagers();
let writeToFileSystem = true;
function bundleTransform(content, stage = 0) {
// Only run if content is string
// Only run if managers are in play
if(typeof content !== "string" || Object.keys(managers).length === 0) {
return content;
}
debug("Processing %o", this.page.url);
let render = new OutOfOrderRender(content);
for(let key in managers) {
render.setAssetManager(key, managers[key]);
}
render.setOutputDirectory(eleventyConfig.directories.output);
render.setWriteToFileSystem(writeToFileSystem);
return render.replaceAll(this.page, stage);
}
eleventyConfig.on("eleventy.before", async ({ outputMode }) => {
if(Object.keys(managers).length === 0) {
return;
}
if(outputMode !== "fs") {
writeToFileSystem = false;
debug("Skipping writing to the file system due to output mode: %o", outputMode);
}
});
// e.g. `getBundle` shortcode to get code in current page bundle
// bucket can be an array
// This shortcode name is not configurable on purpose (for wider plugin compatibility)
eleventyConfig.addShortcode("getBundle", function getContent(type, bucket, explicitUrl) {
if(!type || !(type in managers) || Object.keys(managers).length === 0) {
throw new Error(`Invalid bundle type: ${type}. Available options: ${Object.keys(managers)}`);
}
return OutOfOrderRender.getAssetKey("get", type, bucket);
});
// write a bundle to the file system
// This shortcode name is not configurable on purpose (for wider plugin compatibility)
eleventyConfig.addShortcode("getBundleFileUrl", function(type, bucket, explicitUrl) {
if(!type || !(type in managers) || Object.keys(managers).length === 0) {
throw new Error(`Invalid bundle type: ${type}. Available options: ${Object.keys(managers)}`);
}
return OutOfOrderRender.getAssetKey("file", type, bucket);
});
eleventyConfig.addTransform("@11ty/eleventy-bundle", function (content) {
let hasNonDelayedManagers = Boolean(Object.values(eleventyConfig.getBundleManagers()).find(manager => {
return typeof manager.isDelayed !== "function" || !manager.isDelayed();
}));
if(hasNonDelayedManagers) {
return bundleTransform.call(this, content, 0);
}
return content;
});
eleventyConfig.addPlugin((eleventyConfig) => {
// Delayed bundles *MUST* not alter URLs
eleventyConfig.addTransform("@11ty/eleventy-bundle/delayed", function (content) {
let hasDelayedManagers = Boolean(Object.values(eleventyConfig.getBundleManagers()).find(manager => {
return typeof manager.isDelayed === "function" && manager.isDelayed();
}));
if(hasDelayedManagers) {
return bundleTransform.call(this, content, 1);
}
return content;
});
});
};

View File

@ -1,20 +0,0 @@
import rssPlugin from "./src/rssPlugin.js";
import dateRfc3339 from "./src/dateRfc3339.js";
import dateRfc822 from "./src/dateRfc822.js";
import getNewestCollectionItemDate from "./src/getNewestCollectionItemDate.js";
import virtualTemplate from "./src/virtualTemplate.js";
import absoluteUrl from "./src/absoluteUrl.js";
import convertHtmlToAbsoluteUrls from "./src/htmlToAbsoluteUrls.js";
export default rssPlugin;
export {
rssPlugin,
virtualTemplate as feedPlugin,
dateRfc3339 as dateToRfc3339,
dateRfc822 as dateToRfc822,
getNewestCollectionItemDate as getNewestCollectionItemDate,
absoluteUrl as absoluteUrl,
convertHtmlToAbsoluteUrls as convertHtmlToAbsoluteUrls
};

View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2018 Zach Leatherman @zachleat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,34 +0,0 @@
<p align="center"><img src="https://www.11ty.dev/img/logo-github.svg" width="200" height="200" alt="11ty Logo"></p>
# eleventy-plugin-rss 🕚⚡️🎈🐀
A pack of [Eleventy](https://github.com/11ty/eleventy) filters for generating Atom, JSON and RSS feeds using the Nunjucks templating engine.
See `sample/feed.njk` for an example Atom feed template, `sample/feed.json` for an example JSON feed template, or `sample/feed-rss.njk` for an example RSS feed template.
## [The full `eleventy-plugin-rss` documentation is on 11ty.dev](https://www.11ty.dev/docs/plugins/rss/).
* _This is a plugin for the [Eleventy static site generator](https://www.11ty.dev/)._
* Find more [Eleventy plugins](https://www.11ty.dev/docs/plugins/).
* Please star [Eleventy on GitHub](https://github.com/11ty/eleventy/), follow [@eleven_ty](https://twitter.com/eleven_ty) on Twitter, and support [11ty on Open Collective](https://opencollective.com/11ty)
[![npm Version](https://img.shields.io/npm/v/@11ty/eleventy-plugin-rss.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy-plugin-rss) [![GitHub issues](https://img.shields.io/github/issues/11ty/eleventy-plugin-rss.svg?style=for-the-badge)](https://github.com/11ty/eleventy-plugin-rss/issues)
## Installation
```
npm install @11ty/eleventy-plugin-rss
```
_[The full `eleventy-plugin-rss` documentation is on 11ty.dev](https://www.11ty.dev/docs/plugins/rss/)._
## Tests
```
npm run test
```
- We use the [ava JavaScript test runner](https://github.com/avajs/ava) ([Assertions documentation](https://github.com/avajs/ava/blob/master/docs/03-assertions.md))
- To keep tests fast, thou shalt try to avoid writing files in tests.

View File

@ -1,50 +0,0 @@
{
"name": "@11ty/eleventy-plugin-rss",
"version": "3.0.0",
"type": "module",
"description": "Generate an Atom, RSS, or JSON feed.",
"publishConfig": {
"access": "public"
},
"main": ".eleventy.js",
"scripts": {
"test": "npx ava",
"sample": "cd sample && npx @11ty/eleventy --config=config-sample.js --pathprefix=pathprefix",
"clean": "rm -rf sample/_site"
},
"repository": {
"type": "git",
"url": "git+https://github.com/11ty/eleventy-plugin-rss.git"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/11ty"
},
"keywords": [
"eleventy",
"eleventy-plugin"
],
"author": {
"name": "Zach Leatherman",
"email": "zachleatherman@gmail.com",
"url": "https://zachleat.com/"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/11ty/eleventy-plugin-rss/issues"
},
"homepage": "https://www.11ty.dev/docs/plugins/rss/",
"11ty": {
"compatibility": ">=3.0.0-alpha.15"
},
"devDependencies": {
"@11ty/eleventy": "^3.1.5",
"ava": "^6.4.1"
},
"dependencies": {
"@11ty/eleventy-utils": "^2.0.7",
"@11ty/posthtml-urls": "^1.0.2",
"debug": "^4.4.3",
"posthtml": "^0.16.7"
}
}

View File

@ -1,13 +0,0 @@
import debugUtil from "debug";
const debug = debugUtil("Eleventy:Rss");
// This is deprecated! Use the Eleventy HTML <base> plugin instead (2.0+)
export default function(url, base) {
try {
return (new URL(url, base)).toString()
} catch(e) {
debug("Trying to convert %o to be an absolute url with base %o and failed, returning: %o (invalid url)", url, base, url)
// TODO add debug output!
return url;
}
};

View File

@ -1,11 +0,0 @@
// Atom uses RFC 3339 dates
// https://tools.ietf.org/html/rfc3339#section-5.8
export default function(dateObj) {
let s = dateObj.toISOString();
// remove milliseconds
let split = s.split(".");
split.pop();
return split.join("") + "Z";
}

View File

@ -1,23 +0,0 @@
export default function pubDateRFC822(value, timeZone = undefined) {
const date = new Date(value);
const options = {
weekday: 'short',
day: '2-digit',
month: 'short',
year: 'numeric',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hourCycle: 'h23',
timeZone: timeZone,
timeZoneName: 'longOffset',
};
const formattedDate = new Intl.DateTimeFormat('en-US', options).format(date);
const [wkd, mmm, dd, yyyy, time, z] = formattedDate.replace(/([,\s]+)/g, ' ').split(' ');
const tz = z.replace(/GMT(?<sign>\+|\-)(?<hour>\d\d):(?<minute>\d\d)/, '$<sign>$<hour>$<minute>');
return `${wkd}, ${dd} ${mmm} ${yyyy} ${time} ${tz}`;
}

View File

@ -1,7 +0,0 @@
export default function(collection, emptyFallbackDate) {
if( !collection || !collection.length ) {
return emptyFallbackDate || new Date();
}
return new Date(Math.max(...collection.map(item => {return item.date})));
}

View File

@ -1,21 +0,0 @@
import posthtml from 'posthtml';
import urls from '@11ty/posthtml-urls';
import absoluteUrl from "./absoluteUrl.js";
// This is deprecated! Use the Eleventy HTML <base> plugin instead (2.0+)
export default async function(htmlContent, base, processOptions = {}) {
if( !base ) {
throw new Error( "eleventy-plugin-rss: htmlToAbsoluteUrls(absolutePostUrl) was missing the full URL base `absolutePostUrl` argument.")
}
let options = {
eachURL: function(url) {
return absoluteUrl(url.trim(), base);
}
};
let modifier = posthtml().use(urls(options));
let result = await modifier.process(htmlContent, processOptions);
return result.html;
};

View File

@ -1,60 +0,0 @@
import pkg from "../package.json" with {type: "json"};
import dateRfc3339 from "./dateRfc3339.js";
import dateRfc822 from "./dateRfc822.js";
import getNewestCollectionItemDate from "./getNewestCollectionItemDate.js";
import absoluteUrl from "./absoluteUrl.js";
import convertHtmlToAbsoluteUrls from "./htmlToAbsoluteUrls.js";
export default function eleventyRssPlugin(eleventyConfig, options = {}) {
eleventyConfig.versionCheck(pkg["11ty"].compatibility);
// Guaranteed unique, first add wins
const pluginHtmlBase = eleventyConfig.resolvePlugin("@11ty/eleventy/html-base-plugin");
eleventyConfig.addPlugin(pluginHtmlBase, options.htmlBasePluginOptions || {});
// Dates
eleventyConfig.addNunjucksFilter("getNewestCollectionItemDate", getNewestCollectionItemDate);
eleventyConfig.addNunjucksFilter("dateToRfc3339", dateRfc3339);
eleventyConfig.addNunjucksFilter("dateToRfc822", dateRfc822);
// Deprecated in favor of the more efficient HTML <base> plugin bundled with Eleventy
eleventyConfig.addNunjucksFilter("absoluteUrl", absoluteUrl);
// Deprecated in favor of the more efficient HTML <base> plugin bundled with Eleventy
eleventyConfig.addNunjucksAsyncFilter("htmlToAbsoluteUrls", (htmlContent, base, callback) => {
if(!htmlContent) {
callback(null, "");
return;
}
let posthtmlOptions = Object.assign({
// default PostHTML render options
closingSingleTag: "slash"
}, options.posthtmlRenderOptions);
convertHtmlToAbsoluteUrls(htmlContent, base, posthtmlOptions).then(html => {
callback(null, html);
});
});
// These are removed, their names are incorrect! Issue #8, #21
eleventyConfig.addNunjucksFilter("rssLastUpdatedDate", () => {
throw new Error("The `rssLastUpdatedDate` filter was removed. Use `getNewestCollectionItemDate | dateToRfc3339` (for Atom) or `getNewestCollectionItemDate | dateToRfc822` (for RSS) instead.")
});
eleventyConfig.addNunjucksFilter("rssDate", () => {
throw new Error("The `rssDate` filter was removed. Use `dateToRfc3339` (for Atom) or `dateToRfc822` (for RSS) instead.");
});
};
Object.defineProperty(eleventyRssPlugin, "eleventyPackage", {
value: pkg.name
});
Object.defineProperty(eleventyRssPlugin, "eleventyPluginOptions", {
value: {
unique: true
}
});

View File

@ -1,204 +0,0 @@
import debugUtil from "debug";
import pkg from "../package.json" with {type: "json"};
import { DeepCopy } from "@11ty/eleventy-utils";
import rssPlugin from "./rssPlugin.js";
const debug = debugUtil("Eleventy:Rss:Feed");
function getFeedContent({ type, stylesheet, collection, script }) {
// Note: page.lang comes from the i18n plugin: https://www.11ty.dev/docs/plugins/i18n/#page.lang
if(type === "rss") {
// Nunjucks template
return `<?xml version="1.0" encoding="utf-8"?>
${stylesheet ? `<?xml-stylesheet href="${stylesheet}" type="text/xsl"?>\n` : ""}<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="{{ metadata.base | addPathPrefixToFullUrl }}" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
${script ? `<script src="${script}" xmlns="http://www.w3.org/1999/xhtml"></script>` : ""}
<title>{{ metadata.title }}</title>
<link>{{ metadata.base | addPathPrefixToFullUrl }}</link>
<atom:link href="{{ permalink | htmlBaseUrl(metadata.base) }}" rel="self" type="application/rss+xml" />
<description>{{ metadata.subtitle }}</description>
<language>{{ metadata.language or page.lang }}</language>
{%- if metadata.icon %}<image>{{ metadata.icon }}</image>{%- endif %}
{%- for post in collections.${collection.name} | reverse | eleventyFeedHead(${collection.limit}) %}
{%- set absolutePostUrl = post.url | htmlBaseUrl(metadata.base) %}
<item>
<title>{{ post.data.title }}</title>
<link>{{ absolutePostUrl }}</link>
{%- if (post.data.summary) -%}
<description>{{ post.data.summary }}</description>
<content:encoded>{{ post.content | renderTransforms(post.data.page, metadata.base) }}</content:encoded>
{%- else -%}
<description>{{ post.content | renderTransforms(post.data.page, metadata.base) }}</description>
{%- endif -%}
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>
<dc:creator>{{ metadata.author.name }}</dc:creator>
<guid>{{ absolutePostUrl }}</guid>
</item>
{%- endfor %}
</channel>
</rss>`;
}
if(type === "atom") {
// Nunjucks template
return `<?xml version="1.0" encoding="utf-8"?>
${stylesheet ? `<?xml-stylesheet href="${stylesheet}" type="text/xsl"?>\n` : ""}<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ metadata.language or page.lang }}">
${script ? `<script src="${script}" xmlns="http://www.w3.org/1999/xhtml"></script>` : ""}
<title>{{ metadata.title }}</title>
<subtitle>{{ metadata.subtitle }}</subtitle>
<link href="{{ permalink | htmlBaseUrl(metadata.base) }}" rel="self" />
<link href="{{ metadata.base | addPathPrefixToFullUrl }}" />
<updated>{{ collections['${collection.name}'] | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ metadata.base | addPathPrefixToFullUrl }}</id>
{%- if metadata.icon %}
<icon>{{ metadata.icon }}</icon>
{%- endif %}
{%- if metadata.logo %}
<icon>{{ metadata.logo }}</icon>
{%- endif %}
<author>
<name>{{ metadata.author.name }}</name>
{%- if metadata.author.email %}
<email>{{ metadata.author.email }}</email>
{%- endif %}
</author>
{%- for post in collections['${collection.name}'] | reverse | eleventyFeedHead(${collection.limit}) %}
{%- set absolutePostUrl %}{{ post.url | htmlBaseUrl(metadata.base) }}{% endset %}
<entry>
<title>{{ post.data.title }}</title>
<link href="{{ absolutePostUrl }}" />
<updated>{{ post.date | dateToRfc3339 }}</updated>
<id>{{ absolutePostUrl }}</id>
{%- if post.data.summary %}
<summary>{{ post.data.summary }}</summary>
{%- endif %}
<content type="html">{{ post.content | renderTransforms(post.data.page, metadata.base) }}</content>
</entry>
{%- endfor %}
</feed>`;
}
if(type === "json") {
return `{
"version": "https://jsonfeed.org/version/1.1",
"title": "{{ metadata.title }}",
"language": "{{ metadata.language or page.lang }}",
"home_page_url": "{{ metadata.base | addPathPrefixToFullUrl }}",
"feed_url": "{{ permalink | htmlBaseUrl(metadata.base) }}",
"description": "{{ metadata.description }}",
"authors": [
{
"name": "{{ metadata.author.name }}"{% if metadata.author.email %},
"url": "mailto:{{ metadata.author.email }}"
{%- endif %}
}
],
"items": [
{%- for post in collections['${collection.name}'] | reverse | eleventyFeedHead(${collection.limit}) %}
{%- set absolutePostUrl %}{{ post.url | htmlBaseUrl(metadata.base) }}{% endset %}
{
"id": "{{ absolutePostUrl }}",
"url": "{{ absolutePostUrl }}",
"title": "{{ post.data.title }}",
"content_html": {% if post.content %}{{ post.content | renderTransforms(post.data.page, metadata.base) | dump | safe }}{% else %}""{% endif %},
"date_published": "{{ post.date | dateToRfc3339 }}"
}
{% if not loop.last %},{% endif %}
{%- endfor %}
]
}`
}
throw new Error("Missing or invalid feed type. Received: " + type);
}
export default function eleventyFeedPlugin(eleventyConfig, options = {}) {
eleventyConfig.versionCheck(pkg["11ty"].compatibility);
// Guaranteed unique, first add wins
const pluginHtmlBase = eleventyConfig.resolvePlugin("@11ty/eleventy/html-base-plugin");
eleventyConfig.addPlugin(pluginHtmlBase, options.htmlBasePluginOptions || {});
// Guaranteed unique, first add wins
eleventyConfig.addPlugin(rssPlugin, options.rssPluginOptions || {});
let slugifyFilter = eleventyConfig.getFilter("slugify");
let inputPathSuffix = options?.metadata?.title ? `-${slugifyFilter(options?.metadata?.title)}` : "";
options = DeepCopy({
// rss and json also supported
type: "atom",
collection: {
name: false, // required
limit: 0, // limit number of entries, 0 means no limit
},
outputPath: "/feed.xml",
inputPath: `eleventy-plugin-feed${inputPathSuffix}-${options.type || "atom"}.njk`, // TODO make this more unique
templateData: {},
metadata: {
title: "Blog Title",
subtitle: "This is a longer description about your blog.",
language: "", // downstream templates use `page.lang` as fallback
base: "https://example.com/",
author: {
name: "Your Name",
email: "", // Optional
}
}
}, options);
if(!options.collection?.name) {
throw new Error("Missing `collection.name` option in feedPlugin from @11ty/eleventy-plugin-rss.");
}
if(typeof options.collection?.name !== "string") {
throw new Error("Only string is supported in `collection.name` option in feedPlugin from @11ty/eleventy-plugin-rss. Received: " + typeof options.collection?.name);
}
let eleventyExcludeFromCollections;
let eleventyImport;
if(options.collection.name === "all") {
eleventyExcludeFromCollections = true;
eleventyImport = {};
} else {
eleventyExcludeFromCollections = [ options.collection.name ]
eleventyImport = {
collections: [ options.collection.name ],
};
}
let templateData = {
...options?.templateData || {},
permalink: options.outputPath,
eleventyExcludeFromCollections,
eleventyImport,
layout: false,
metadata: options.metadata,
};
// Get the first `n` elements of a collection.
eleventyConfig.addFilter("eleventyFeedHead", function(array, n) {
if(!n || n === 0) {
return array;
}
if(n < 0) {
return array.slice(n);
}
return array.slice(0, n);
});
eleventyConfig.addTemplate(options.inputPath, getFeedContent(options), templateData);
};
Object.defineProperty(eleventyFeedPlugin, "eleventyPackage", {
value: `${pkg.name}/feed-plugin`
});
Object.defineProperty(eleventyFeedPlugin, "eleventyPluginOptions", {
value: {
// multiple adds of this one is OK
unique: false
}
});

View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 20222024 Zach Leatherman @zachleat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,27 +0,0 @@
<p align="center"><img src="https://www.11ty.dev/img/logo-github.png" alt="eleventy Logo"></p>
# eleventy-utils 🕚⚡️🎈🐀
Low level internal utilities to be shared amongst Eleventy projects.
## ➡ [Documentation](https://www.11ty.dev/docs/)
- Please star [Eleventy on GitHub](https://github.com/11ty/eleventy/)!
- Follow us on Twitter [@eleven_ty](https://twitter.com/eleven_ty)
- Support [11ty on Open Collective](https://opencollective.com/11ty)
- [11ty on npm](https://www.npmjs.com/org/11ty)
- [11ty on GitHub](https://github.com/11ty)
## Installation
```
npm install @11ty/eleventy-utils
```
## Tests
```
npm run test
```
- We use the native NodeJS [test runner](https://nodejs.org/api/test.html#test-runner) and ([assertions](https://nodejs.org/api/assert.html#assert))

View File

@ -1,20 +0,0 @@
const TemplatePath = require("./src/TemplatePath.js");
const isPlainObject = require("./src/IsPlainObject.js");
const Merge = require("./src/Merge.js");
const DateCompare = require("./src/DateCompare.js");
const { DeepCopy } = Merge;
const { createHash, createHashHex, createHashSync, createHashHexSync } = require("./src/CreateHash.js");
const Buffer = require("./src/Buffer.js");
module.exports = {
TemplatePath,
isPlainObject,
Merge,
DeepCopy,
DateCompare,
createHash,
createHashHex,
createHashSync,
createHashHexSync,
Buffer,
};

View File

@ -1,42 +0,0 @@
{
"name": "@11ty/eleventy-utils",
"version": "2.0.7",
"description": "Low level internal utilities to be shared amongst Eleventy projects",
"main": "index.js",
"files": [
"src",
"src/**",
"index.js",
"!test",
"!test/**"
],
"scripts": {
"test": "node --test",
"watch": "node --test --watch"
},
"license": "MIT",
"engines": {
"node": ">=18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/11ty"
},
"keywords": [
"eleventy"
],
"publishConfig": {
"access": "public"
},
"author": {
"name": "Zach Leatherman",
"email": "zachleatherman@gmail.com",
"url": "https://zachleat.com/"
},
"repository": {
"type": "git",
"url": "git://github.com/11ty/eleventy-utils.git"
},
"bugs": "https://github.com/11ty/eleventy-utils/issues",
"homepage": "https://github.com/11ty/eleventy-utils/"
}

View File

@ -1,10 +0,0 @@
function isBuffer(inst) {
if(typeof Buffer !== "undefined") {
return Buffer.isBuffer(inst);
}
return inst instanceof Uint8Array;
}
module.exports = {
isBuffer
}

View File

@ -1,27 +0,0 @@
const { Hash } = require("./HashTypes.js");
// same output as node:crypto above (though now async).
async function createHash(...content) {
return Hash.create().toBase64Url(...content);
}
async function createHashHex(...content) {
return Hash.create().toHex(...content);
}
// Slower, but this feature does not require WebCrypto
function createHashSync(...content) {
return Hash.createSync().toBase64Url(...content);
}
function createHashHexSync(...content) {
return Hash.createSync().toHex(...content);
}
module.exports = {
createHash,
createHashSync,
createHashHex,
createHashHexSync,
};

View File

@ -1,41 +0,0 @@
class DateCompare {
static isTimestampWithinDuration(timestamp, duration, compareDate = Date.now()) {
// the default duration is Infinity (also "*")
if (!duration || duration === "*" || duration === Infinity) {
return true;
}
let expiration = timestamp + this.getDurationMs(duration);
// still valid
if (expiration > compareDate) {
return true;
}
// expired
return false;
}
static getDurationMs(duration = "0s") {
let durationUnits = duration.slice(-1);
let durationMultiplier;
if (durationUnits === "s") {
durationMultiplier = 1;
} else if (durationUnits === "m") {
durationMultiplier = 60;
} else if (durationUnits === "h") {
durationMultiplier = 60 * 60;
} else if (durationUnits === "d") {
durationMultiplier = 60 * 60 * 24;
} else if (durationUnits === "w") {
durationMultiplier = 60 * 60 * 24 * 7;
} else if (durationUnits === "y") {
durationMultiplier = 60 * 60 * 24 * 365;
}
let durationValue = parseInt(duration.slice(0, duration.length - 1), 10);
return durationValue * durationMultiplier * 1000;
}
}
module.exports = DateCompare;

View File

@ -1,158 +0,0 @@
const { base64UrlSafe } = require("./Url.js");
const { isBuffer } = require("./Buffer.js");
const sha256 = require("./lib-sha256.js");
function hasNodeCryptoModule() {
try {
require("node:crypto");
return true;
} catch(e) {
return false;
}
}
const HAS_NODE_CRYPTO = hasNodeCryptoModule();
class Hash {
static create() {
if(typeof globalThis.crypto === "undefined") {
// Backwards compat with Node Crypto, since WebCrypto (crypto global) is Node 20+
if(HAS_NODE_CRYPTO) {
return NodeCryptoHash;
}
return ScriptHash;
}
return WebCryptoHash;
}
// Does not use WebCrypto (as WebCrypto is async-only)
static createSync() {
if(HAS_NODE_CRYPTO) {
return NodeCryptoHash;
}
return ScriptHash;
}
static toBase64(bytes) {
let str = Array.from(bytes, (b) => String.fromCodePoint(b)).join("");
// `btoa` Node 16+
return btoa(str);
}
// Thanks https://evanhahn.com/the-best-way-to-concatenate-uint8arrays/ (Public domain)
static mergeUint8Array(...arrays) {
let totalLength = arrays.reduce(
(total, uint8array) => total + uint8array.byteLength,
0
);
let result = new Uint8Array(totalLength);
let offset = 0;
arrays.forEach((uint8array) => {
result.set(uint8array, offset);
offset += uint8array.byteLength;
});
return result;
}
static bufferToBase64Url(hashBuffer) {
return base64UrlSafe(this.toBase64(new Uint8Array(hashBuffer)));
}
static bufferToHex(hashBuffer) {
return Array.from(new Uint8Array(hashBuffer))
.map((b) => b.toString(16).padStart(2, "0"))
.join("");
}
}
class WebCryptoHash extends Hash {
static async toHash(...content) {
let encoder = new TextEncoder();
let input = this.mergeUint8Array(...content.map(c => {
if(isBuffer(c)) {
return c;
}
return encoder.encode(c);
}));
// `crypto` is Node 20+
return crypto.subtle.digest("SHA-256", input);
}
static async toBase64Url(...content) {
return this.toHash(...content).then(hashBuffer => {
return this.bufferToBase64Url(hashBuffer);
});
}
static async toHex(...content) {
return this.toHash(...content).then(hashBuffer => {
return this.bufferToHex(hashBuffer);
});
}
static toBase64UrlSync() {
throw new Error("Synchronous methods are not available in the Web Crypto API.");
}
static toHexSync() {
throw new Error("Synchronous methods are not available in the Web Crypto API.");
}
}
class NodeCryptoHash extends Hash {
static toHash(...content) {
// This *needs* to be a dynamic require for proper bundling.
const { createHash } = require("node:crypto");
let hash = createHash("sha256");
for(let c of content) {
hash.update(c);
}
return hash;
}
static toBase64Url(...content) {
// Note that Node does include a `digest("base64url")` that is supposedly Node 14+ but curiously failed on Stackblitzs Node 16.
let base64 = this.toHash(...content).digest("base64");
return base64UrlSafe(base64);
}
static toHex(...content) {
return this.toHash(...content).digest("hex");
}
// aliases
static toBase64UrlSync = this.toBase64Url;
static toHexSync = this.toHex;
}
class ScriptHash extends Hash {
static toHash(...content) {
let hash = sha256();
for(let c of content) {
hash.add(c);
}
return hash.digest();
}
static toBase64Url(...content) {
let hashBuffer = this.toHash(...content);
return this.bufferToBase64Url(hashBuffer);
}
static toHex(...content) {
let hashBuffer = this.toHash(...content);
return this.bufferToHex(hashBuffer);
}
// aliases
static toBase64UrlSync = this.toBase64Url;
static toHexSync = this.toHex;
}
module.exports = { Hash, NodeCryptoHash, ScriptHash, WebCryptoHash }

View File

@ -1,24 +0,0 @@
/* Prior art: this utility was created for https://github.com/11ty/eleventy/issues/2214
* Inspired by implementations from `is-what`, `typechecker`, `jQuery`, and `lodash`
* `is-what`
* More reading at https://www.npmjs.com/package/is-what#user-content-isplainobject-vs-isanyobject
* if (Object.prototype.toString.call(value).slice(8, -1) !== 'Object') return false;
* return value.constructor === Object && Object.getPrototypeOf(value) === Object.prototype;
* `typechecker`
* return value !== null && typeof value === 'object' && value.__proto__ === Object.prototype;
* Notably jQuery and lodash have very similar implementations.
* For later, remember the `value === Object(value)` trick
*/
module.exports = function (value) {
if (value === null || typeof value !== "object") {
return false;
}
let proto = Object.getPrototypeOf(value);
return !proto || proto === Object.prototype;
};

View File

@ -1,84 +0,0 @@
"use strict";
// above is required for Object.freeze to fail correctly.
const isPlainObject = require("./IsPlainObject.js");
const OVERRIDE_PREFIX = "override:";
function cleanKey(key, prefix) {
if (prefix && key.startsWith(prefix)) {
return key.slice(prefix.length);
}
return key;
}
function getMergedItem(target, source, prefixes = {}) {
let { override } = prefixes;
// Shortcut for frozen source (if target does not exist)
if (!target && isPlainObject(source) && Object.isFrozen(source)) {
return source;
}
let sourcePlainObjectShortcut;
if (!target && isPlainObject(source)) {
// deep copy objects to avoid sharing and to effect key renaming
target = {};
sourcePlainObjectShortcut = true;
}
if (Array.isArray(target) && Array.isArray(source)) {
return target.concat(source);
} else if (isPlainObject(target)) {
if (sourcePlainObjectShortcut || isPlainObject(source)) {
for (let key in source) {
let overrideKey = cleanKey(key, override);
// An error happens here if the target is frozen
target[overrideKey] = getMergedItem(target[key], source[key], prefixes);
}
}
return target;
}
// number, string, class instance, etc
return source;
}
// The same as Merge but without override prefixes
function DeepCopy(targetObject, ...sources) {
for (let source of sources) {
if (!source) {
continue;
}
targetObject = getMergedItem(targetObject, source);
}
return targetObject;
}
function Merge(target, ...sources) {
// Remove override prefixes from root target.
if (isPlainObject(target)) {
for (let key in target) {
if (key.indexOf(OVERRIDE_PREFIX) === 0) {
target[key.slice(OVERRIDE_PREFIX.length)] = target[key];
delete target[key];
}
}
}
for (let source of sources) {
if (!source) {
continue;
}
target = getMergedItem(target, source, {
override: OVERRIDE_PREFIX,
});
}
return target;
}
module.exports = Merge;
module.exports.DeepCopy = DeepCopy;

View File

@ -1,373 +0,0 @@
const path = require("path");
const fs = require("fs");
function TemplatePath() {}
/**
* @returns {String} the absolute path to Eleventys project directory.
*/
TemplatePath.getWorkingDir = function () {
return TemplatePath.normalize(path.resolve("."));
};
/**
* Returns the directory portion of a path.
* Works for directory and file paths and paths ending in a glob pattern.
*
* @param {String} path - A path
* @returns {String} the directory portion of a path.
*/
TemplatePath.getDir = function (path) {
if (TemplatePath.isDirectorySync(path)) {
return path;
}
return TemplatePath.getDirFromFilePath(path);
};
/**
* Returns the directory portion of a path that either points to a file
* or ends in a glob pattern. If `path` points to a directory,
* the returned value will have its last path segment stripped
* due to how [`path.parse`][1] works.
*
* [1]: https://nodejs.org/api/path.html#path_path_parse_path
*
* @returns {String} the directory portion of a path.
* @param {String} filePath - A path
*/
TemplatePath.getDirFromFilePath = function (filePath) {
return path.parse(filePath).dir || ".";
};
/**
* Returns the last path segment in a path (no leading/trailing slashes).
*
* Assumes [`path.parse`][1] was called on `path` before.
*
* [1]: https://nodejs.org/api/path.html#path_path_parse_path
*
* @param {String} path - A path
* @returns {String} the last path segment in a path
*/
TemplatePath.getLastPathSegment = function (path) {
if (!path.includes("/")) {
return path;
}
// Trim a trailing slash if there is one
path = path.replace(/\/$/, "");
return path.slice(path.lastIndexOf("/") + 1);
};
/**
* @param {String} path - A path
* @returns {String[]} an array of paths pointing to each path segment of the
* provided `path`.
*/
TemplatePath.getAllDirs = function (path) {
// Trim a trailing slash if there is one
path = path.replace(/\/$/, "");
if (!path.includes("/")) {
return [path];
}
return path
.split("/")
.map((segment, index, array) => array.slice(0, index + 1).join("/"))
.filter((path) => path !== ".")
.reverse();
};
/**
* Normalizes a path, resolving single-dot and double-dot segments.
*
* Node.js [`path.normalize`][1] is called to strip a possible leading `"./"` segment.
*
* [1]: https://nodejs.org/api/path.html#path_path_normalize_path
*
* @param {String} thePath - The path that should be normalized.
* @returns {String} the normalized path.
*/
TemplatePath.normalize = function (thePath) {
let filePath = path.normalize(thePath).split(path.sep).join("/");
if(filePath !== "/" && filePath.endsWith("/")) {
return filePath.slice(0, -1);
}
return filePath;
};
/**
* Joins all given path segments together.
*
* It uses Node.js [`path.join`][1] method.
*
* [1]: https://nodejs.org/api/path.html#path_path_join_paths
*
* @param {...String} paths - An arbitrary amount of path segments.
* @returns {String} the normalized and joined path.
*/
TemplatePath.join = function (...paths) {
return TemplatePath.normalize(path.join(...paths));
};
/**
* Joins the given URL path segments and normalizes the resulting path.
* Maintains a single trailing slash if the last URL path argument
* had at least one.
*
* @param {...String} urlPaths
* @returns {String} a normalized URL path described by the given URL path segments.
*/
TemplatePath.normalizeUrlPath = function (...urlPaths) {
const urlPath = path.posix.join(...urlPaths);
return urlPath.replace(/\/+$/, "/");
};
/**
* Joins the given path segments. Since the first path is absolute,
* the resulting path will be absolute as well.
*
* @param {...String} paths
* @returns {String} the absolute path described by the given path segments.
*/
TemplatePath.absolutePath = function (...paths) {
let i = 0;
// check all the paths before we short circuit from the first index
for (let p of paths) {
if (path.isAbsolute(p) && i > 0) {
throw new Error(
`Only the first parameter to Template.absolutePath can be an absolute path. Received: ${p} from ${paths}`
);
}
i++;
}
let j = 0;
for (let p of paths) {
if (j === 0 && path.isAbsolute(p)) {
return TemplatePath.join(...paths);
}
j++;
}
return TemplatePath.join(TemplatePath.getWorkingDir(), ...paths);
};
/**
* Turns an absolute path into a path relative to the project directory.
*
* @param {String} absolutePath
* @returns {String} the relative path.
*/
TemplatePath.relativePath = function (absolutePath) {
return TemplatePath.stripLeadingSubPath(
absolutePath,
TemplatePath.getWorkingDir()
);
};
/**
* Adds a leading dot-slash segment to each path in the `paths` array.
*
* @param {String[]} paths
* @returns {String[]}
*/
TemplatePath.addLeadingDotSlashArray = function (paths) {
return paths.map((path) => TemplatePath.addLeadingDotSlash(path));
};
/**
* Adds a leading dot-slash segment to `path`.
*
* @param {String} pathArg
* @returns {String}
*/
TemplatePath.addLeadingDotSlash = function (pathArg) {
if (pathArg === "." || pathArg === "..") {
return pathArg + "/";
}
if (
path.isAbsolute(pathArg) ||
pathArg.startsWith("./") ||
pathArg.startsWith("../")
) {
return pathArg;
}
return "./" + pathArg;
};
/**
* Removes a leading dot-slash segment.
*
* @param {String} path
* @returns {String} the `path` without a leading dot-slash segment.
*/
TemplatePath.stripLeadingDotSlash = function (path) {
return typeof path === "string" ? path.replace(/^\.\//, "") : path;
};
/**
* Determines whether a path starts with a given sub path.
*
* @param {String} path - A path
* @param {String} subPath - A path
* @returns {Boolean} whether `path` starts with `subPath`.
*/
TemplatePath.startsWithSubPath = function (path, subPath) {
path = TemplatePath.normalize(path);
subPath = TemplatePath.normalize(subPath);
return path.startsWith(subPath);
};
/**
* Removes the `subPath` at the start of `path` if present
* and returns the remainding path.
*
* @param {String} path - A path
* @param {String} subPath - A path
* @returns {String} the `path` without `subPath` at the start of it.
*/
TemplatePath.stripLeadingSubPath = function (path, subPath) {
path = TemplatePath.normalize(path);
subPath = TemplatePath.normalize(subPath);
if (subPath !== "." && path.startsWith(subPath)) {
return path.slice(subPath.length + 1);
}
return path;
};
/**
* @param {String} path - A path
* @returns {Boolean} whether `path` points to an existing directory.
*/
TemplatePath.isDirectorySync = function (path) {
return fs.existsSync(path) && fs.statSync(path).isDirectory();
};
/**
* @param {String} path - A path
* @returns {Boolean} whether `path` points to an existing directory.
*/
TemplatePath.isDirectory = async function (path) {
return new Promise((resolve) => {
fs.stat(path, (err, stats) => {
if (stats) {
resolve(stats.isDirectory());
}
resolve(false);
});
});
};
/**
* Appends a recursive wildcard glob pattern to `path`
* unless `path` is not a directory; then, `path` is assumed to be a file path
* and is left unchaged.
*
* @param {String} path
* @returns {String}
*/
TemplatePath.convertToRecursiveGlobSync = function (path) {
if (path === "") {
return "./**";
}
path = TemplatePath.addLeadingDotSlash(path);
if (TemplatePath.isDirectorySync(path)) {
return path + (!path.endsWith("/") ? "/" : "") + "**";
}
return path;
};
/**
* Appends a recursive wildcard glob pattern to `path`
* unless `path` is not a directory; then, `path` is assumed to be a file path
* and is left unchaged.
*
* @param {String} path
* @returns {String}
*/
TemplatePath.convertToRecursiveGlob = async function (path) {
if (path === "") {
return "./**";
}
path = TemplatePath.addLeadingDotSlash(path);
if (await TemplatePath.isDirectory(path)) {
return path + (!path.endsWith("/") ? "/" : "") + "**";
}
return path;
};
/**
* Returns the extension of the path without the leading dot.
* If the path has no extensions, the empty string is returned.
*
* @param {String} thePath
* @returns {String} the paths extension if it exists;
* otherwise, the empty string.
*/
TemplatePath.getExtension = function (thePath) {
return path.extname(thePath).replace(/^\./, "");
};
/**
* Removes the extension from a path.
*
* @param {String} path
* @param {String} [extension]
* @returns {String}
*/
TemplatePath.removeExtension = function (path, extension = undefined) {
if (extension === undefined) {
return path;
}
const pathExtension = TemplatePath.getExtension(path);
if (pathExtension !== "" && extension.endsWith(pathExtension)) {
return path.substring(0, path.lastIndexOf(pathExtension) - 1);
}
return path;
};
/**
* Accepts a relative file path that is using a standard directory separator and
* normalizes it using the local operating system separator.
* e.g. `./my/dir/` stays `./my/dir/` on *nix and becomes `.\\my\\dir\\` on Windows
*
* @param {String} filePath
* @param {String} [sep="/"]
* @returns {String} a file path with the correct local directory separator.
*/
TemplatePath.normalizeOperatingSystemFilePath = function (filePath, sep = "/") {
return filePath.split(sep).join(path.sep);
};
/**
* Accepts a relative file path with the local operating system directory separator and
* normalizes it using a forward slash directory separator. (Leaves trailing slash as-is)
* e.g. `./my/dir/` stays `./my/dir/` on *nix
* e.g. `.\\my\\dir\\` becomes `./my/dir/` on *nix and Windows
*
* @param {String} filePath
* @param {String} [sep="/"]
* @returns {String} a file path with the correct local directory separator.
*/
TemplatePath.standardizeFilePath = function (filePath, sep = "/") {
return TemplatePath.addLeadingDotSlash(filePath.split(path.sep).join(sep));
};
module.exports = TemplatePath;

View File

@ -1,13 +0,0 @@
function base64UrlSafe(hashString = "") {
return hashString.replace(/[=\+\/]/g, function(match) {
if(match === "=") {
return "";
}
if(match === "+") {
return "-";
}
return "_";
});
}
module.exports = { base64UrlSafe };

View File

@ -1,113 +0,0 @@
// https://github.com/6502/sha256
/*
Copyright 2022 Andrea Griffini
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
// sha256(data) returns the digest
// sha256() returns an object you can call .add(data) zero or more time and .digest() at the end
// digest is a 32-byte Uint8Array instance with an added .hex() function.
// Input should be either a string (that will be encoded as UTF-8) or an array-like object with values 0..255.
module.exports = function sha256(data) {
let h0 = 0x6a09e667, h1 = 0xbb67ae85, h2 = 0x3c6ef372, h3 = 0xa54ff53a,
h4 = 0x510e527f, h5 = 0x9b05688c, h6 = 0x1f83d9ab, h7 = 0x5be0cd19,
tsz = 0, bp = 0;
const k = [0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2],
rrot = (x, n) => (x >>> n) | (x << (32-n)),
w = new Uint32Array(64),
buf = new Uint8Array(64),
process = () => {
for (let j=0,r=0; j<16; j++,r+=4) {
w[j] = (buf[r]<<24) | (buf[r+1]<<16) | (buf[r+2]<<8) | buf[r+3];
}
for (let j=16; j<64; j++) {
let s0 = rrot(w[j-15], 7) ^ rrot(w[j-15], 18) ^ (w[j-15] >>> 3);
let s1 = rrot(w[j-2], 17) ^ rrot(w[j-2], 19) ^ (w[j-2] >>> 10);
w[j] = (w[j-16] + s0 + w[j-7] + s1) | 0;
}
let a = h0, b = h1, c = h2, d = h3, e = h4, f = h5, g = h6, h = h7;
for (let j=0; j<64; j++) {
let S1 = rrot(e, 6) ^ rrot(e, 11) ^ rrot(e, 25),
ch = (e & f) ^ ((~e) & g),
t1 = (h + S1 + ch + k[j] + w[j]) | 0,
S0 = rrot(a, 2) ^ rrot(a, 13) ^ rrot(a, 22),
maj = (a & b) ^ (a & c) ^ (b & c),
t2 = (S0 + maj) | 0;
h = g; g = f; f = e; e = (d + t1)|0; d = c; c = b; b = a; a = (t1 + t2)|0;
}
h0 = (h0 + a)|0; h1 = (h1 + b)|0; h2 = (h2 + c)|0; h3 = (h3 + d)|0;
h4 = (h4 + e)|0; h5 = (h5 + f)|0; h6 = (h6 + g)|0; h7 = (h7 + h)|0;
bp = 0;
},
add = data => {
if (typeof data === "string") {
data = typeof TextEncoder === "undefined" ? Buffer.from(data) : (new TextEncoder).encode(data);
}
for (let i=0; i<data.length; i++) {
buf[bp++] = data[i];
if (bp === 64) process();
}
tsz += data.length;
},
digest = () => {
buf[bp++] = 0x80; if (bp == 64) process();
if (bp + 8 > 64) {
while (bp < 64) buf[bp++] = 0x00;
process();
}
while (bp < 58) buf[bp++] = 0x00;
// Max number of bytes is 35,184,372,088,831
let L = tsz * 8;
buf[bp++] = (L / 1099511627776.) & 255;
buf[bp++] = (L / 4294967296.) & 255;
buf[bp++] = L >>> 24;
buf[bp++] = (L >>> 16) & 255;
buf[bp++] = (L >>> 8) & 255;
buf[bp++] = L & 255;
process();
let reply = new Uint8Array(32);
reply[ 0] = h0 >>> 24; reply[ 1] = (h0 >>> 16) & 255; reply[ 2] = (h0 >>> 8) & 255; reply[ 3] = h0 & 255;
reply[ 4] = h1 >>> 24; reply[ 5] = (h1 >>> 16) & 255; reply[ 6] = (h1 >>> 8) & 255; reply[ 7] = h1 & 255;
reply[ 8] = h2 >>> 24; reply[ 9] = (h2 >>> 16) & 255; reply[10] = (h2 >>> 8) & 255; reply[11] = h2 & 255;
reply[12] = h3 >>> 24; reply[13] = (h3 >>> 16) & 255; reply[14] = (h3 >>> 8) & 255; reply[15] = h3 & 255;
reply[16] = h4 >>> 24; reply[17] = (h4 >>> 16) & 255; reply[18] = (h4 >>> 8) & 255; reply[19] = h4 & 255;
reply[20] = h5 >>> 24; reply[21] = (h5 >>> 16) & 255; reply[22] = (h5 >>> 8) & 255; reply[23] = h5 & 255;
reply[24] = h6 >>> 24; reply[25] = (h6 >>> 16) & 255; reply[26] = (h6 >>> 8) & 255; reply[27] = h6 & 255;
reply[28] = h7 >>> 24; reply[29] = (h7 >>> 16) & 255; reply[30] = (h7 >>> 8) & 255; reply[31] = h7 & 255;
reply.hex = () => {
let res = "";
reply.forEach(x => res += ("0" + x.toString(16)).slice(-2));
return res;
};
return reply;
};
if (data === undefined) return {add, digest};
add(data);
return digest();
}

View File

@ -1,48 +0,0 @@
# Eleventy Community Code of Conduct
View the [Code of Conduct](https://www.11ty.dev/docs/code-of-conduct/) on 11ty.dev
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, chat messages, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at eleventy@zachleat.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/

21
node_modules/@11ty/eleventy/LICENSE generated vendored
View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 20172024 Zach Leatherman @zachleat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,47 +0,0 @@
<p align="center"><img src="https://www.11ty.dev/img/logo-github.svg" width="200" height="200" alt="eleventy Logo"></p>
# eleventy 🕚⚡️🎈🐀
A simpler static site generator. An alternative to Jekyll. Written in JavaScript. Transforms a directory of templates (of varying types) into HTML.
Works with HTML, Markdown, JavaScript, Liquid, Nunjucks, with addons for WebC, Sass, Vue, Svelte, TypeScript, JSX, and many others!
## ➡ [Documentation](https://www.11ty.dev/docs/)
- Please star [this repo on GitHub](https://github.com/11ty/eleventy/)!
- Follow us on Mastodon [@eleventy@fosstodon.org](https://fosstodon.org/@eleventy) or Twitter [@eleven_ty](https://twitter.com/eleven_ty)
- Join us on [Discord](https://www.11ty.dev/blog/discord/)
- Support [11ty on Open Collective](https://opencollective.com/11ty)
- [11ty on npm](https://www.npmjs.com/org/11ty)
- [11ty on GitHub](https://github.com/11ty)
[![npm Version](https://img.shields.io/npm/v/@11ty/eleventy.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy) [![GitHub issues](https://img.shields.io/github/issues/11ty/eleventy.svg?style=for-the-badge)](https://github.com/11ty/eleventy/issues) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier) [![npm Downloads](https://img.shields.io/npm/dt/@11ty/eleventy.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy)
## Installation
```
npm install @11ty/eleventy --save-dev
```
Read our [Getting Started guide](https://www.11ty.dev/docs/getting-started/).
## Tests
```
npm run test
```
- We use the [ava JavaScript test runner](https://github.com/avajs/ava) ([Assertions documentation](https://github.com/avajs/ava/blob/master/docs/03-assertions.md))
- To keep tests fast, thou shalt try to avoid writing files in tests.
- [Continuous Integration on GitHub Actions](https://github.com/11ty/eleventy/actions/workflows/ci.yml)
- [Code Coverage Statistics](https://github.com/11ty/eleventy/blob/master/docs/coverage.md)
- [Benchmark for Performance Regressions](https://github.com/11ty/eleventy-benchmark)
## Community Roadmap
- [Top Feature Requests](https://github.com/11ty/eleventy/issues?q=label%3Aneeds-votes+sort%3Areactions-%2B1-desc+label%3Aenhancement) (Add your own votes using the 👍 reaction)
- [Top Bugs 😱](https://github.com/11ty/eleventy/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions) (Add your own votes using the 👍 reaction)
## Plugins
See the [official docs on plugins](https://www.11ty.dev/docs/plugins/).

View File

@ -1,9 +0,0 @@
# Security Policy
## Reporting a Vulnerability
Privately report a security issue by navigating to https://github.com/11ty/eleventy/security and using the “Report a vulnerability” button.
Read more at: https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability
Alternatively, you may report security issues via an email to `security@11ty.dev`.

155
node_modules/@11ty/eleventy/cmd.cjs generated vendored
View File

@ -1,155 +0,0 @@
#!/usr/bin/env node
// This file intentionally uses older code conventions to be as friendly
// as possible with error messaging to folks on older runtimes.
const pkg = require("./package.json");
require("please-upgrade-node")(pkg, {
message: function (requiredVersion) {
return (
"Eleventy " +
pkg.version +
" requires Node " +
requiredVersion +
". You will need to upgrade Node to use Eleventy!"
);
},
});
const minimist = require("minimist");
const debug = require("debug")("Eleventy:cmd");
class SimpleError extends Error {
constructor(...args) {
super(...args);
this.skipOriginalStack = true;
}
}
async function exec() {
// Notes about friendly error messaging with outdated Node versions: https://github.com/11ty/eleventy/issues/3761
const { EleventyErrorHandler } = await import("./src/Errors/EleventyErrorHandler.js");
try {
const argv = minimist(process.argv.slice(2), {
string: ["input", "output", "formats", "config", "pathprefix", "port", "to", "incremental", "loader"],
boolean: [
"quiet",
"version",
"watch",
"dryrun",
"help",
"serve",
"ignore-initial",
],
default: {
quiet: null,
"ignore-initial": false,
"to": "fs",
},
unknown: function (unknownArgument) {
throw new Error(
`We dont know what '${unknownArgument}' is. Use --help to see the list of supported commands.`,
);
},
});
debug("command: eleventy %o", argv);
const { Eleventy } = await import("./src/Eleventy.js");
let ErrorHandler = new EleventyErrorHandler();
process.on("unhandledRejection", (error, promise) => {
ErrorHandler.fatal(error, "Unhandled rejection in promise");
});
process.on("uncaughtException", (error) => {
ErrorHandler.fatal(error, "Uncaught exception");
});
process.on("rejectionHandled", (promise) => {
ErrorHandler.warn(promise, "A promise rejection was handled asynchronously");
});
if (argv.version) {
console.log(Eleventy.getVersion());
return;
} else if (argv.help) {
console.log(Eleventy.getHelp());
return;
}
let elev = new Eleventy(argv.input, argv.output, {
source: "cli",
// --quiet and --quiet=true both resolve to true
quietMode: argv.quiet,
configPath: argv.config,
pathPrefix: argv.pathprefix,
runMode: argv.serve ? "serve" : argv.watch ? "watch" : "build",
dryRun: argv.dryrun,
loader: argv.loader,
});
// reuse ErrorHandler instance in Eleventy
ErrorHandler = elev.errorHandler;
// Before init
elev.setFormats(argv.formats);
await elev.init();
if (argv.to === "json" || argv.to === "ndjson") {
// override logging output
elev.setIsVerbose(false);
}
// Only relevant for watch/serve
elev.setIgnoreInitial(argv["ignore-initial"]);
if(argv.incremental) {
elev.setIncrementalFile(argv.incremental);
} else if(argv.incremental !== undefined) {
elev.setIncrementalBuild(argv.incremental === "" || argv.incremental);
}
if (argv.serve || argv.watch) {
if(argv.to === "json" || argv.to === "ndjson") {
throw new SimpleError("--to=json and --to=ndjson are not compatible with --serve or --watch.");
}
await elev.watch();
if (argv.serve) {
// TODO await here?
elev.serve(argv.port);
}
process.on("SIGINT", async () => {
await elev.stopWatch();
process.exitCode = 0;
});
} else {
if (!argv.to || argv.to === "fs") {
await elev.write();
} else if (argv.to === "json") {
let result = await elev.toJSON()
console.log(JSON.stringify(result, null, 2));
} else if (argv.to === "ndjson") {
let stream = await elev.toNDJSON();
stream.pipe(process.stdout);
} else {
throw new SimpleError(
`Invalid --to value: ${argv.to}. Supported values: \`fs\` (default), \`json\`, and \`ndjson\`.`,
);
}
}
} catch (error) {
if(typeof EleventyErrorHandler !== "undefined") {
let ErrorHandler = new EleventyErrorHandler();
ErrorHandler.fatal(error, "Eleventy Fatal Error (CLI)");
} else {
console.error(error);
process.exitCode = 1;
}
}
}
exec();

Some files were not shown because too many files have changed in this diff Show More