A blog hosted on GitHub is available at TheChels.uk. The site uses Jekyll, a static site generator, on Ruby. DNS and SSL by Cloudflare. It also uses GitHub actions, GitHub issues, and Python for extensive automation.
It is called "weak notes" as a play on words of the popular "week notes" blogging style - due to the likelihood, I will have an inconsistent and irregular cadence for posting.
There are several optional settings for you to configure. Use the example _config.yml file in the repo and use the documentation below to configure your site:
Config
There are 2 main includes: one for the header and one for the footer, largely to minimise repetition.
Layouts are almost one-to-one with pages, handling any page specifics. post.html is the layout used for every blog post. There are also default templates and an empty template used for scss and other special pages such as humans.txt
Data files power many aspects of the site and these are updated via issues and GitHub Actions.
Using configuration yml, navigation is provided by three collections for header, footer, and around_the_web (on the about page) and are fairly self-explanatory.
Postings
- Monthly, create a mixtape running the shortcut
- Open the produced and resize to 832px width
- Copy the image to the
image/mixtapes/folder ensuring the name matches the formatyyyy-MM.png - Push a commit to Prod
- In Drafts, Click the film template, run the
Search Filmaction pick film. - Add a rating using the placeholder and run the
Add Filmaction.
- Run a workflow dispatch - entering the ISBN
- Download the cover image
- Resize to a height of 183px
- Save the cover image into the
images/booksfolder ensuring the name matches the formatbook-[isbn].png - Push a commit to Prod
- Capture the selection on a page in safari
- Share to Drafts and click Save
- In Drafts run the
Super Post Makerand choose the Quote post type. - Commit the change in WorkingCopy App and push to Prod
The following post_type variants are supported:
- mixtape
- til
- ways
- video
- release
- rss
- daily
- linked
- quote
- film
- micro
- blog
- test
- gift
- mailbox
Any other value will use a default icon.
Create a blog post in Drafts and run the Super Post Maker action to select the post type and generate the correct front matter for the post. The post will be created in the _posts folder with a filename of yyyy-MM-dd-title.md.
- Choose 'Indie' to post to the IndieWeb feed
- Choose 'Pinned' to pin this post to the top of the post type archive page
Local Development
-
Clone the repository:
git clone https://github.com/thechelsuk/uk.thechels.git
-
Navigate into the project directory:
cd uk.thechels -
Install the required dependencies:
bundle install
-
Build and serve the site locally:
bash run.sh
-
Open your browser and go to
http://localhost:4000to see your site.
Content-Security-Policy
Add the following Content-Security-Policy (CSP) rules to your Cloudflare settings to enhance the security of your site:
default-src 'self'; img-src 'self' https:; script-src 'self' <https://static.cloudflareinsights.com> 'unsafe-inline'; connect-src 'self' <https://cloudflareinsights.com>; style-src 'self' 'unsafe-inline'; font-src 'self'; manifest-src 'self';