From 0f8fb83bfa786116ec11d9299634511d2f9d17c2 Mon Sep 17 00:00:00 2001 From: Cassie Jones Date: Fri, 22 Nov 2019 03:49:37 -0500 Subject: [PATCH] Add webrings code --- .eleventy.js | 3 ++ _includes/layouts/layout.njk | 22 ++++++--------- _includes/style.css | 1 + webrings.njk | 46 +++++++++++++++++++++++++++++++ webrings/spicy-coding-alliance.md | 32 +++++++++++++++++++++ webrings/webrings.json | 4 +++ 6 files changed, 94 insertions(+), 14 deletions(-) create mode 100644 webrings.njk create mode 100644 webrings/spicy-coding-alliance.md create mode 100644 webrings/webrings.json diff --git a/.eleventy.js b/.eleventy.js index 651af42..0017607 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -5,6 +5,7 @@ const dateFilter = require("nunjucks-date-filter"); const md = require("markdown-it")(); const CleanCSS = require("clean-css"); const htmlMinifier = require("html-minifier"); +const util = require("util"); module.exports = (eleventyConfig) => { eleventyConfig.addNunjucksFilter('date', dateFilter); @@ -15,6 +16,7 @@ module.exports = (eleventyConfig) => { eleventyConfig.addPassthroughCopy("img"); eleventyConfig.addPassthroughCopy("static"); + eleventyConfig.addPassthroughCopy("stamps"); eleventyConfig.addNunjucksShortcode("youtube", youtubeShortcode); eleventyConfig.addPairedNunjucksShortcode("tweet", tweetShortcode); @@ -25,6 +27,7 @@ module.exports = (eleventyConfig) => { eleventyConfig.addFilter("groupby", groupbyFilter); eleventyConfig.addFilter("cssmin", css => new CleanCSS({}).minify(css).styles); + eleventyConfig.addFilter("debug", util.inspect); eleventyConfig.setDataDeepMerge(true); diff --git a/_includes/layouts/layout.njk b/_includes/layouts/layout.njk index 7fcb4fa..d0a43e2 100644 --- a/_includes/layouts/layout.njk +++ b/_includes/layouts/layout.njk @@ -2,25 +2,17 @@ - {% if title %} - Witch of Light - {{ title }} - - + {{ title }} {% else %} Witch of Light - - {% endif %} {% if summary %} - - {% else %} - - {% endif %} + @@ -30,7 +22,6 @@ - {% set css %}{% include "style.css" %}{% endset %} @@ -38,10 +29,13 @@
-
-

Witch of Light

-
+
+

+ Witch of Light +

+ Webrings +    Archive    RSS diff --git a/_includes/style.css b/_includes/style.css index 93c0a3e..a227e46 100644 --- a/_includes/style.css +++ b/_includes/style.css @@ -52,6 +52,7 @@ aside.warning { background: #ffecbf; } .spacer { flex-grow: 1; } .ls-none { list-style: none; padding: 0; margin: 0; } .im-icon { background: none; width: 2em; } +.fwrap { flex-wrap: wrap; } .hov-fade:hover { filter: invert(50%); } .wide-1, .row > .block-1 { display: inline-block; width: 1em; } .tall-1, .col > .block-1 { display: inline-block; height: 1em; } diff --git a/webrings.njk b/webrings.njk new file mode 100644 index 0000000..61e3358 --- /dev/null +++ b/webrings.njk @@ -0,0 +1,46 @@ +--- +title: Webrings +layout: "layouts/layout.njk" +summary: "It's good to make your own communities. I list my webrings here." +stamps: + - su/periblush.png + - hs/light.png + - su/strawberry.png + - hs/homestuck-house.png + - id/nonbinary.png + - id/trans.png + - id/lesbian.png + - id/they-them.png + - id/she-her.png +--- + +
+

+ It's good to make your own communities and your own spaces, and this is a fun and sorta goofy way to do that. + Also, homemade internet aesthetics absolutely own, so I'm gonna cover this page in stamps. +

+
+
+{% for stamp in stamps %}{% endfor %} +
+{% for webring in collections.webrings %} +
+

{{ webring.data.title }}

+ +
+ {{ webring.templateContent | safe }} +
+ +
+
+{% for stamp in webring.data.stamps %}{% endfor %} +
+{% endfor %} diff --git a/webrings/spicy-coding-alliance.md b/webrings/spicy-coding-alliance.md new file mode 100644 index 0000000..5993486 --- /dev/null +++ b/webrings/spicy-coding-alliance.md @@ -0,0 +1,32 @@ +--- +title: Spicy Coding Alliance +next: "https://spicyyeti.neocities.org/" +prev: "https://spicyyeti.neocities.org/" +pages: + - title: "Spicy Yeti" + url: "https://spicyyeti.neocities.org/" + - title: "Witch of Light" + url: "https://blog.witchoflight.com/webrings/#spicy-coding-alliance" +stamps: + - hs/homestuck-house.png + - hs/homestuck-sky.png + - hs/homestuck-sucks.png + - hs/yes-i-like-homestuck.png + - hs/shut-up-homestuck.png + - hs/libra.png + - hs/virgo.png + - hs/light.png + - hs/derse.png + - hs/love-aradia.png + - hs/love-kanaya.png + - hs/love-terezi.png + - hs/love-vriska.png + - hs/nak.gif + - hs/pesterchum.png + - hs/pyalsprite.png + - hs/rosemary.gif +--- + +A group formed by some Homestucks, of people help each other learn to make their own websites, and share resources. Own the means of website production! + +> l;ksd;aldkls;ad WE'RE WEBMUNISTS — carmi diff --git a/webrings/webrings.json b/webrings/webrings.json new file mode 100644 index 0000000..a33343c --- /dev/null +++ b/webrings/webrings.json @@ -0,0 +1,4 @@ +{ + "tags": ["webrings"] +} + -- 2.47.0