Initiate feed path in sitemeta
This commit is contained in:
parent
197b2e76c7
commit
4eb9ef3c0a
|
@ -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;
|
|
@ -1 +1 @@
|
|||
<link rel="alternate" type="application/rss+xml" title="{{ sitemeta.siteName }}" href="/feed.xml">
|
||||
<link rel="alternate" type="application/rss+xml" title="{{ sitemeta.siteName }}" href="{{ sitemeta.feedPath }}">
|
|
@ -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 }}
|
||||
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -57,7 +57,7 @@ eleventyComputed:
|
|||
{%- 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>
|
||||
|
|
Loading…
Reference in New Issue