Compare commits

...

13 Commits

Author SHA1 Message Date
Helen Chong 630562b72d Fix issue of feed permalink failing to be generated 2024-08-11 23:18:39 +08:00
Helen Chong ae77477679 Modify 11 August 2024 changelog 2024-08-11 23:14:46 +08:00
Helen Chong 4eb9ef3c0a Initiate feed path in sitemeta 2024-08-11 23:13:34 +08:00
Helen Chong 197b2e76c7 Add 11 August 2024 changelog 2024-08-11 22:47:28 +08:00
Helen Chong b443778667 Remove trailing slash 2024-08-11 22:42:54 +08:00
Helen Chong 301cea1d4e Use relative root path for feed path 2024-08-11 22:38:56 +08:00
Helen Chong 3c6c5ed3da Add ISO date time to changelogs 2024-08-11 22:32:37 +08:00
Helen Chong 9b3425b84e Add ISO date time to blog posts 2024-08-11 22:18:40 +08:00
Helen Chong 03bd3957fd Add ISO date time to articles 2024-08-11 22:11:49 +08:00
Helen Chong 2dc103f532 Refactor changelog date formatting 2024-08-11 21:27:15 +08:00
Helen Chong d48a11c9a2 Add support for formatting ISO dates 2024-08-11 21:25:16 +08:00
Helen Chong 18d99cfe6c Use luxon to format dates 2024-08-11 20:21:32 +08:00
Helen Chong ad0573915e Rename filters configuration file 2024-08-11 20:19:57 +08:00
63 changed files with 84 additions and 74 deletions

View File

