Add site meta for subsites
This commit is contained in:
parent
9900c6e4f7
commit
ef9705cadf
|
@ -11,3 +11,15 @@ export const siteLanguage = "en";
|
|||
export const siteDescription = siteAuthor.name + "'s personal website.";
|
||||
export const feedPath = "/feed.xml";
|
||||
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; }
|
||||
},
|
||||
];
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue