Add site meta for subsites

This commit is contained in:
Helen Chong 2024-09-15 12:57:34 +08:00
parent 9900c6e4f7
commit ef9705cadf
2 changed files with 16 additions and 3 deletions

View File

@ -10,4 +10,16 @@ export const siteLocale = "en_MY";
export const siteLanguage = "en";
export const siteDescription = siteAuthor.name + "'s personal website.";
export const feedPath = "/feed.xml";
export const feedUrl = siteUrl + feedPath;
export const feedUrl = siteUrl + feedPath;
export const subsites = [
{
siteName: "Tumbleblog",
subDomain: `tumbleblog.${siteDomain}`,
siteUrl() { return "https://" + this.subDomain; }
},
{
siteName: `Beehive - ${siteAuthor.name}'s Fanlisitng Collective`,
subDomain: `fan.${siteDomain}`,
siteUrl() { return "https://" + this.subDomain; }
},
];

View File

@ -11,8 +11,9 @@ eleventyComputed:
<h2>Subsites</h2>
<ul class="sitemap">
<li><a href="https://tumbleblog.leilukin.com/">Tumbleblog</a></li>
<li><a href="https://fan.leilukin.com/">Beehive - {{ sitemeta.siteAuthor.name }}'s Fanlisitng Collective</a></li>
{% for site in sitemeta.subsites %}
<li><a href="{{ site.siteUrl() }}">{{ site.siteName }}</a></li>
{% endfor %}
</ul>
<h2>Main Site</h2>