aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--data/assets/styles.css88
-rw-r--r--data/templates/index.html22
-rw-r--r--data/templates/template.html18
-rw-r--r--ringfairy.toml22
-rw-r--r--websites.json32
6 files changed, 183 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e52f310
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+webring
diff --git a/data/assets/styles.css b/data/assets/styles.css
new file mode 100644
index 0000000..f0e8ef5
--- /dev/null
+++ b/data/assets/styles.css
@@ -0,0 +1,88 @@
+body {
+ font-family: serif;
+ line-height: 1.6;
+ background-color: #2D353B;
+ color: #D3C6AA;
+ max-width: 80rem;
+ margin: auto;
+}
+
+h1 {
+ text-align: center;
+}
+
+a {
+ color: #7FBBB3;
+ text-decoration: none;
+ background-color: transparent;
+}
+
+a:hover, a:focus {
+ text-decoration: none;
+ background-color: #7FBBB3;
+ color: #2D353B;
+}
+
+table {
+ width: 90%;
+ border-collapse: collapse;
+ margin: 12px auto;
+ font-size: 1em;
+}
+
+tr {
+ margin-bottom: 10px;
+}
+
+tr:nth-child(odd) {
+ background-color: #343F44; /* Light gray for odd rows */
+}
+
+tr:hover {
+ background-color: #3D484D; /* hover effect for table rows */
+}
+
+th, td {
+ padding: 10px;
+ border: 2px solid #475258;
+ text-align: left;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+th {
+ text-align: center;
+ font-size: 1.1em;
+}
+
+.container {
+ max-width: 800px;
+ margin: auto;
+ padding: 12px;
+}
+
+@media screen and (max-width: 600px) {
+ body {
+ font-size: 90%;
+ }
+
+ table {
+ width: 100%;
+ display: block;
+ overflow-x: auto;
+ white-space: nowrap;
+ }
+
+ th, td {
+ display: block;
+ text-align: left;
+ white-space: normal;
+ }
+
+ tr {
+ display: flex;
+ flex-direction: column;
+ }
+
+} \ No newline at end of file
diff --git a/data/templates/index.html b/data/templates/index.html
new file mode 100644
index 0000000..adfac6e
--- /dev/null
+++ b/data/templates/index.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html lang="en">
+ <link rel="stylesheet" href="./styles.css">
+ <head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{{ ring_name }} List</title>
+ </head>
+ <body>
+ <h1>{{ ring_name }} List</h1>
+ <p>{{ ring_description }}</p>
+ <p>Add all sites with declared RSS feeds to your feed reader with this <a href ="{{ opml }}">OPML</a> link.</p>
+ {{ table_of_sites | safe}}
+
+
+ <br>
+ <footer>
+ <p>Last updated: {{ current_time }} </p>
+ <p>Powered by <a href="https://github.com/k3rs3d/ringfairy">ringfairy</a>!</p>
+ </footer>
+ </body>
+</html>
diff --git a/data/templates/template.html b/data/templates/template.html
new file mode 100644
index 0000000..0ae260d
--- /dev/null
+++ b/data/templates/template.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="refresh" content="0; url={{ url }}">
+ <title>Redirecting...</title>
+
+ <style>
+ body {
+ background-color: #000;
+ color: #fff;
+ }
+ </style>
+</head>
+<body>
+ <p>A fairy is teleporting you to <a href="{{ url }}">{{ url }}</a>...!</p>
+</body>
+</html>
diff --git a/ringfairy.toml b/ringfairy.toml
new file mode 100644
index 0000000..fe5e6e3
--- /dev/null
+++ b/ringfairy.toml
@@ -0,0 +1,22 @@
+base_url = "https://evilr.ing"
+ring_name = "EVILRING"
+ring_description = "An evil webring for evil creatures"
+ring_owner = "soaos"
+ring_owner_site = "https://exvacuum.dev"
+
+filepath_list = "./websites.json" # Website list; should be a JSON file with 'name', 'url', etc
+path_output = "./webring" # Generated files will be saved in this folder.
+path_assets = "./data/assets" # All contents of the asset folder will be copied directly into the output directory
+path_templates = "./data/templates" # The folder containing HTML templates to use, ie, anything with {{ tags }}
+filename_template_redirect = "template.html" # This template gets reused to build the redirect pages for each site, and is ignored when building the other custom templates
+
+client_user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
+client_header = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
+audit_retries_delay = 100
+audit_retries_max = 2
+
+shuffle = false # Randomizes website sequence when generating
+verbose = false # Enables verbose logging
+skip_minify = false # If your generated HTML have issues, or you want hand-editable output, try skip minification
+skip_verify = false # Skips verification of the URLs in the list. Might be unwise!
+dry_run = false # Perform a dry run without writing any files. Can be used to check the site audit for example.
diff --git a/websites.json b/websites.json
new file mode 100644
index 0000000..68f028c
--- /dev/null
+++ b/websites.json
@@ -0,0 +1,32 @@
+[
+ {
+ "name": "soaos",
+ "slug": "soaos",
+ "about": "soaos",
+ "url": "https://exvacuum.dev",
+ "owner": "Silas Bartha",
+ "rss": "https://exvacuum.dev/rss.xml"
+ },
+ {
+ "name": "Briana",
+ "slug": "bburton",
+ "about": "Briana Burton | Software Dev",
+ "url": "https://briana.cc",
+ "owner": "Briana Burton"
+ },
+ {
+ "name": "Evan Pratten",
+ "slug": "ewpratten",
+ "about": "Evan Pratten",
+ "url": "https://ewpratten.com/",
+ "owner": "Evan Pratten",
+ "rss": "https://ewpratten.com/rss.xml"
+ },
+ {
+ "name": "cjsatnarine",
+ "slug": "cjsatnarine",
+ "about": "cjsatnarine",
+ "url": "https://cjsatnarine.github.io/",
+ "owner": "CJ Satnarine"
+ }
+]