Compare commits

...

8 Commits

16 changed files with 80 additions and 43 deletions

View File

@ -9,19 +9,7 @@
<p>No listings.</p>
{% endif %}
{% for listing in collections[tag] | filterByDate(today) %}
<div class="listing{% if listing.data.draft %} draft{% endif %}">
<h3>{{ listing.data.title }}</h3>
<p class="blurb">
<strong>
<a href="https://{{ listing.data.url }}"
target="_blank">{{ listing.data.handle }}</a>
offers:</strong> {{ listing.data.blurb }}
</p>
<p class="listed-on">
listed on <time datetime="{{ listing.date | htmlDateString }}"
>{{ listing.date | readableDate() }}</time>
</p>
</div>
{% include "listing.njk" %}
{% endfor %}
</div>
{% endfor %}

View File

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

16
_includes/listing.njk Normal file
View File

@ -0,0 +1,16 @@
<div class="listing{% if listing.data.draft %} draft{% endif %}">
<h3>{{ listing.data.title }}</h3>
<p class="blurb">
<strong>
<a href="https://{{ listing.data.url }}"
target="_blank">{{ listing.data.handle }}</a>
offers:</strong> {{ listing.data.blurb }}
</p>
{% if listing.data.rate %}
<p>Suggested rate: {{ listing.data.rate }}</p>
{% endif %}
<p class="listed-on">
listed on <time datetime="{{ listing.date | htmlDateString }}"
>{{ listing.date | readableDate() }}</time>
</p>
</div>

View File

@ -3,7 +3,8 @@
"version": "1.0.0",
"description": "",
"scripts": {
"build": "rm -rf _site && npx @11ty/eleventy --pathprefix=fedi-skillshares",
"build": "rm -rf _site && npx @11ty/eleventy",
"build-codeberg": "rm -rf _site && npx @11ty/eleventy --pathprefix=fedi-skillshares",
"dev": "rm -rf _live && npx @11ty/eleventy --serve --quiet --output _live"
},
"keywords": [],

View File

@ -1,5 +1,4 @@
---
layout: base.njk
title: About the Classifieds
---
@ -29,20 +28,24 @@ title: About the Classifieds
<h2>Is this paid?</h2>
<p>
At current, the assumption is that these are free skillshares. If there's demand
for listings for paid skillshares, I can add that field to the listings and
let folks specify rate/pro bono. Pretty up to y'all. Let me know.
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>How do I let you know?</h2>
<h2>Who made this?</h2>
<p>
You can find all my contact methods on the site linked to my name in the footer, or just
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>Colophon</h2>
Built with <a href="https://11ty.dev" target="_blank">{{ eleventy.generator }}</a>.
Hosted on Codeberg Pages.
<p>
Built with <a href="https://11ty.dev" target="_blank">{{ eleventy.generator }}</a>,
and <a href="https://declare-ai.org/1.0.0/none.html" target="_blank">without the
aid of generative AI</a>. Hosted on Codeberg Pages.
</p>

View File

@ -0,0 +1,7 @@
---
title: Foraging in the UK
handle: "@worshipthesquid@weirder.earth"
url: "weirder.earth/@worshipthesquid"
blurb: "I'm happy to share responsible UK plant foraging skills, including figuring out how you can get started. I'm in Scotland (but the rest of the UK shares a lot of the same plants). (Also always excited to hear about others' foraging and plant connection!)"
date: 2026-05-04
---

View File

@ -3,5 +3,6 @@ title: introductory web development and terminal basics
handle: "@inherentlee@flipping.rocks"
url: "flipping.rocks/@inherentlee"
blurb: I'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'll talk about git and the terminal.
rate: free or skill swap
date: 2026-04-29
---

21
src/daily.njk Normal file
View File

@ -0,0 +1,21 @@
---
title: Day-by-day listings
pagination:
data: collections.daily
size: 30
reverse: true
---
{% css %}
ol {
list-style: none;
text-align: center;
}
{% endcss %}
<ol>
{% for post in pagination.items %}
<li>
<a href="{{ post.url }}">{{ post.data.title }}</a>
</li>
{% endfor %}
</ol>

View File

@ -1,5 +1,5 @@
---
title: Listings for April 29th, 2026
title: April 29th, 2026
---
{% css %}{% include "css/listings.css" %}{% endcss %}

View File

@ -1,5 +1,5 @@
---
title: Listings for May 1st, 2026
title: May 1st, 2026
---
{% css %}{% include "css/listings.css" %}{% endcss %}

View File

@ -1,5 +1,5 @@
---
title: Listings for May 2nd, 2026
title: May 2nd, 2026
---
{% css %}{% include "css/listings.css" %}{% endcss %}

View File

@ -1,5 +1,5 @@
---
title: Listings for May 3rd, 2026
title: May 3rd, 2026
---
{% css %}{% include "css/listings.css" %}{% endcss %}

7
src/daily/2026-05-04.njk Normal file
View File

@ -0,0 +1,7 @@
---
title: May 4th, 2026
---
{% css %}{% include "css/listings.css" %}{% endcss %}
{% set today = "2026-05-04" %}
{% include "daily-listings.njk" %}

View File

@ -1,5 +1,4 @@
---
layout: base.njk
title: Fediverse Skillshare Classifieds
---
{% css %}{% include "css/listings.css" %}{% endcss %}
@ -26,19 +25,7 @@ title: Fediverse Skillshare Classifieds
<p>No listings.</p>
{% endif %}
{% for listing in collections[tag] %}
<div class="listing{% if listing.data.draft %} draft{% endif %}">
<h3>{{ listing.data.title }}</h3>
<p class="blurb">
<strong>
<a href="https://{{ listing.data.url }}"
target="_blank">{{ listing.data.handle }}</a>
offers:</strong> {{ listing.data.blurb }}
</p>
<p class="listed-on">
listed on <time datetime="{{ listing.date | htmlDateString }}"
>{{ listing.date | readableDate() }}</time>
</p>
</div>
{% include "listing.njk" %}
{% endfor %}
</div>
{% endfor %}

3
src/src.11tydata.js Normal file
View File

@ -0,0 +1,3 @@
export default {
layout: "base.njk"
}

View File

@ -1,5 +1,4 @@
---
layout: base.njk
title: Submit a Listing
---
@ -19,6 +18,7 @@ title: Submit a Listing
<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>