@ -11,7 +11,7 @@ import pluginTOC from "@uncenter/eleventy-plugin-toc";
import markdownItConfig from "./src/_config/markdown-it.js";
import filesConfig from "./src/_config/files.js";
import collectionsConfig from "./src/_config/collections.js";
import filterConfig from "./src/_config/filter.js";
import filtersConfig from "./src/_config/filters.js";
import shortCodesConfig from "./src/_config/shortcodes.js";
export default function(eleventyConfig) {
@ -33,7 +33,7 @@ export default function(eleventyConfig) {
eleventyConfig.addPlugin(markdownItConfig);
eleventyConfig.addPlugin(filesConfig);
eleventyConfig.addPlugin(collectionsConfig);
eleventyConfig.addPlugin(filterConfig);
eleventyConfig.addPlugin(filtersConfig);
eleventyConfig.addPlugin(shortCodesConfig);
// Eleventy bundle plugin

View File

@ -1,3 +1,5 @@
import { DateTime } from "luxon";
export default function(eleventyConfig) {
// Filter contents by category
eleventyConfig.addFilter("filterByCategory", function(contents, cat) {
@ -10,14 +12,12 @@ export default function(eleventyConfig) {
});
// Format dates
const dateOptions = {
year: 'numeric',
month: 'long',
day: 'numeric',
};
const dateTimeLocale = new Intl.DateTimeFormat("en-GB", dateOptions);
eleventyConfig.addFilter("formatDate", function(date) {
return dateTimeLocale.format(date);
eleventyConfig.addFilter("formatDate", (date) => {
const dateFormat = "d LLLL yyyy";
if (typeof date === "object") {
return DateTime.fromJSDate(date).toFormat(dateFormat);
}
return DateTime.fromISO(date, { setZone: true }).toFormat(dateFormat);
});
// Limit number of items displayed

View File

@ -8,4 +8,6 @@ export const siteAuthor = {
};
export const siteLocale = "en_MY";
export const siteLanguage = "en";
export const siteDescription = siteAuthor.name + "'s personal website.";
export const siteDescription = siteAuthor.name + "'s personal website.";
export const feedPath = "/feed.xml";
export const feedUrl = siteUrl + feedPath;

View File

@ -1 +1 @@
<link rel="alternate" type="application/rss+xml" title="{{ sitemeta.siteName }}" href="{{ sitemeta.siteUrl }}/feed.xml" />
<link rel="alternate" type="application/rss+xml" title="{{ sitemeta.siteName }}" href="{{ sitemeta.feedPath }}">

View File

@ -22,7 +22,7 @@ articleElement: true
</ul>
</nav>
<p>To get notified of the updates on this website, you can subscribe to the <a href="/feed.xml">{{ sitemeta.siteName }} RSS feed</a>, which contains new articles, blog posts and website changelogs.</p>
<p>To get notified of the updates on this website, you can subscribe to the <a href="{{ sitemeta.feedPath }}">{{ sitemeta.siteName }} RSS feed</a>, which contains new articles, blog posts and website changelogs.</p>
{{ content | safe }}

View File

@ -5,7 +5,7 @@
{% set currentUrl %}{{ page.url }}{% endset %}
<ul class="inline-nav footer__links">
<li><a href="/feed.xml">RSS</a></li>
<li><a href="{{ sitemeta.feedPath }}">RSS</a></li>
<li><a
{% if currentUrl === "/sitemap/" %}aria-current="page"{% endif %}
href="/sitemap/

View File

@ -1,6 +1,6 @@
---
articleTitle: How I (Tried to) Implement Accessible Footnotes
date: 2024-08-06
date: 2024-08-06T00:04:00+0800
desc: "How I implement accessible footnotes, at least to the best of my ability. Written for 32-Bit Cafe's Community Code Jam #5."
categories: ["32-bit cafe", "accessibility", "html", "css", "eleventy", "markdown-it"]
toc: true

View File

@ -1,7 +1,7 @@
---
articleTitle: Anti-Harry Potter and Anti-J. K. Rowling Masterlist
date: 2023-03-19
updated: 2024-06-19
updated: 2024-06-19T00:06:00+0800
desc: My masterlist of criticisms of the Harry Potter series and J. K. Rowling.
categories: ["harry potter", "jk rowling"]
toc: true

View File

@ -1,7 +1,7 @@
---
articleTitle: Palestine Masterlist
date: 2024-06-19
updated: 2024-08-11
date: 2024-06-19T22:19:00+0800
updated: 2024-08-11T21:32:00+0800
desc: My masterlist of resources related to Palestine.
categories: ["palestine"]
---

View File

@ -9,7 +9,7 @@ categories: ["site updates", "site anniversary"]
I registered a Neocities account on 28 May 2022, while my own website, Leilukin's Hub, was officially launched on 11 September 2022. I set up this website because I wanted to have a personal web page outside social media platforms to gather various stuff and resources I had created or compiled on online spaces throughout the years. Furthermore, I settled for Neocities because I like the flexibility of customisation by coding my website with HTML, CSS and JavaScript. Initially, I considered and tried [Carrd](https://carrd.co/) to create my web pages, but free accounts on Carrd can only add up to 100 elements on a web page, which is not enough for my purpose.
This site's [changelog](/changelogs/) and [layout archive](/changelogs/layouts) document the evolution of Leilukin's Hub throughout the past year: from the humble beginning of a simple black background with white text and light brown titles, to the responsive, mobile-friendly, full-fledged personal website with its own site button, [RSS feed](/feed.xml), a [blog](https://htmltomd.com/blog/) and multiple [shrines](/shrines/).
This site's [changelog](/changelogs/) and [layout archive](/changelogs/layouts) document the evolution of Leilukin's Hub throughout the past year: from the humble beginning of a simple black background with white text and light brown titles, to the responsive, mobile-friendly, full-fledged personal website with its own site button, [RSS feed](/feed.xml), a [blog](/blog) and multiple [shrines](/shrines).
Coding my own website was also an excellent way to put my HTML and CSS knowledge and skills into good use. I already had basic knowledge of HTML and CSS from what I learned from my teenage years of customising my blog on Blogger.

View File

@ -1,7 +1,7 @@
---
articleTitle: April 2024 Leilukin's Hub Overhaul with Eleventy
desc: I rebuilt my website with the static site generator Eleventy in April 2024.
date: 2024-04-21
date: 2024-04-21T19:53:00+0800
categories: ["site updates", "eleventy"]
toc: true
---

View File

@ -1,7 +1,7 @@
---
articleTitle: Happy Lesbian Visibility Day and 1-Year Anniversary of Cassette Beasts
desc: Celebrating both Lesbian Visibility Day and the 1st year anniversary of Cassette Beasts' release on 26 April 2024.
date: 2024-04-27
date: 2024-04-27T14:06:00+0800
categories: ["lesbian", "cassette beasts"]
---

View File

@ -1,7 +1,7 @@
---
articleTitle: James Somerton Used My Video Game Footage Without Credit or Permission
desc: "James Somerton used one of my Star Wars: Knights of the Old Republic footage in one of his videos without credit or permission."
date: 2024-05-14
date: 2024-05-14T11:02:00+0800
updated: 2024-05-17
categories: ["youtube"]
---

View File

@ -1,7 +1,7 @@
---
articleTitle: The Search for a Guestbook Solution for Leilukin's Hub
desc: I spent a great deal of time in searching for a guestbook for Leilukin's hub.
date: 2024-05-29
date: 2024-05-29T17:11:00+0800
categories: ["site updates"]
---

View File

@ -1,7 +1,7 @@
---
articleTitle: Custom Domain Name and Hosting Change for Leilukin's Hub
desc: Leilukin's Hub now has a custom domain name and a new host.
date: 2024-05-31
date: 2024-05-31T21:33:00+0800
updated: 2024-06-04
categories: ["site updates"]
toc: true

View File

@ -1,7 +1,7 @@
---
articleTitle: Improving Site Performance of Leilukin's Hub
desc: Steps I hae taken to improve my website's performance.
date: 2024-06-12
date: 2024-06-12T19:06:00+0800
categories: ["site updates", "web development"]
---

View File

@ -1,7 +1,7 @@
---
articleTitle: Leilukin's Hub Tumbleblog Launched
desc: Leilukin's Hub now has a tumbleblog built with Chyrp Lite and hosted on InfinityFree.
date: 2024-06-21
date: 2024-06-21T01:53:00+0800
categories: ["site updates"]
---

View File

@ -1,7 +1,7 @@
---
articleTitle: My Cassette Beasts Fanlisting Application has been Approved
desc: The Fanlistings Network has approved my application to run and build a Cassette Beasts fanlisting.
date: 2024-06-24
date: 2024-06-24T13:23:00+0800
categories: ["cassette beasts", "site updates"]
---

View File

@ -1,7 +1,7 @@
---
articleTitle: Cassette Beasts Fanlisting and My Fanlisting Collective Launched
desc: Announcing the launch of my fanlisting collective, Cassette Beasts fanlisting and the release of my BellaBuffs fork.
date: 2024-07-02
date: 2024-07-02T00:37:00+0800
categories: ["cassette beasts", "site updates", "code projects"]
---

View File

@ -1,7 +1,7 @@
---
articleTitle: Leilukin's Hub Has Migrated to Hostinger
desc: Leilukin's Hub has moved hosts again — this time to Hostinger.
date: 2024-07-27
date: 2024-07-27T00:44:00+0800
categories: ["site updates"]
toc: true
---

View File

@ -16,7 +16,7 @@ eleventyNavigation:
<h2>Latest Changelogs</h2>
{% for log in changelogs %}
<h3 class="date-style">{{ log.data.date | formatDate }}</h3>
<h3 class="date-style">{{ log.date | formatDate }}</h3>
{{ log.templateContent | safe }}
{%- endfor %}

View File

@ -1,5 +1,5 @@
---
date: 2024-04-21
date: 2024-04-21T20:57:00+0800
---
* New blog post: [April 2024 Leilukin's Hub Overhaul with Eleventy](/blog/posts/2024-04-21-april-2024-leilukins-hub-overhaul-with-eleventy/).

View File

@ -1,5 +1,5 @@
---
date: 2024-04-27
date: 2024-04-27T15:15:00+0800
---
* New blog post: [Happy Lesbian Visibility Day and 1-Year Anniversary of Cassette Beasts](/blog/posts/2024-04-27-lesbian-visibility-day1-year-anniversary-of-cassette-beasts/).

View File

@ -1,5 +1,5 @@
---
date: 2024-04-29
date: 2024-04-29T18:27:00+0800
---
* Turn the top navigation manu into a hamburger menu when this website is viewed on mobile devices.

View File

@ -1,5 +1,5 @@
---
date: 2024-05-09
date: 2024-05-09T13:45:00+0800
---
* [{% cite "Cassette Beasts" %} shrine](/shrines/cassettebeasts/):

View File

@ -1,5 +1,5 @@
---
date: 2024-05-14
date: 2024-05-14T22:20:00+0800
---
* New blog post: [James Somerton Used My Video Game Footage Without Credit or Permission](/blog/posts/2024-05-14-james-somerton-my-video-game-footage).

View File

@ -1,5 +1,5 @@
---
date: 2024-05-18
date: 2024-05-18T00:51:00+0800
---
* Add footnotes section to [{% cite "A Summers End — Hong Kong 1986" %} shrine Trivia page](/shrines/asummersend/trivia/) and [{% cite "Cassette Beasts" %} shrine Facts page](/shrines/cassettebeasts/facts/).

View File

@ -1,5 +1,5 @@
---
date: 2024-05-19
date: 2024-05-19T22:30:00+0800
---
* Replace the [HTML Comment Box](https://www.htmlcommentbox.com/) widget on the [guestbook page](/guestbook) with a guestbook that is powered by [Firebase Realtime Database](https://firebase.google.com/docs/database/).

View File

@ -1,5 +1,5 @@
---
date: 2024-05-20
date: 2024-05-20T12:31:00+0800
---
* Replace the entire site's default font from Noto Sans to Lexend.

View File

@ -1,5 +1,5 @@
---
date: 2024-05-22
date: 2024-05-22T12:49:00+0800
---
* Add [accessibility statement](/accessibility/).

View File

@ -1,5 +1,5 @@
---
date: 2024-05-25
date: 2024-05-25T01:09:00+0800
---
* Use [Grounded Wren's guestbook code](https://groundedwren.neocities.org/pages/demo_controls/guestbookDemo) for this site's [guestbook](/guestbook).

View File

@ -1,5 +1,5 @@
---
date: 2024-05-26
date: 2024-05-26T13:45:00+0800
---
* Add "Personal Sites I Love" section to the [Links](/links) page.

View File

@ -1,5 +1,5 @@
---
date: 2024-05-26
date: 2024-05-28T01:49:00+0800
---
* [{% cite "A Summers End — Hong Kong 1986" %} shrine](/shrines/asummersend): Add Passion Patch screenshots section to the [Gallery page](/shrines/asummersend/gallery) (**Warning:** The Passion Patch screenshots are not safe for work, though they are hidden by default when you visit the gallery page).

View File

@ -1,5 +1,5 @@
---
date: 2024-05-29
date: 2024-05-29T17:33:00+0800
---
* New blog post: [The Search for a Guestbook Solution for Leilukin's Hub](/blog/posts/2024-05-29-new-guestbook-leilukins-hub).

View File

@ -1,5 +1,5 @@
---
date: 2024-05-31
date: 2024-05-31T19:17:00+0800
---
* Leilukin's Hub now has a custom domain name: leilukin.com.

View File

@ -1,5 +1,5 @@
---
date: 2024-06-02
date: 2024-06-02T09:32:00+0800
---
* Update the [guestbook](/guestbook) to add a warning message and a link to send comments via email if the Discord webhook fails.

View File

@ -1,5 +1,5 @@
---
date: 2024-06-04
date: 2024-06-04T08:47:00+0800
---
* Preload the Lexend regular and Lexend 700 font files to improve site performance, remove flash of unstyled text (FOUT) and prevent Cumulative Layout Shift (CLS).

View File

@ -1,5 +1,5 @@
---
date: 2024-06-06
date: 2024-06-06T21:59:00+0800
---
* Remove unused Font Awesome assets, including font and CSS files, to improve site performance.

View File

@ -1,5 +1,5 @@
---
date: 2024-06-07
date: 2024-06-07T01:44:00+0800
---
* Update Leilukin's Hub's site button. This time, I made my site button myself by using Adobe Photoshop CS5.

View File

@ -1,5 +1,5 @@
---
date: 2024-06-09
date: 2024-06-09T14:17:00+0800
---
* Convert most of the images on this website to AVIF format to reduce file size and save bandwidth.

View File

@ -1,5 +1,5 @@
---
date: 2024-06-11
date: 2024-06-11T13:27:00+0800
---
* Improve "Back to top" button and footer link:

View File

@ -1,5 +1,5 @@
---
date: 2024-06-12
date: 2024-06-12T01:26:00+0800
---
* Remake the navigation hamburger menu for mobile, so JavaScript is no longer needed to open and close the navigation menu, although JavaScript is still used to enable closing the menu with the Escape key. (Special thanks to Kale for the [accessible hamburger menu code snippet](https://kalechips.net/projects/snippets/burger)).

View File

@ -1,5 +1,5 @@
---
date: 2024-06-13
date: 2024-06-13T01:26:00+0800
---
* Add a Virtual Pets section to the home page.

View File

@ -1,5 +1,5 @@
---
date: 2024-06-19
date: 2024-06-19T23:28:00+0800
---
* Add new article: [Palestine Masterlist](/articles/palestine-masterlist).

View File

@ -1,5 +1,5 @@
---
date: 2024-06-21
date: 2024-06-21T02:05:00+0800
---
* Leilukin's Hub now has a tumbleblog at [tumbleblog.leilukin.com](https://tumbleblog.leilukin.com/)! Read the latest blog post to learn more: [Leilukin's Hub Tumbleblog Launched](/blog/posts/2024-06-21-leilukins-hub-tumbleblog-launched).

View File

@ -1,5 +1,5 @@
---
date: 2024-06-23
date: 2024-06-23T23:36:00+0800
---
* Add [Adoptables page](/adoptables).

View File

@ -1,5 +1,5 @@
---
date: 2024-06-24
date: 2024-06-24T13:52:00+0800
---
* New blog post: [My Cassette Beasts Fanlisting Application has been Approved](/blog/posts/2024-06-24-cassette-beasts-fanlisting-approved)

View File

@ -1,5 +1,5 @@
---
date: 2024-06-26
date: 2024-06-26T18:39:00+0800
---
* Added my other websites to my [Projects page](/projects).

View File

@ -1,5 +1,5 @@
---
date: 2024-06-27
date: 2024-06-27T13:09:00+0800
---
* Added a [Spotlight Crowdfunding Campaigns](/articles/palestine-masterlist/#spotlight-crowdfunding-campaigns) section to my [Palestine masterlist](/articles/palestine-masterlist) to highlight fundraising campaigns that I have been asked to help and share by Palestinians on Tumblr, and that have been vetted by other Palestinians on Tumblr.

View File

@ -1,5 +1,5 @@
---
date: 2024-07-02
date: 2024-07-02T22:00:00+0800
---
* The main site header now would display a Disability Pride Month blurb and the disability pride flag during July

View File

@ -1,5 +1,5 @@
---
date: 2024-07-03
date: 2024-07-03T08:50:00+0800
---
* Add [Articles](/links/#articles) and [Resources](/links/#resources) tabs to the [links page](/links).

View File

@ -1,5 +1,5 @@
---
date: 2024-07-06
date: 2024-07-06T18:45:00+0800
---
* Implement accessible tooltips that meet Web Content Accessibility Guidelines (WCAG) 2.2 success criterion for [1.4.13: Content on Hover or Focus (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html), by utilising [Scott O'Hara's ARIA Tooltips](https://github.com/scottaohara/a11y_tooltips) script. (Thank you [Vera](https://www.groundedwren.com/) for your feedback on my previous implementation of the tooltips)

View File

@ -1,5 +1,5 @@
---
date: 2024-07-13
date: 2024-07-13T20:47:00+0800
---
* Add an inline SVG icon to external links

View File

@ -1,5 +1,5 @@
---
date: 2024-07-18
date: 2024-07-18T12:55:00+0800
---
* Add list of web cliques I joined to the home page

View File

@ -1,5 +1,5 @@
---
date: 2024-07-20
date: 2024-07-20T14:35:00+0800
---
* Remake the mobile version of navigation menu by using the HTML [`popover`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover) attirbutes, allowing the navigation menu to be dismissed without JavaScript

View File

@ -1,5 +1,5 @@
---
date: 2024-07-21
date: 2024-07-21T19:24:00+0800
---
* Add a section for the [Kitty Friends Pixel Club](https://divergentrays.com/kitty) to my [Adoptables page](/adoptables), including my kitty friends!

View File

@ -1,5 +1,5 @@
---
date: 2024-07-22
date: 2024-07-22T09:35:00+0800
---
* Add a [Salad Magazine](https://zine.kalechips.net/index) section to my [Adoptables pages](/adoptables).

View File

@ -1,5 +1,5 @@
---
date: 2024-07-27
date: 2024-07-27T00:32:00+0800
---
* Leilukin's Hub and all its subsites have been migrated to [Hostinger](https://www.hostinger.my/)

View File

@ -1,5 +1,5 @@
---
date: 2024-08-02
date: 2024-08-02T15:42:00+0800
---
* Added my first publicly released code snippet on this website: [Responsive Disability Pride Flag CSS Background](/projects/snippets/disability-pride-flag-background).

View File

@ -1,5 +1,5 @@
---
date: 2024-08-06
date: 2024-08-06T21:20:00+0800
---
* New article: ["How I (Tried to) Implement Accessible Footnotes"](/articles/accessible-footnotes), which is also my entry for [32-Bit Cafe](https://32bit.cafe/)'s [Community Code Jam #5: Back to School](https://32bit.cafe/~xandra/events/codejam5/).

View File

@ -0,0 +1,7 @@
---
date: 2024-08-11T22:46:00+0800
---
* Improve the site's [RSS feed](/feed.xml):
* Make RSS feeds [automatically discoverable](https://blog.jim-nielsen.com/2021/automatically-discoverable-rss-feeds/) by feed readers
* Use time and time zone to make feed items' timestamps accurate

View File

@ -1,13 +1,14 @@
---
# sitemeta comes from _data/sitemeta.js
permalink: /feed.xml
eleventyExcludeFromCollections: true
eleventyComputed:
permalink: "{{ sitemeta.feedPath }}"
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ sitemeta.siteName }}</title>
<subtitle>{{ sitemeta.siteDescription }}</subtitle>
<link href="{{ sitemeta.siteUrl + permalink }}" rel="self"/>
<link href="{{ sitemeta.feedUrl }}" rel="self"/>
<link href="{{ sitemeta.siteUrl }}"/>
<updated>{{ collections.feedItems | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ sitemeta.siteUrl }}/</id>

View File

@ -51,13 +51,13 @@ eleventyComputed:
<section class="content__section">
<h2>What is New?</h2>
<div class="text-box">
{% for log in collections["changelogs"] | reverse | itemLimit(1) %}
<h3>Changelog: {{ log.data.date | formatDate }}</h3>
{% for log in collections["changelogs"] | reverse | itemLimit(1) %}
<h3>{{ log.data.title }}</h3>
{{ log.templateContent | safe }}
{%- endfor %}
<p><a href="/changelogs">View all site changelogs</a></p>
</div>
<p>You can subscribe to the <a href="/feed.xml">{{ sitemeta.siteName }} RSS feed</a> to get notified of the updates on this website, including new articles, blog posts and website changelogs.</p>
<p>You can subscribe to the <a href="{{ sitemeta.feedPath }}">{{ sitemeta.siteName }} RSS feed</a> to get notified of the updates on this website, including new articles, blog posts and website changelogs.</p>
{% include "main/statuscafe.njk" %}
</section>