commit a45c4e6be09253a3a0250e6c23da1bfbad451ff7 Author: Bradley Taunt Date: Sat Nov 12 22:03:49 2022 -0500 Initial project port from GitHub to sourcehut diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d7951d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +Gemfile.lock +_site diff --git a/404.html b/404.html new file mode 100644 index 0000000..b24e1d6 --- /dev/null +++ b/404.html @@ -0,0 +1,10 @@ +--- +permalink: /404.html +layout: default +--- + +

404

+ +

Page not found :(

+

The requested page could not be found.

+
diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..6c6337d --- /dev/null +++ b/Gemfile @@ -0,0 +1,32 @@ +source "https://rubygems.org" +# Hello! This is where you manage which Jekyll version is used to run. +# When you want to use a different version, change it below, save the +# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: +# +# bundle exec jekyll serve +# +# This will help ensure the proper Jekyll version is running. +# Happy Jekylling! +gem "jekyll", "~> 4.1.1" +# This is the default theme for new Jekyll sites. You may change this to anything you like. +gem "minima", "~> 2.5" +# If you want to use GitHub Pages, remove the "gem "jekyll"" above and +# uncomment the line below. To upgrade, run `bundle update github-pages`. +# gem "github-pages", group: :jekyll_plugins +# If you have any plugins, put them here! +#group :jekyll_plugins do +# gem "jekyll-feed", "~> 0.12" +#end + +# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem +# and associated library. +platforms :mingw, :x64_mingw, :mswin, :jruby do + gem "tzinfo", "~> 1.2" + gem "tzinfo-data" +end + +# Performance-booster for watching directories on Windows +gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin] + + +gem "webrick", "~> 1.7" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9d88e14 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Bradley Taunt + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..75fd103 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# 1kb.club + +An exclusive members-only club for web pages weighing less than 1 kilobyte + +Live collection: [https://1kb.club](https://1kb.club) diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..bb3b212 --- /dev/null +++ b/_config.yml @@ -0,0 +1,32 @@ +title: 1kB Club +description: An exclusive membership for web pages weighing less than 1 kilobyte. +baseurl: '' # the subpath of your site, e.g. /blog +url: https://1kb.club # the base hostname & protocol for your site, e.g. http://example.com + +author: + name: Bradley Taunt + email: hello@tdarb.org + +# Collections +collections: + site_listings: + output: false + u: + output: true + +permalink: /blog/:title/ + +highlighter: none + +compress_html: + clippings: all + endings: all + startings: [html, head, body] + +exclude: + - generate.sh + - README.md + +include: + - netlify.toml + - ~/ diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..d141e27 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,3 @@ + diff --git a/_includes/head.html b/_includes/head.html new file mode 100755 index 0000000..a0bd356 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,5 @@ + + + + 1kB + diff --git a/_includes/users.html b/_includes/users.html new file mode 100644 index 0000000..95468e8 --- /dev/null +++ b/_includes/users.html @@ -0,0 +1,20 @@ +

Users (Add User) + + + + + + + + + {% for item in users %} + {% if item.size == 0 %} + {% else %} + + + + + {% endif %} + {% endfor %} + +
URLSize in bytes
~{{ item.pageurl }}{{ item.size }}
diff --git a/_layouts/compress.html b/_layouts/compress.html new file mode 100644 index 0000000..bb34487 --- /dev/null +++ b/_layouts/compress.html @@ -0,0 +1,10 @@ +--- +# Jekyll layout that compresses HTML +# v3.1.0 +# http://jch.penibelst.de/ +# © 2014–2015 Anatol Broder +# MIT License +--- + +{% capture _LINE_FEED %} +{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "" %}{% endif %}{% unless _pre_before contains "" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " ;; ;" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %}
Step Bytes
raw {{ content | size }}{% if _profile_endings %}
endings {{ _profile_endings }}{% endif %}{% if _profile_startings %}
startings {{ _profile_startings }}{% endif %}{% if _profile_comments %}
comments {{ _profile_comments }}{% endif %}{% if _profile_collapse %}
collapse {{ _profile_collapse }}{% endif %}{% if _profile_clippings %}
clippings {{ _profile_clippings }}{% endif %}
{% endif %}{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100755 index 0000000..cbff99e --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,13 @@ +--- +layout: compress +--- + + + + + {% include head.html %} + + + {{ content }} + + diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100755 index 0000000..bfe2a7b --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,13 @@ +--- +layout: compress +--- + + + + + {% include head.html %} + + {{ content }} + + + diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..71a2338 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,9 @@ +--- +layout: default +--- + +

{{ page.name }} +

{{ page.blurb }} +

{{ page.email }} + + diff --git a/_site_listings/10xdev.cc.md b/_site_listings/10xdev.cc.md new file mode 100644 index 0000000..d3dfbbb --- /dev/null +++ b/_site_listings/10xdev.cc.md @@ -0,0 +1,4 @@ +--- +pageurl: 10xdev.cc +size: 387 +--- diff --git a/_site_listings/1k.ekallevig.com.md b/_site_listings/1k.ekallevig.com.md new file mode 100644 index 0000000..490cca1 --- /dev/null +++ b/_site_listings/1k.ekallevig.com.md @@ -0,0 +1,4 @@ +--- +pageurl: 1k.ekallevig.com +size: 697 +--- diff --git a/_site_listings/1k.lom.me.md b/_site_listings/1k.lom.me.md new file mode 100644 index 0000000..975152d --- /dev/null +++ b/_site_listings/1k.lom.me.md @@ -0,0 +1,4 @@ +--- +pageurl: 1k.lom.me +size: 628 +--- diff --git a/_site_listings/1kb.alexi.sh.md b/_site_listings/1kb.alexi.sh.md new file mode 100644 index 0000000..3d779fd --- /dev/null +++ b/_site_listings/1kb.alexi.sh.md @@ -0,0 +1,4 @@ +--- +pageurl: 1kb.alexi.sh +size: 832 +--- diff --git a/_site_listings/1kb.club.submit.md b/_site_listings/1kb.club.submit.md new file mode 100644 index 0000000..e3ee064 --- /dev/null +++ b/_site_listings/1kb.club.submit.md @@ -0,0 +1,4 @@ +--- +pageurl: 1kb.club/submit +size: 699 +--- \ No newline at end of file diff --git a/_site_listings/1kb.jorgeff.com.md b/_site_listings/1kb.jorgeff.com.md new file mode 100644 index 0000000..28bc4b6 --- /dev/null +++ b/_site_listings/1kb.jorgeff.com.md @@ -0,0 +1,4 @@ +--- +pageurl: 1kb.jorgeff.com +size: 872 +--- diff --git a/_site_listings/1kb.lejtzen.dev.md b/_site_listings/1kb.lejtzen.dev.md new file mode 100644 index 0000000..62ab0b7 --- /dev/null +++ b/_site_listings/1kb.lejtzen.dev.md @@ -0,0 +1,4 @@ +--- +pageurl: 1kb.lejtzen.dev +size: 979 +--- diff --git a/_site_listings/1kb.lingdocs.com.md b/_site_listings/1kb.lingdocs.com.md new file mode 100644 index 0000000..9adffae --- /dev/null +++ b/_site_listings/1kb.lingdocs.com.md @@ -0,0 +1,4 @@ +--- +pageurl: 1kb.lingdocs.com +size: 500 +--- diff --git a/_site_listings/1kb.ng5p.com.md b/_site_listings/1kb.ng5p.com.md new file mode 100644 index 0000000..8bc43b4 --- /dev/null +++ b/_site_listings/1kb.ng5p.com.md @@ -0,0 +1,4 @@ +--- +pageurl: 1kb.ng5p.com +size: 910 +--- \ No newline at end of file diff --git a/_site_listings/blmayer.dev.md b/_site_listings/blmayer.dev.md new file mode 100644 index 0000000..665d8b9 --- /dev/null +++ b/_site_listings/blmayer.dev.md @@ -0,0 +1,4 @@ +--- +pageurl: blmayer.dev +size: 715 +--- diff --git a/_site_listings/cv.tdarb.org.md b/_site_listings/cv.tdarb.org.md new file mode 100644 index 0000000..ed6eb8a --- /dev/null +++ b/_site_listings/cv.tdarb.org.md @@ -0,0 +1,4 @@ +--- +pageurl: cv.tdarb.org +size: 920 +--- \ No newline at end of file diff --git a/_site_listings/hi.gy.md b/_site_listings/hi.gy.md new file mode 100644 index 0000000..e9f45d8 --- /dev/null +++ b/_site_listings/hi.gy.md @@ -0,0 +1,4 @@ +--- +pageurl: hi.gy +size: 622 +--- diff --git a/_site_listings/kb.vicjicama.com.md b/_site_listings/kb.vicjicama.com.md new file mode 100644 index 0000000..8934469 --- /dev/null +++ b/_site_listings/kb.vicjicama.com.md @@ -0,0 +1,4 @@ +--- +pageurl: kb.vicjicama.com +size: 828 +--- diff --git a/_site_listings/korayer.de.md b/_site_listings/korayer.de.md new file mode 100644 index 0000000..6ec74a8 --- /dev/null +++ b/_site_listings/korayer.de.md @@ -0,0 +1,4 @@ +--- +pageurl: korayer.de +size: 1014 +--- diff --git a/_site_listings/pussthecat.org.1.md b/_site_listings/pussthecat.org.1.md new file mode 100644 index 0000000..623c665 --- /dev/null +++ b/_site_listings/pussthecat.org.1.md @@ -0,0 +1,4 @@ +--- +pageurl: pussthecat.org/1 +size: 565 +--- \ No newline at end of file diff --git a/_site_listings/richardthames.com.md b/_site_listings/richardthames.com.md new file mode 100644 index 0000000..29b3b6b --- /dev/null +++ b/_site_listings/richardthames.com.md @@ -0,0 +1,4 @@ +--- +pageurl: richardthames.com +size: 894 +--- diff --git a/_site_listings/t0.vc.md b/_site_listings/t0.vc.md new file mode 100644 index 0000000..a3c92e7 --- /dev/null +++ b/_site_listings/t0.vc.md @@ -0,0 +1,4 @@ +--- +pageurl: t0.vc +size: 659 +--- diff --git a/_site_listings/zenofpython.org.md b/_site_listings/zenofpython.org.md new file mode 100644 index 0000000..8978c0f --- /dev/null +++ b/_site_listings/zenofpython.org.md @@ -0,0 +1,4 @@ +--- +pageurl: zenofpython.org +size: 1022 +--- diff --git a/_site_listings/zrice.net.md b/_site_listings/zrice.net.md new file mode 100644 index 0000000..c121bef --- /dev/null +++ b/_site_listings/zrice.net.md @@ -0,0 +1,4 @@ +--- +pageurl: zrice.net +size: 854 +--- diff --git a/_u/10xdev.md b/_u/10xdev.md new file mode 100644 index 0000000..26ed1fd --- /dev/null +++ b/_u/10xdev.md @@ -0,0 +1,8 @@ +--- +layout: post +name: Marvin 10xdev +blurb: I'm a web3 developer. +pageurl: 10xdev +email: marvin.10xdev@proton.me +size: 490 +--- diff --git a/_u/index.md b/_u/index.md new file mode 100644 index 0000000..bcb2c42 --- /dev/null +++ b/_u/index.md @@ -0,0 +1,28 @@ +--- +layout: default +size: 0 +permalink: /u/index.html +--- + +[← Go home](/) + +Get your own `user` 1kB Club sub-folder domain! + +1. Fork the 1kB repo +2. Add a new file under `_u` +3. Setup the file settings based on the template below +4. Save the file as `yourname.md` +5. [Open a PR here](https://github.com/bradleytaunt/1kb.club/pulls) + +Use the template below when creating your site file (size in bytes): + +``` +--- +layout: post +name: Bradley Taunt +blurb: I'm a UX designer from Canada. +pageurl: tdarb +email: hello@tdarb.org +size: 646 +--- +``` diff --git a/_u/tdarb.md b/_u/tdarb.md new file mode 100644 index 0000000..08a613f --- /dev/null +++ b/_u/tdarb.md @@ -0,0 +1,8 @@ +--- +layout: post +name: Bradley Taunt +blurb: I'm a UX designer from Canada. +pageurl: tdarb +email: hello@tdarb.org +size: 482 +--- \ No newline at end of file diff --git a/atom.xml b/atom.xml new file mode 100644 index 0000000..13c57f0 --- /dev/null +++ b/atom.xml @@ -0,0 +1,26 @@ +--- +layout: null +--- + + + + + {{ site.title }} + + + {{ site.time | date_to_xmlschema }} + {{ site.url }} + + {{ site.author.name }} + {{ site.author.email }} + + + {% for item in site.site_listings %} + + {{ item.pageurl }} - {{ item.size }} kb + + https://{{ item.pageurl }} + + {% endfor %} + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..bdcc403 --- /dev/null +++ b/index.html @@ -0,0 +1,33 @@ +--- +layout: default +title: A collection of websites weighing in less than 1kB +summary: Listing all websites under 1kB in total size +--- + +

1kB Club is a list of web pages weighing less than 1 kilobyte (1,024 bytes). + +

--- +{% assign websites = site.site_listings | sort: 'size' %} +{% assign users = site.u | sort: 'size' %} +

Members (Submit) + + + + + + + + + {% for item in websites %} + + + + + {% endfor %} + +
URLSize in bytes
{{ item.pageurl }}{{ item.size }}
+ +

--- + +{% include users.html %} + diff --git a/submit.md b/submit.md new file mode 100644 index 0000000..67e80a2 --- /dev/null +++ b/submit.md @@ -0,0 +1,20 @@ +--- +title: Submit +layout: page +--- + +[← Go home](/) + +Submit to the 1kB Club + +1. Put your website through [GTmetrix](https://gtmetrix.com) +2. [Open a PR here](https://github.com/bradleytaunt/1kb.club/pulls) + +Use the template below when creating your site file (size in bytes): + +``` +--- +pageurl: domain.com +size: 300 +--- +``` \ No newline at end of file