Skip to content

cadebrown/old.cade.site

Repository files navigation

This is the source code for my personal website (cade.site). It's built with Jekyll and deployed with GitHub pages, designed by me to be minimalist, readable, and sleek (and, kind of old-school ugly/simple HTML).

I'm so tired of all the "sleek bootstrap" themes that are 30MB of JS, take 10 seconds to fully load, and navigating by jolting around the page. This is meant to be a simple, extensible theme that you can use if you care about people actually reading what you're working on.

Setup

If you want your own copy, fork the GitHub repo. (also, "star" it if you like it, please!). Then, follow these steps:

You'll need to install Jekyll. Follow the instructions for your platform.

Then, the first time you clone the repository, install the requirements:

$ bundle install
... a bunch of versions ...
Bundle complete! 7 Gemfile dependencies, 32 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

Now, every time you want to preview the site on your local machine, run:

$ bundle exec jekyll serve
... setup messages ...
Server address: http://127.0.0.1:4000
Server running... press ctrl-c to stop.

Navigate to localhost:4000 in your web browser to see the site live.

  • give --drafts to also include draft posts
  • give --host 0.0.0.0 to serve to your local network (good for testing on mobile phone)

Integrations

This blog has a lot of builtin integrations with common tools. here's a quick list:

Most configuration options for software are available in:

  • _includes/head.html: this is where you could customize versions/loading order of script tags and whatnot

Code Structure

All the modular components are in _includes, for example:

  • _includes/post-desc.html: post description card generator (i.e. thumbnail and exerpt)

All the custom themes and styling are in css/main.css

  • to change the font from monospace to something less 1337, change the :root rules at the top of the file
  • to add a theme, follow the comments for an existing theme, change the name, and also edit _layouts/default.html (comments will explain everything)

Tips

Here are some tips for better performance/integration with your site:

  • use .webp files for images (use cwebp if possible)
  • to check your images, use imagemagick
    • for example, for f in files/*; do identify -format '%f %wx%y\n' $f; done and look for any abnormally large images that could be made smaller
  • to automatically generate low resolution thumbnails, run python3 scripts/make-img-lowres.py
    • use {% include image-srcset.html src=name class="gallery-img" alt=name %} for responsible image sizing

About

my personal website (available at: cade.site)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages