Compare commits
No commits in common. "570f235009b7078df2fdd900d53d5e807f02dc2b" and "f3fe88ff586a26c5f2d2afcbca1499af48db67f0" have entirely different histories.
570f235009
...
f3fe88ff58
|
@ -4,7 +4,7 @@ import pluginEleventyNavigation from "@11ty/eleventy-navigation";
|
||||||
import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
|
import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
|
||||||
import pluginEmbedEverything from "eleventy-plugin-embed-everything";
|
import pluginEmbedEverything from "eleventy-plugin-embed-everything";
|
||||||
import pluginMetagen from "eleventy-plugin-metagen";
|
import pluginMetagen from "eleventy-plugin-metagen";
|
||||||
import pluginWordcount from "eleventy-plugin-wordcount-extended";
|
import pluginEmojiReadTime from "@11tyrocks/eleventy-plugin-emoji-readtime";
|
||||||
import pluginTOC from "@uncenter/eleventy-plugin-toc";
|
import pluginTOC from "@uncenter/eleventy-plugin-toc";
|
||||||
|
|
||||||
// Custom Configurations
|
// Custom Configurations
|
||||||
|
@ -21,7 +21,7 @@ export default function(eleventyConfig) {
|
||||||
eleventyConfig.addPlugin(pluginSyntaxHighlight, { preAttributes: { tabindex: 0 } });
|
eleventyConfig.addPlugin(pluginSyntaxHighlight, { preAttributes: { tabindex: 0 } });
|
||||||
eleventyConfig.addPlugin(pluginEmbedEverything, { add: ['soundcloud'] });
|
eleventyConfig.addPlugin(pluginEmbedEverything, { add: ['soundcloud'] });
|
||||||
eleventyConfig.addPlugin(pluginMetagen);
|
eleventyConfig.addPlugin(pluginMetagen);
|
||||||
eleventyConfig.addPlugin(pluginWordcount);
|
eleventyConfig.addPlugin(pluginEmojiReadTime);
|
||||||
eleventyConfig.addPlugin(pluginTOC, {
|
eleventyConfig.addPlugin(pluginTOC, {
|
||||||
tags: ['h2', 'h3', 'h4', 'h5', 'h6'],
|
tags: ['h2', 'h3', 'h4', 'h5', 'h6'],
|
||||||
wrapper: function (toc) {
|
wrapper: function (toc) {
|
||||||
|
|
|
@ -14,11 +14,11 @@
|
||||||
"@11ty/eleventy-navigation": "^0.3.5",
|
"@11ty/eleventy-navigation": "^0.3.5",
|
||||||
"@11ty/eleventy-plugin-rss": "^2.0.2",
|
"@11ty/eleventy-plugin-rss": "^2.0.2",
|
||||||
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
|
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
|
||||||
|
"@11tyrocks/eleventy-plugin-emoji-readtime": "^1.0.1",
|
||||||
"@uncenter/eleventy-plugin-toc": "^1.0.3",
|
"@uncenter/eleventy-plugin-toc": "^1.0.3",
|
||||||
"@zachleat/details-utils": "^2.0.2",
|
"@zachleat/details-utils": "^2.0.2",
|
||||||
"eleventy-plugin-embed-everything": "^1.18.2",
|
"eleventy-plugin-embed-everything": "^1.18.2",
|
||||||
"eleventy-plugin-metagen": "^1.8.3",
|
"eleventy-plugin-metagen": "^1.8.3",
|
||||||
"eleventy-plugin-wordcount-extended": "^0.2.1",
|
|
||||||
"install": "^0.13.0",
|
"install": "^0.13.0",
|
||||||
"markdown-it-anchor": "^9.0.1",
|
"markdown-it-anchor": "^9.0.1",
|
||||||
"markdown-it-attribution": "^0.1.4",
|
"markdown-it-attribution": "^0.1.4",
|
||||||
|
|
|
@ -24,9 +24,4 @@ export default function(eleventyConfig) {
|
||||||
eleventyConfig.addFilter("itemLimit", function(array, itemLimit) {
|
eleventyConfig.addFilter("itemLimit", function(array, itemLimit) {
|
||||||
return array.slice(0, itemLimit);
|
return array.slice(0, itemLimit);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Thousands separator
|
|
||||||
eleventyConfig.addFilter("thousands", function(num) {
|
|
||||||
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
||||||
});
|
|
||||||
}
|
}
|
|
@ -18,20 +18,18 @@
|
||||||
{% if isArticle %}
|
{% if isArticle %}
|
||||||
<div class="article__info">
|
<div class="article__info">
|
||||||
<p class="article__info--desc">{{ desc }}</p>
|
<p class="article__info--desc">{{ desc }}</p>
|
||||||
<p>
|
<p>Posted on {{ date | formatDate }} by {{ sitemeta.siteAuthor.name }}
|
||||||
{{ content | wordcount | thousands }} words.
|
{% if updated %}
|
||||||
Posted on <time datetime="{{ date }}">{{ date | formatDate }}</time> by {{ sitemeta.siteAuthor.name }}
|
• Last updated on {{ updated | formatDate }}</p>
|
||||||
</p>
|
{% endif %}
|
||||||
{% if updated %}
|
{% if categories %}
|
||||||
<p>Last updated on <time datetime="{{ updated }}">{{ updated | formatDate }}</time></p>
|
<p>Categories:
|
||||||
{% endif %}
|
{% for cat in categories %}
|
||||||
{% if categories %}
|
<a href="/categories/{{ cat | slugify }}">{{ cat }}</a>{% if not loop.last %}, {% endif %}
|
||||||
<p>Categories:
|
{% endfor %}
|
||||||
{% for cat in categories %}
|
</p>
|
||||||
<a href="/categories/{{ cat | slugify }}">{{ cat }}</a>{% if not loop.last %}, {% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
<p>{{ content | emojiReadTime }}</p>
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if desc %}
|
{% if desc %}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<time datetime="{{ content.date }}">{{ content.date | formatDate }}</time>
|
<p>{{ content.date | formatDate }}</p>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -33,7 +33,7 @@ isContentDivided: true
|
||||||
{{ group.templateContent | safe }}
|
{{ group.templateContent | safe }}
|
||||||
|
|
||||||
{% if group.data.updated %}
|
{% if group.data.updated %}
|
||||||
<p class="update-info">(This {{ group.data.title }} list was last updated on <time datetime="{{ group.data.updated }}">{{ group.data.updated | formatDate }}</time>)</p>
|
<p class="update-info">(This {{ group.data.title }} list was last updated on {{ group.data.updated | formatDate }})</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="#linktabs" class="tab__btn tab__back">Back to tabs</a>
|
<a href="#linktabs" class="tab__btn tab__back">Back to tabs</a>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -4,4 +4,4 @@ layout: main/content
|
||||||
|
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
|
|
||||||
<p class="update-info">(This {{ keyword }} was last updated on <time datetime="{{ updated }}">{{ updated | formatDate }}</time>)</p>
|
<p class="update-info">(This {{ keyword }} was last updated on {{ updated | formatDate }})</p>
|
|
@ -14,13 +14,13 @@ eleventyNavigation:
|
||||||
<li class="blog__postlist--item">
|
<li class="blog__postlist--item">
|
||||||
<h2 class="blog__postlist--title">
|
<h2 class="blog__postlist--title">
|
||||||
<a href="{{ post.url }}">
|
<a href="{{ post.url }}">
|
||||||
{% if post.data.title %}{{ post.data.articleTitle }}
|
{% if post.data.title %}{{ post.data.articleTitle }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<code>{{ post.url }}</code>
|
<code>{{ post.url }}</code>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<time datetime="{{ post.date }}">{{ post.date | formatDate }}</time>
|
<p>{{ post.date | formatDate }}</p>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -16,7 +16,7 @@ eleventyNavigation:
|
||||||
|
|
||||||
<h2>Latest Changelogs</h2>
|
<h2>Latest Changelogs</h2>
|
||||||
{% for log in changelogs %}
|
{% for log in changelogs %}
|
||||||
<h3 class="date-style"><time datetime="{{ log.date }}">{{ log.date | formatDate }}</time></h3>
|
<h3 class="date-style">{{ log.date | formatDate }}</h3>
|
||||||
{{ log.templateContent | safe }}
|
{{ log.templateContent | safe }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
date: 2024-09-06T00:11:29+0800
|
|
||||||
---
|
|
||||||
|
|
||||||
* Replace the estimated reading time of articles and blog posts with word count, by using the [eleventy-plugin-wordcount-extended](https://www.npmjs.com/package/eleventy-plugin-wordcount-extended) plugin.
|
|
|
@ -23,7 +23,7 @@ eleventyNavigation:
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
<section class="content__section">
|
<section class="content__section">
|
||||||
<p>(This page was last updated on <time datetime="{{ updated }}">{{ updated | formatDate }}</time>)</p>
|
<p>(This page was last updated on {{ updated | formatDate }})</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% include "main/virtualpets.njk" %}
|
{% include "main/virtualpets.njk" %}
|
||||||
|
|
|
@ -12,7 +12,7 @@ Articles I have written.
|
||||||
{%- for article in collections["my articles"] -%}
|
{%- for article in collections["my articles"] -%}
|
||||||
<li>
|
<li>
|
||||||
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
||||||
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
|
<p>{{ article.date | formatDate }}</p>
|
||||||
</li>
|
</li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -7,7 +7,7 @@ eleventyComputed:
|
||||||
desc: What {{ sitemeta.siteAuthor.name }} is doing now.
|
desc: What {{ sitemeta.siteAuthor.name }} is doing now.
|
||||||
---
|
---
|
||||||
|
|
||||||
*This page was last updated on <time datetime="{{ updated }}">{{ updated | formatDate }}</time>.*
|
*This page was last updated on {{ updated | formatDate }}.*
|
||||||
|
|
||||||
This is my [/now page](https://nownownow.com/about). You can find more pages like this at [nownownow.com](https://nownownow.com/).
|
This is my [/now page](https://nownownow.com/about). You can find more pages like this at [nownownow.com](https://nownownow.com/).
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ eleventyNavigation:
|
||||||
{%- for article in collections["cassette beasts articles"] -%}
|
{%- for article in collections["cassette beasts articles"] -%}
|
||||||
<li>
|
<li>
|
||||||
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
||||||
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
|
<p>{{ article.date | formatDate }}</p>
|
||||||
</li>
|
</li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -17,7 +17,7 @@ eleventyNavigation:
|
||||||
{%- for article in collections["kotor both articles"] -%}
|
{%- for article in collections["kotor both articles"] -%}
|
||||||
<li>
|
<li>
|
||||||
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
||||||
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
|
<p>{{ article.date | formatDate }}</p>
|
||||||
</li>
|
</li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -27,7 +27,7 @@ eleventyNavigation:
|
||||||
{%- for article in collections["kotor 1 articles"] -%}
|
{%- for article in collections["kotor 1 articles"] -%}
|
||||||
<li>
|
<li>
|
||||||
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
||||||
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
|
<p>{{ article.date | formatDate }}</p>
|
||||||
</li>
|
</li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -37,7 +37,7 @@ eleventyNavigation:
|
||||||
{%- for article in collections["kotor 2 articles"] -%}
|
{%- for article in collections["kotor 2 articles"] -%}
|
||||||
<li>
|
<li>
|
||||||
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
||||||
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
|
<p>{{ article.date | formatDate }}</p>
|
||||||
</li>
|
</li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -17,7 +17,7 @@ eleventyNavigation:
|
||||||
{%- for article in collections["kotor guides"] -%}
|
{%- for article in collections["kotor guides"] -%}
|
||||||
<li>
|
<li>
|
||||||
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
<p><a href="{{ article.url }}">{{ article.data.articleTitle }}</a></p>
|
||||||
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
|
<p>{{ article.date | formatDate }}</p>
|
||||||
</li>
|
</li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Colophon
|
title: Colophon
|
||||||
keyword: colophon page
|
keyword: colophon page
|
||||||
updated: 2024-09-05T23:53:14+0800
|
updated: 2024-08-20T09:55:39+0800
|
||||||
toc: true
|
toc: true
|
||||||
eleventyNavigation:
|
eleventyNavigation:
|
||||||
order: 14
|
order: 14
|
||||||
|
@ -31,9 +31,9 @@ Previously, this website was hosted on [Neocities](https://neocities.org/) until
|
||||||
* [@zachleat/details-utils](https://www.npmjs.com/package/@zachleat/details-utils)
|
* [@zachleat/details-utils](https://www.npmjs.com/package/@zachleat/details-utils)
|
||||||
|
|
||||||
### Eleventy Community Plugins
|
### Eleventy Community Plugins
|
||||||
* [eleventy-plugin-metagen](https://www.npmjs.com/package/eleventy-plugin-metagen)
|
* [@11tyrocks/eleventy-plugin-emoji-readtime](https://www.npmjs.com/package/@11tyrocks/eleventy-plugin-emoji-readtime)
|
||||||
* [eleventy-plugin-wordcount-extended](https://www.npmjs.com/package/eleventy-plugin-wordcount-extended)
|
|
||||||
* [eleventy-plugin-embed-everything](https://www.npmjs.com/package/eleventy-plugin-embed-everything)
|
* [eleventy-plugin-embed-everything](https://www.npmjs.com/package/eleventy-plugin-embed-everything)
|
||||||
|
* [eleventy-plugin-metagen](https://www.npmjs.com/package/eleventy-plugin-metagen)
|
||||||
* [@uncenter/eleventy-plugin-toc](https://www.npmjs.com/package/@uncenter/eleventy-plugin-toc)
|
* [@uncenter/eleventy-plugin-toc](https://www.npmjs.com/package/@uncenter/eleventy-plugin-toc)
|
||||||
|
|
||||||
### markdown-it plugins
|
### markdown-it plugins
|
||||||
|
|
Loading…
Reference in New Issue