Skip to content

TrebledJ/trebledj.github.io

Repository files navigation

trebledj.me

Build Check Links Lint

My personal website. Visit it here: trebledj.me.

Copyright, Plagiarism, and Other Legal Palaver

All textual content and opinions expressed are my own, unless otherwise cited. Images come from a variety of sources; some are self-made, some (especially memes) are copied or generated using a pre-existing template.

Code is sewn together from various sources. Feel free to refer to the logic, templating, and design for your inspiration.

Aside from that, please don't plagiarise any of my blog content. If you do reference the content, please link to the relevant post.

This is not a legal notice; just a call to be human.

Setup

To build:

# Quick-n'-dirty site generation with live server. Mainly for previewing markdown content.
# Target reload time < 10s.
npm run fast

# Fuller-featured site generation which includes more features than `fast`, but less than `prod`.
# Target reload time < 30s.
npm run dev

# For deployment. No live server.
npm run prod

Credits / Appreciation

This site was inspired and built from many libraries. Mentioning all of them would be a nigh impossible task, as even listing node modules is a nightmare. Regardless, here are some key projects that played a significant role in this site.

  • 11ty – Fast and modular SSG. Also: helpful community.
  • Lychee – Fast link checker.
  • MDN – Excellent documentation and guides as always.
  • Devlopr – Jekyll
    • Base project that got me started. Even though I've moved on from Jekyll and a lot of the original code, it was still a rewarding (but annoying) experience fixing all the small persistent issues and bugs. What doesn't kill makes me stronger.
    • I still like some things from the original project:
      • Bootstrap/jQuery: Good for starters and prototyping.
      • SCSS: Enables rapid CSS development. Less headaches.
      • Scroll progress.
      • Navbar.
  • Cloudflare Pages – Hosting.
  • imgflip – Quintessential Meme Generator.
  • Cloudflare Analytics.

3rd Party Libs

  • jQuery.
  • Bootstrap.
    • Examples, documentation, guides.
    • Core functionality, without which the site would be much weaker and take a lot longer to develop.
    • Alerts. Tooltips. Dropdowns. Modals. Buttons. Carousels.
  • MathJax – for Fuzzy Wuzzy Math (sorry mathjax)
  • KaTeX – for performant math.
  • sharer.js – Abstracts away social links. I just need to worry about the icons and UI.
  • lunr.js – Site-wide Search Engine.
  • Infinite Jekyll – Fit infinite lists on a page.
  • CSP Hashes – Extract CSP hashes from HTML. Reduces attack vector, because we would need to use unsafe-inline otherwise...

Inspirations

Indirect credits that deserve mentioning.

  • Minimal Mistakes
    • Things I like
      • Minimalistic design
      • Clean, organised codebase (easy to hack)
      • Alerts (coloured boxes), but I eventually changed to Bootstrap alerts.
      • Sticky profile sidebar on left
  • Chirpy
    • Things I like
      • Sticky TOC sidebar on right
      • Share buttons