Skip to content

Commit daaaa3f

Browse files
committed
it's early morning, the sun comes out
1 parent 4340aeb commit daaaa3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+149
-142
lines changed

.eleventy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function (eleventyConfig) {
1616
// This defines which files will be copied
1717
eleventyConfig.setTemplateFormats(["html", "njk", "txt", "js", "css", "xml", "json"]);
1818

19-
// Custom Filters
19+
// Custom Filter
2020
eleventyConfig.addFilter("prepareImageUrl", function (str) {
2121
if (str.includes("://")) return str;
2222
return "../assets/img/links/websites/" + str;

content/_data/nocache.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = () => "?nocache=" + Date.now();

content/_data/sites.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"title": "Latte Lavanda",
3030
"image": "https://files.catbox.moe/8r80x1.png",
3131
"link": "https://latte-lavanda.neocities.org/",
32-
"linksBackToMe": false,
33-
"neighbor": false,
32+
"linksBackToMe": true,
33+
"neighbor": true,
3434
"friend": true,
3535
"inspiration": false
3636
},
@@ -330,18 +330,18 @@
330330
"link": "https://abyssbloom.neocities.org/",
331331
"title": "Abyss Bloom",
332332
"image": "abyssbloom.png",
333-
"neighbor": false,
334-
"inspiration": false,
335-
"linksBackToMe": false,
333+
"neighbor": true,
334+
"inspiration": true,
335+
"linksBackToMe": true,
336336
"winner": true
337337
},
338338
{
339339
"link": "https://re-nata.neocities.org/",
340340
"title": "Renata's Laboratory",
341341
"image": "re-nata.gif",
342-
"neighbor": false,
342+
"neighbor": true,
343343
"inspiration": false,
344-
"linksBackToMe": false,
344+
"linksBackToMe": true,
345345
"winner": true
346346
},
347347
{
@@ -357,9 +357,9 @@
357357
"link": "https://lockheartlove.netlify.app/",
358358
"title": "Lockheart Love",
359359
"image": "lockheartlove.png",
360-
"neighbor": false,
361-
"inspiration": false,
362-
"linksBackToMe": false,
360+
"neighbor": true,
361+
"inspiration": true,
362+
"linksBackToMe": true,
363363
"winner": true
364364
},
365365
{
@@ -375,9 +375,9 @@
375375
"link": "https://starry-knight.neocities.org/",
376376
"title": "Starry's Grove",
377377
"image": "starry-knight.png",
378-
"neighbor": false,
378+
"neighbor": true,
379379
"inspiration": false,
380-
"linksBackToMe": false,
380+
"linksBackToMe": true,
381381
"winner": true
382382
}
383383
]

content/_includes/blog.njk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ testingOnLocalhost: false
1313
/>
1414
{% endif %}
1515

16+
<!-- CSS/JS + CACHEBUSTING -->
17+
<script src="{{ nesting }}assets/js/main.js{{ nocache }}"></script>
18+
<link rel="stylesheet" href="{{ nesting }}assets/main.css{{ nocache }}" />
19+
1620
<meta charset="utf-8" />
1721
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1822
<link href="{{ nesting }}assets/img/favicon.ico" rel="icon" type="image/x-icon" />
@@ -35,10 +39,6 @@ testingOnLocalhost: false
3539
gtag("config", "G-J64TL8KVTJ");
3640
</script>
3741
{% endif %}
38-
39-
<!-- CSS/JS + CACHEBUSTING -->
40-
<script src="{{ nesting }}assets/js/main.js?nocache={{ page.date | slugify }}"></script>
41-
<link rel="stylesheet" href="{{ nesting }}assets/main.css?nocache={{ page.date | slugify }}" />
4242
</head>
4343
<body class="{{ bodyClass }} blog-page-layout">
4444
<noscript id="no-js-warning">Please enable JavaScript to to be able to use all functions of this website!</noscript>

content/_includes/coding.njk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ testingOnLocalhost: false
1313
/>
1414
{% endif %}
1515

