leilukin-site/src/statements/colophon.md

4.7 KiB
Raw Blame History

title keyword updated toc eleventyNavigation
Colophon colophon page 2024-06-10 true
order
13

Information about how this website is built.

Technology

  • Built with the static site generator Eleventy
  • Templating languages: Nunjucks and Markdown
  • Code written with Visual Studio Code
  • JavaScript runtime: Bun
  • Source code available on GitHub

Host and Domain

  • Deployed to Netlify from this site's GitHub repository
  • The domain name, {{ sitemeta.siteDomain }}, was purchased from, registered on, and is managed by Porkbun

Plugins

Eleventy Community Plugins

markdown-it plugins

Self-hosted Assets

JavaScript

Due to this website being a static site, JavaScript is used to create dynamic and interactive components of this site. Here is a list of how JavaScript is used on this site:

  • The header of every page uses JavaScript to detect the visitor's current date, so the header will display a top blurb and in some cases also changes the header background on certain dates, including:
  • When this site is viewed on mobile devices, the navigation bar uses JavaScript for the following purposes:
    • Toggle the display of the navigation links when the navigation menu button is clicked;
    • Close the navigation menu if the keyboard user tab out of the manu;
    • Enable using the Escape key to close the navigation manu.
  • Zach Leatherman's details-utils JavaScript package is used to automatically expand sidebar table of contents on wide screens.
  • Every page has a button on the bottom right corner to allow you to quickly scroll to the top of the page. This scroll-to-top button uses JavaScript to show or hide the button based on your scroll position.
    • A "Back to top" link that does not use JavaScript is available on each page's bottom footer, but the JavaScript version allows visitors to quickly scroll to the top of the page without needing to reach the bottom footer.
  • status.cafe widget, which is placed on the home page, uses JavaScript to fetch data of my latest status update.
  • Website Carbon Badge, which is placed on the home page, uses JavaScript to calculate the carbon footprint of this website.
  • Links page has webring widgets that use JavaScript.
  • Guestbook uses JavaScript to send form data to my private Discord channel via Discord webhook, and fetch data from Google Sheets to display messages on the web page (guestbook code by Vera Konigin).

You can still access most of the content of this site with JavaScript disabled, but the above components will not work as intended.