Move home page to index page

This commit is contained in:
Helen Chong 2024-04-16 00:08:43 +08:00
parent 3361778c66
commit c1e560b94a
5 changed files with 69 additions and 85 deletions

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{# Meta data #} {# Meta data #}
<meta property="og:title" content="{{ title }}"> <meta property="og:title" content="{% if title %}{{ title }}{% else %}{{ sitemeta.siteName }}{% endif %}">
{% include "metagen.njk" %} {% include "metagen.njk" %}
{# CSS #} {# CSS #}
@ -24,7 +24,7 @@
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png"> <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
<link rel="manifest" href="/assets/favicon/site.webmanifest"> <link rel="manifest" href="/assets/favicon/site.webmanifest">
<title>{{ title }} | {{ sitemeta.siteName }}</title> <title>{% if title %} {{ title }} | {% endif %} {{ sitemeta.siteName }}</title>
</head> </head>
<body> <body>
{% include "main/hero.njk" %} {% include "main/hero.njk" %}

View File

@ -1,7 +1,7 @@
<nav class="navbar"> <nav class="navbar">
<ul class="nav__menu"> <ul class="nav__menu">
{% for page in collections.pages %} {% for page in collections.pages %}
<li><a href="{{ page.url }}">{{ page.data.title }}</a></li> <li><a href="{{ page.url }}">{{ page.data.title or page.data.metadata.title }}</a></li>
{%- endfor %} {%- endfor %}
<li><a href="https://leilukin.123guestbook.com/">Guestbook</a></li> <li><a href="https://leilukin.123guestbook.com/">Guestbook</a></li>
</ul> </ul>

View File

@ -1,17 +1,70 @@
--- ---
layout: start/base layout: main/content
desc: Welcome to Leilukin's personal website. tags: pages
eleventyComputed: pageTitle: Welcome!
h1: Welcome to {{ sitemeta.siteName | safe }}! intro: Home page of Leilukin's Hub.
metadata:
title: Home
desc: Home page of Leilukin's Hub.
date: 2023-01-01
contentIsDivided: true
--- ---
<section class="index__btn-wrapper"> <section class="content__section">
<a href="/home" class="index__link">Home Page</a> <p>Hello! You can call me Leilukin. Welcome to my website! This site is my own personal hub and corner on the internet.</p>
<a href="/sitemap" class="index__link">Site Map</a> <p>Feel free to drop a message and say hi on <a href="https://leilukin.123guestbook.com/" target="_blank">my guestbook</a>!</p>
<p>You may use the <a href="/sitemap">site map</a> to quickly navigate this website.</p>
<p>Enjoy your stay!</p>
</section> </section>
<footer> <section class="content__section">
<a href="/feed.xml" target="blank" title="{{ sitemeta.siteName }} RSS Feed"> <h2>Link to My Website</h2>
<img src="/assets/buttons/rss-button.gif" alt="RSS feed button">
</a> <p>You can link to my website with this button:</p>
</footer> {% include "main/site-btn.njk" %}
<p>Credit to <a href="https://github.com/hekate2" target="_blank">hekate2</a> for their <a href="https://hekate2.github.io/buttonmaker/" target="_blank">88x31 Web Button Maker</a>!</p>
</section>
<section class="content__section">
<h2>Updates</h2>
<div class="text-box">
<p class="date-style">5 April 2024:</p>
<ul>
<li>Add table of contents to my <a href="/mycreations/kotor1mods/"><cite>Star Wars: Knights of the Old Republic</cite></a> and <a href="/mycreations/kotor2mods/"><cite>Star Wars: Knights of the Old Republic II: The Sith Lords</cite> mods</a>.</li>
</ul>
<p><a href="/changelog">View all site changelog</a></p>
</div>
<p>You can subscribe to the <a href="/feed.xml" target="blank">Leilukin's Hub RSS feed</a> or follow <a href="https://neocities.org/site/leilukin" target="_blank">my Neocities profile</a> to get notified of the updates on this website.</p>
<div class="web-btn-wrapper">
<a href="/feed.xml" target="blank" title="Leilukin's Hub RSS Feed">
<img src="/assets/buttons/rss-button.gif" alt="RSS feed button">
</a>
</div>
</section>
<section class="content__section">
<h2>Always Proud</h2>
<div class="web-btn-wrapper">
<img src="/assets/buttons/progress.png" alt="A website button of the 2018 Progress Flag" loading="lazy" title="2018 Progress Flag by Daniel Quasar (2018)">
<img src="/assets/buttons/9_stripe.png" alt="A website button of the 9 stripe rainbow flag" loading="lazy" title="Nine-Stripe Rainbow Flag by Gilbert Baker (2017)">
<img src="/assets/buttons/lesbian.png" alt="A website button of the lesbian pride flag" loading="lazy" title="I am a lesbian">
<img src="/assets/buttons/nonbinary.png" alt="A website button of the non-binary pride flag" loading="lazy" title="I am non-binary">
<img src="/assets/buttons/demigirl.png" alt="A website button of the demigirl pride flag" loading="lazy" title="I am a demiwoman">
<img src="/assets/buttons/agender.png" alt="A website button of the agender pride flag" loading="lazy" title="I am agender">
<img src="/assets/buttons/bigender.png" alt="A website button of the bigender pride flag" loading="lazy" title="I am bigender">
</div>
<p>Credit to <a href="https://rainy.gay/pride/pridebuttons" target="_blank">Dime</a> for these pride buttons!</p>
</section>
<section class="content__section">
<h2>Webrings</h2>
<div class="web-btn-wrapper">
<div style="border: none; display: inline-flex"><a href="https://isaacfish.neocities.org/webring/25.html" target="_blank"><img src="/assets/webrings/queercoded-left.png" alt="left arrow"></a>&nbsp;<a href="https://isaacfish.neocities.org/webring/" target="_blank"><img src="/assets/webrings/queercoded.png" alt="queer coded webring" title="The Queer Coded Webring"></a>&nbsp;<a href="https://isaacfish.neocities.org/webring/27.html" target="_blank"><img src="/assets/webrings/queercoded-right.png" alt="right arrow"></a></div>
</div>
</section>
<section class="content__section">
<h2>Support Me</h2>
{% include "main/support-me.njk" %}
</section>

View File

@ -7,5 +7,5 @@ h1: Page Not Found
<p>Oops! Either the page you are looking for does not exist, or it has been moved to a diffrent part of this site.</p> <p>Oops! Either the page you are looking for does not exist, or it has been moved to a diffrent part of this site.</p>
<section class="index__btn-wrapper"> <section class="index__btn-wrapper">
<a href="/home" class="index__link">🏠 Back to Home</a> <a href="/" class="index__link">🏠 Back to Home</a>
</section> </section>

View File

@ -1,69 +0,0 @@
---
layout: main/content
title: Home
pageTitle: Welcome!
intro: Home page of Leilukin's Hub.
metadata:
desc: Home page of Leilukin's Hub.
date: 2023-01-01
contentIsDivided: true
---
<section class="content__section">
<p>Hello! You can call me Leilukin. Welcome to my website! This site is my own personal hub and corner on the internet.</p>
<p>Feel free to drop a message and say hi on <a href="https://leilukin.123guestbook.com/" target="_blank">my guestbook</a>!</p>
<p>You may use the <a href="/sitemap">site map</a> to quickly navigate this website.</p>
<p>Enjoy your stay!</p>
</section>
<section class="content__section">
<h2>Link to My Website</h2>
<p>You can link to my website with this button:</p>
{% include "main/site-btn.njk" %}
<p>Credit to <a href="https://github.com/hekate2" target="_blank">hekate2</a> for their <a href="https://hekate2.github.io/buttonmaker/" target="_blank">88x31 Web Button Maker</a>!</p>
</section>
<section class="content__section">
<h2>Updates</h2>
<div class="text-box">
<p class="date-style">5 April 2024:</p>
<ul>
<li>Add table of contents to my <a href="/mycreations/kotor1mods/"><cite>Star Wars: Knights of the Old Republic</cite></a> and <a href="/mycreations/kotor2mods/"><cite>Star Wars: Knights of the Old Republic II: The Sith Lords</cite> mods</a>.</li>
</ul>
<p><a href="/changelog">View all site changelog</a></p>
</div>
<p>You can subscribe to the <a href="/feed.xml" target="blank">Leilukin's Hub RSS feed</a> or follow <a href="https://neocities.org/site/leilukin" target="_blank">my Neocities profile</a> to get notified of the updates on this website.</p>
<div class="web-btn-wrapper">
<a href="/feed.xml" target="blank" title="Leilukin's Hub RSS Feed">
<img src="/assets/buttons/rss-button.gif" alt="RSS feed button">
</a>
</div>
</section>
<section class="content__section">
<h2>Always Proud</h2>
<div class="web-btn-wrapper">
<img src="/assets/buttons/progress.png" alt="A website button of the 2018 Progress Flag" loading="lazy" title="2018 Progress Flag by Daniel Quasar (2018)">
<img src="/assets/buttons/9_stripe.png" alt="A website button of the 9 stripe rainbow flag" loading="lazy" title="Nine-Stripe Rainbow Flag by Gilbert Baker (2017)">
<img src="/assets/buttons/lesbian.png" alt="A website button of the lesbian pride flag" loading="lazy" title="I am a lesbian">
<img src="/assets/buttons/nonbinary.png" alt="A website button of the non-binary pride flag" loading="lazy" title="I am non-binary">
<img src="/assets/buttons/demigirl.png" alt="A website button of the demigirl pride flag" loading="lazy" title="I am a demiwoman">
<img src="/assets/buttons/agender.png" alt="A website button of the agender pride flag" loading="lazy" title="I am agender">
<img src="/assets/buttons/bigender.png" alt="A website button of the bigender pride flag" loading="lazy" title="I am bigender">
</div>
<p>Credit to <a href="https://rainy.gay/pride/pridebuttons" target="_blank">Dime</a> for these pride buttons!</p>
</section>
<section class="content__section">
<h2>Webrings</h2>
<div class="web-btn-wrapper">
<div style="border: none; display: inline-flex"><a href="https://isaacfish.neocities.org/webring/25.html" target="_blank"><img src="/assets/webrings/queercoded-left.png" alt="left arrow"></a>&nbsp;<a href="https://isaacfish.neocities.org/webring/" target="_blank"><img src="/assets/webrings/queercoded.png" alt="queer coded webring" title="The Queer Coded Webring"></a>&nbsp;<a href="https://isaacfish.neocities.org/webring/27.html" target="_blank"><img src="/assets/webrings/queercoded-right.png" alt="right arrow"></a></div>
</div>
</section>
<section class="content__section">
<h2>Support Me</h2>
{% include "main/support-me.njk" %}
</section>