16+
<!-- CSS/JS + CACHEBUSTING -->
17+
<script src="{{ nesting }}assets/js/main.js{{ nocache }}"></script>
18+
<link rel="stylesheet" href="{{ nesting }}assets/main.css{{ nocache }}" />
19+
1620
<meta charset="utf-8" />
1721
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1822
<link href="{{ nesting }}assets/img/favicon.ico" rel="icon" type="image/x-icon" />
@@ -49,10 +53,6 @@ testingOnLocalhost: false
4953
}
5054
</style>
5155
{% endif %}
52-
53-
<!-- CSS/JS + CACHEBUSTING -->
54-
<script src="{{ nesting }}assets/js/main.js?nocache={{ page.date | slugify }}1"></script>
55-
<link rel="stylesheet" href="{{ nesting }}assets/main.css?nocache={{ page.date | slugify }}1" />
5656
</head>
5757
<body class="{{ bodyClass }} coding-page-layout" {% if freezeframe %}onload="new Freezeframe();" {% endif %}>
5858
<noscript id="no-js-warning">Please enable JavaScript to to be able to use all functions of this website!</noscript>

content/_includes/petrapixel.njk

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ testingOnLocalhost: false
1313
/>
1414
{% endif %}
1515

16+
<!-- CSS/JS + CACHEBUSTING TO DO FIX-->
17+
<script src="{{ nesting }}assets/js/main.js{{ nocache }}"></script>
18+
<link rel="stylesheet" href="{{ nesting }}assets/main.css{{ nocache }}" />
19+
1620
<meta charset="utf-8" />
1721
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1822
<link href="{{ nesting }}assets/img/favicon.ico" rel="icon" type="image/x-icon" />
@@ -44,10 +48,6 @@ testingOnLocalhost: false
4448
</style>
4549
{% endif %}
4650

47-
<!-- CSS/JS + CACHEBUSTING TO DO FIX-->
48-
<script src="{{ nesting }}assets/js/main.js?nocache={{ page.date | slugify }}1"></script>
49-
<link rel="stylesheet" href="{{ nesting }}assets/main.css?nocache={{ page.date | slugify }}1" />
50-
5151
<!-- CSS/JS + CACHEBUSTING
5252
<link rel="stylesheet" href="{{ nesting }}assets/main.css" />
5353
<script>
@@ -164,6 +164,7 @@ testingOnLocalhost: false
164164
<form method="post" action="https://poll.pollcode.com/88435277">
165165
<div style="background-color: #eeeeee; padding: 2px; width: 175px; font-family: Arial; font-size: small; color: #000000">
166166
<div style="padding: 2px 0px 4px 2px"><strong>what should i call my webring for sites with indie web resources/tutorials/layouts/etc?</strong></div>
167+
167168
<input type="radio" name="answer" value="1" id="answer884352771" style="float: left" /><label for="answer884352771" style="float: left; width: 150px">dev den</label>
168169
<div style="clear: both; height: 2px"></div>
169170
<input type="radio" name="answer" value="2" id="answer884352772" style="float: left" /><label for="answer884352772" style="float: left; width: 150px">code collective</label>
@@ -351,7 +352,7 @@ testingOnLocalhost: false
351352
<li aria-label="obsessed with:">
352353
<img src="{{ nesting }}assets/img/layout/icon-heart.png" alt="" title="obsessed with:" aria-hidden="true" />
353354
<span
354-
>-
355+
>60s-90s rock music
355356
<!--<span style="font-family:sans-serif;font-size:0.9em">♡</span>--></span
356357
>
357358
</li>

content/about/neighbors.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h2>Friends & Neighbors</h2>-->
3737
<button class="rec-filters__button is-checked" data-filter="">show all</button>
3838
<button class="rec-filters__button" data-filter=".neighbor--friend">friends</button>
3939
<button class="rec-filters__button" data-filter=".neighbor--neighbor">neighbors</button>
40-
<button class="rec-filters__button" data-filter=".neighbor--inspiration">inspiration</button>
40+
<button class="rec-filters__button" data-filter=".neighbor--inspiration">very inspiring to me</button>
4141
<button class="rec-filters__button" data-filter=".neighbor--winner">contest winners</button>
4242
<!-- <button class="rec-filters__button" data-filter=".neighbor--resources">resources</button> -->
4343
</div>

content/coding/eleventy-tutorial.html

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ <h3 id="custom-filters">Custom Filters (Optional)</h3>
296296
</section>
297297

298298
<section>
299-
<h2 id="data">Using Data (Optional)</h2>
299+
<h2 id="data">Using Data</h2>
300300
<p>The variables you use can come from several different data sources, such as:</p>
301301
<ul>
302302
<li>that very file (<code>{% raw %}{% set myText = "Hello World!" %}{% endraw %}</code>)</li>
@@ -312,7 +312,7 @@ <h2 id="data">Using Data (Optional)</h2>
312312
<blockquote class="help">
313313
If you don't know JSON syntax: don't worry. It's pretty much self-explanatory if you know JavaScript. As usual, <code>[]</code> are arrays and <code>{}</code> are objects.
314314
</blockquote>
315-
<p>Example: <code>changelog.json</code></p>
315+
<p>Example: <code>_data/changelog.json</code></p>
316316
<pre><code>[
317317
{ "date": "2024-12-07", "text": "Created page" },
318318
{ "date": "2024-12-08", "text": "Bugfixes" },
@@ -327,6 +327,18 @@ <h2 id="data">Using Data (Optional)</h2>
327327
</code></pre>
328328
<p>(This would output a list of all objects in the <code>changelog.json</code> file.)</p>
329329
<p>There are also other ways to get data. If you're interested read <a target="_blank" href="https://www.11ty.dev/docs/data/#sources-of-data">the documentation</a>.</p>
330+
331+
<hr />
332+
<h3 id="cachebusting">Cachebusting</h3>
333+
334+
<p><b>Tip:</b> For cachebusting, instead of manually updating the <code>?nocache=</code> parameter, you can add the current date and time to your files like so:</p>
335+
<pre><code class="language-html">&lt;script src=&quot;example.js{% raw %}{{ nocache }}{% endraw %}&quot;&gt;&lt;/script&gt;
336+
&lt;link rel=&quot;stylesheet&quot; href=&quot;example.css{% raw %}{{ nocache }}{% endraw %}&quot; /&gt;</code
337+
></pre>
338+
<p><code>{% raw %}{{ nocache }}{% endraw %}</code> will render something like <code>?nocache=123</code>, 123 being the current timestamp.</p>
339+
<p>For this to work you need to create a data file: <code>_data/nocache.js</code> only has one line:</p>
340+
<pre><code>module.exports = () => "?nocache=" + Date.now();</code></pre>
341+
<p>More info on cachebusting <a href="/coding/cachebusting">here</a>.</p>
330342
</section>
331343

332344
<section>
@@ -351,14 +363,6 @@ <h3 id="template">Step 1: The template</h3>
351363
</p>
352364
<p id="cachebusting">Wherever you want the content of the page to be, type <code>{% raw %}{{ content | safe }}{% endraw %}</code></p>
353365

354-
<blockquote class="tip">
355-
<p><b>Tip:</b> For cachebusting, instead of manually updating the parameter, you can add the current date and time to your files like so:</p>
356-
<pre><code class="language-html">&lt;script src=&quot;example.js?nocache={% raw %}{{ page.date | slugify }}{% endraw %}&quot;&gt;&lt;/script&gt;
357-
&lt;link rel=&quot;stylesheet&quot; href=&quot;example.css?nocache={% raw %}{{ page.date | slugify }}{% endraw %}&quot; /&gt;</code
358-
></pre>
359-
<p>More info on cachebusting <a href="/coding/cachebusting">here</a>.</p>
360-
</blockquote>
361-
362366
<h3 id="page">Step 2: The page</h3>
363367
<p>Whether your page file is an <code>.html</code> or a <code>.njk</code> file doesn't matter - You can use templates in the same way.</p>
364368
<p>All we need to do is the so-called <b>"front matter"</b>. It's a section at the top of the file that looks like this:</p>

css/pages/coding-page.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
flex-grow: 0;
170170
min-width: 15px;
171171
text-align: center;
172+
pointer-events: none;
172173

173174
&.fa-code,
174175
&.fa-city,

public/about/about-me.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)