Skip to content

Commit

Permalink
Major refactor, store descriptions, change how the sites are stored.
Browse files Browse the repository at this point in the history
  • Loading branch information
artlung committed May 20, 2024
1 parent eb37877 commit f207ed7
Show file tree
Hide file tree
Showing 13 changed files with 1,509 additions and 802 deletions.
9 changes: 5 additions & 4 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ module.exports = function(eleventyConfig) {

eleventyConfig.addShortcode("blogToday", function() {
const fs = require('fs');
const dates = require('./dates.json');
const sites = require('./sites.json');
const today = new Date().toISOString().split('T')[0];
return sites.dates[today];
return dates.dates[today];
});
eleventyConfig.addShortcode("blogsByDate", function() {
const fs = require('fs');
const sites = require('./sites.json');
return sites.dates;
const dates = require('./dates.json');
return dates.dates;
});
};
};
10 changes: 10 additions & 0 deletions _site/README/index.html
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
<h1>blogofthe.day</h1>
<p>Explore the indie web, one blog at a time.</p>
<img width="909" alt="blogofthe.day home page" src="https://github.com/artlung/blogofthe.day/assets/37276661/fcc3487c-71bb-4109-b968-ffdc42781e23">
<h2>Deployments</h2>
<p><a href="https://app.netlify.com/sites/blogoftheday/deploys"><img src="https://api.netlify.com/api/v1/badges/202f6963-cdaf-487c-897a-d2eb87123342/deploy-status" alt="Netlify Status"></a></p>
<h2>License</h2>
<p>This project is licensed under an <a href="LICENSE">MIT license</a>.</p>
<h2>Contributing</h2>
<p>Want to add your site to blogofthe.day? Add your site to the bottom of the &quot;blogs&quot; value in the <code>sites.json</code> file. Sites are selected at random, so it may take a while for your blog to show up on the site. Then, file a pull request.</p>
<h2>Acknowledgements</h2>
<p>The <code>&lt;browser-window&gt;</code> web component used in this guide was developed by <a href="https://www.zachleat.com/web/browser-window/">Zach Leatherman</a>.</p>
4 changes: 3 additions & 1 deletion _site/assets/js/browser-window.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This code is by zachleat.com: https://www.zachleat.com/web/browser-window/

