Add JavaScript disabled notice to the homepage

This commit is contained in:
Helen Chong 2024-06-17 13:59:09 +08:00
parent 6ab7d67f0c
commit f63adb64d8
1 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,14 @@ eleventyComputed:
---
<section class="content__section">
<noscript>
<div class="text-box">
<h2>You have disabled JavaScript</h2>
<p>This website uses JavaScript. While you can still access most of the content of this site with JavaScript disabled, some components of this site will not work as intended.</p>
<p>You can learn more about how JavaScript is used on this site on the <a href="/colophon/#javascript">JavaScript section of the colophon page</a>.</p>
</div>
</noscript>
<p>Hello! You can call me {{ sitemeta.siteAuthor.name }}. Welcome to my website! This site is my own personal hub and corner on the internet.</p>
<p>You can browse all my contents published on this site through the <a href="/archive">Archive</a> page, or the <a href="/categories">Content Categories</a> page. You can use the <a href="/sitemap">site map</a> to navigate this website.</p>