class BrowserWindow extends HTMLElement {
static tagName = "browser-window";

Expand Down Expand Up @@ -215,4 +217,4 @@ class BrowserWindow extends HTMLElement {

if ("customElements" in window) {
customElements.define(BrowserWindow.tagName, BrowserWindow);
}
}
1 change: 1 addition & 0 deletions _site/feed.rss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<lastBuildDate>{{ new Date().toUTCString() }}</lastBuildDate>
<pubDate>{{ new Date().toUTCString
() }}</pubDate>
{% assign blogsByDate = site.blogs | sort: 'date' | reverse %}
{% for date, blog in blogsByDate %}
<item>
<title>{{ blog }}</title>
Expand Down
513 changes: 493 additions & 20 deletions _site/feed.xml

Large diffs are not rendered by default.

70 changes: 38 additions & 32 deletions _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,94 +3,100 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blog of the Day</title>
<title>Blog of the Day: Explore the (indie) web, one blog at a time.</title>
<script src="/assets/js/browser-window.js"></script>

<meta name="description" content="Explore the indie web, one blog at a time.">
<meta property="og:image" content="https://screenshot.jamesg.blog?url=https://blogofthe.day">
<meta property="og:title" content="Blog of the Day">
<meta property="og:description" content="Explore the indie web, one blog at a time.">
<meta property="og:url" content="https://blogofthe.day">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">

<meta name="description" content="Explore the IndieWeb, the slow web, the independent web, one blog per day">
<link rel="alternate" type="application/rss+xml" title="Blog of the Day" href="/feed.xml">

<link rel="icon" href="/assets/img/favicon.ico">
<style>
html, body {
height: 100%;
max-width: 100ch;
margin: auto;
}
:root {
--theme-color: #7ea1ff;
}
* {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
box-sizing: border-box;
}
main {
padding: 20px;
text-align: center;
max-width: 35em;
margin: auto;
}
iframe {
border: none;
}
browser-window {
max-width: 500px;
display: block;
margin: auto;
}
iframe {
width: 100%;
height: 300px;
border: none;
iframe, browser-window {
height: 500px;
width: clamp(500px, 80%, 800px);
overflow: hidden;
}
#buttons {
margin: auto;
display: grid;
gap: 1ch;
max-width: 24ch;
}
.button-link {
display: inline-block;
padding: 10px 20px;
margin: 10px;
background-color: royalblue;
padding: 1ch 2ch;
margin: 0;
background-color: var(--theme-color);
color: white;
text-decoration: none;
border-radius: 5px;
}
a {
text-decoration: none;
color: royalblue;
color: var(--theme-color);
}
a:hover {
text-decoration: underline;
}
details {
margin-top: 20px;
border: 2px dotted royalblue;
border: 2px dotted var(--theme-color);
padding: 10px;
}
details > h2, details > p {
text-align: left;
margin: 20px 0;
}
footer p small {
color: color-mix(in srgb, var(--theme-color), transparent 60%);
}
</style>
</head>
<body>
<main>
<h1>Blog of the Day</h1>
<p>Explore the indie web, one blog at a time.</p>
<p>Explore the (indie) web, one blog at a time.</p>
<browser-window>
<iframe src="https://tantek.com" title="Blog of the Day"></iframe>
<iframe src="https://aaronparecki.com" title="Blog of the Day"></iframe>
</browser-window>
<section id="buttons">
<a class="button-link" href="https://tantek.com">Visit tantek.com</a>
<a class="button-link" href="https://aaronparecki.com">Visit aaronparecki.com</a>
<br>
<a class="button-link" href="/feed.rss">Subscribe to Blog of the Day RSS Feed</a>
<a class="button-link" href="/feed.xml">Subscribe to Blog of the Day RSS Feed</a>
</section>
<section id="about">
<details>
<summary>About Blog of the Day</summary>
<h2>About Blog of the Day</h2>
<p>While most of your experience of the web may be with corporate-owned websites, there are many people bucking this trend with a rebellious act: creating and maintaining a personal website.</p>
<p>Bloggers around the world talk about the consequential and the inconsequential, from one's failed attempt to make a recipe to an idea that challenges the way we think about social networking.</p>
<p>Every day, Blog of the Day highlights a new blog. The blog is rotated at 12am UTC.</p>
<p>Want to add your blog to the list? Submit a pull request on the <a href="https://github.com/capjamesg/blogofthe.day">project GitHub page</a>.</p>
<p>Every day, Blog of the Day highlights a new blog. The blog is rotated at 12am UTC. <em>note: as of 18 May 2024 Joe Crawford was transferred maintenance of this blog. If you have a suggestion or complaint, <a href="mailto:[email protected]">email him</a>. It'll be solid soon enough. Or not. The world is an imperfect place.</em></p>
<p>Want to add your blog to the list? Submit a pull request on the <a href="https://github.com/artlung/blogofthe.day">project GitHub page</a>.</p>
</details>
</section>
<footer>
<p>Made with ❤️, 🍪, and a 💻 by <a href="https://jamesg.blog">jamesg.blog</a>.</p>
<p>made with ❤️, 🍪, and a 💻 by <a href="https://jamesg.blog">james</a> &amp; <a href="https://artlung.com/">joe</a>.</p>
<p><small>own your web</small></p>
</footer>
</main>
</body>
Expand Down
104 changes: 104 additions & 0 deletions dates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"dates": {
"2024-05-20": "aaronparecki.com",
"2024-05-19": "aaronparecki.com",
"2024-05-18": "jamesg.blog",
"2024-05-17": "jamesg.blog",
"2024-05-16": "pcarrier.com",
"2024-05-15": "noisydeadlines.net",
"2024-05-14": "artlung.com/blog",
"2024-05-13": "noisydeadlines.net",
"2024-05-12": "lifeofpablo.com/blog",
"2024-05-11": "reillyspitzfaden.com/blog",
"2024-05-10": "tantek.com",
"2024-05-09": "pcarrier.com",
"2024-05-08": "pcarrier.com",
"2024-05-07": "tantek.com",
"2024-05-06": "reillyspitzfaden.com/blog",
"2024-05-05": "lifeofpablo.com/blog",
"2024-05-04": "david.shanske.com",
"2024-05-03": "david.shanske.com",
"2024-05-02": "tantek.com",
"2024-05-01": "gregorlove.com",
"2024-04-30": "noisydeadlines.net",
"2024-04-29": "jamesg.blog",
"2024-04-28": "tantek.com",
"2024-04-27": "jamesg.blog",
"2024-04-26": "tracydurnell.com",
"2024-04-25": "jamesg.blog",
"2024-04-24": "tracydurnell.com",
"2024-04-23": "noisydeadlines.net",
"2024-04-22": "jamesg.blog",
"2024-04-21": "tracydurnell.com",
"2024-04-20": "tracydurnell.com",
"2024-04-19": "tracydurnell.com",
"2024-04-18": "tantek.com",
"2024-04-17": "noisydeadlines.net",
"2024-04-16": "tantek.com",
"2024-04-15": "jamesg.blog",
"2024-04-14": "jamesg.blog",
"2024-04-13": "noisydeadlines.net",
"2024-04-12": "tantek.com",
"2024-04-11": "noisydeadlines.net",
"2024-04-10": "tracydurnell.com",
"2024-04-09": "noisydeadlines.net",
"2024-04-08": "tantek.com",
"2024-04-07": "noisydeadlines.net",
"2024-04-06": "tracydurnell.com",
"2024-04-05": "tracydurnell.com",
"2024-04-04": "tantek.com",
"2024-04-03": "tracydurnell.com",
"2024-04-02": "jamesg.blog",
"2024-04-01": "tantek.com",
"2024-03-31": "tantek.com",
"2024-03-30": "tracydurnell.com",
"2024-03-29": "noisydeadlines.net",
"2024-03-28": "jamesg.blog",
"2024-03-27": "tantek.com",
"2024-03-26": "noisydeadlines.net",
"2024-03-25": "noisydeadlines.net",
"2024-03-24": "tantek.com",
"2024-03-23": "tracydurnell.com",
"2024-03-22": "tracydurnell.com",
"2024-03-21": "noisydeadlines.net",
"2024-03-20": "jamesg.blog",
"2024-03-19": "jamesg.blog",
"2024-03-18": "noisydeadlines.net",
"2024-03-17": "tantek.com",
"2024-03-16": "tracydurnell.com",
"2024-03-15": "tracydurnell.com",
"2024-03-14": "tantek.com",
"2024-03-13": "jamesg.blog",
"2024-03-12": "jamesg.blog",
"2024-03-11": "noisydeadlines.net",
"2024-03-10": "jamesg.blog",
"2024-03-09": "tantek.com",
"2024-03-08": "tracydurnell.com",
"2024-03-07": "noisydeadlines.net",
"2024-03-06": "tantek.com",
"2024-03-05": "noisydeadlines.net",
"2024-03-04": "tantek.com",
"2024-03-03": "noisydeadlines.net",
"2024-03-02": "tantek.com",
"2024-03-01": "jamesg.blog",
"2024-02-29": "tracydurnell.com",
"2024-02-28": "tracydurnell.com",
"2024-02-27": "tracydurnell.com",
"2024-02-26": "jamesg.blog",
"2024-02-25": "tracydurnell.com",
"2024-02-24": "tracydurnell.com",
"2024-02-23": "tantek.com",
"2024-02-22": "tracydurnell.com",
"2024-02-21": "tantek.com",
"2024-02-20": "noisydeadlines.net",
"2024-02-19": "jamesg.blog",
"2024-02-18": "tantek.com",
"2024-02-17": "noisydeadlines.net",
"2024-02-16": "reillyspitzfaden.com/blog",
"2024-02-15": "benji.dog",
"2024-02-14": "david.shanske.com",
"2024-02-13": "boffosocko.com",
"2024-02-12": "benji.dog",
"2024-02-11": "gregorlove.com"
}
}
Loading

0 comments on commit f207ed7

Please sign in to comment.