Skip to content

fulldecent/blog.phor.net

Repository files navigation

blog.phor.net

How to maintain this site and add posts.

Add a post

Copy from _drafts/YYYY-MM-DD-TITLE.md to _posts and add the publish date and title slug, see URL SLUG heading below for notes.

This adds the required and optional front matter, with notes on how to use them.

URL/slug, filename choice

We need URLs that will be permanent, even with anticipated changes to the article.

Name every post like: _posts/2006-05-24-accepted-into-google-soc.md.

This will publish to: https://blog.phor.net/accepted-into-google-soc.md and the RSS feed will sort it, and permalink it, based on that date.

How to choose good URLs that will be permanent?

  • If a title is like "Best TVs of 2023" then be careful to choose a URL like /best-tvs because the list could be updated later and we want to keep the same URL.

(Maybe?) If you want to bump a page to the top of the RSS feed for a major change (like switching the title from "best TVs of 2023" to "best TVs of 2024") then change the date in the filename (not the slug). And then you would have to rename all image files related to this post (maybe?)

Asides

Article text usually displays in the left two-thirds of the page.

Use the right third for some side notes like this:

{: .margin-note}
Some margin note paragraph text

This syntax is explained at https://kramdown.gettalong.org/quickref.html

Article images

If a raster image is used just for editorial (detail not needed), scale down to 800 px.

  1. Make a featured image with the same basename as the post and put it in /assets/images. Include it like:

    ![Fair random immediate decentralized](/assets/images/2022-02-04-Randomization strategies for NFT drops.svg)
  2. For other images, put in folder like /assets/images/2021-12-03-a-post/xxxyyy.png and link like this:

    ![Fair random immediate decentralized](/assets/images/2022-02-04-Randomization strategies for NFT drops/Fair random immediate decentralized.svg)

Style guide

Word case:

  • Post titles use sentence case. Headings use sentence case. Prose uses sentence case. DO NOT USE TITLE CASE.

Formatting a chat conversation (Full Decent is always the red one):

  • Preserve typos

  • Format color like this

    > <span style="color:blue">Steven Shim:</span> ok the riddle ... it's not possible, because 8x + 6y = 5 does not have a solution where you can use integers, so there is no way to get 3 or 1 gallons from the mix.... otherwise you'd be able to get 5 gallons. is this right?<br />
    > <span style="color:red">Full Decent:</span> xml asap!!!<br />
    > <span style="color:blue">Steven Shim:</span> because the lowest common denominator is 1

Discussion of best practices

Tools

See scripts/ folder for some cool tools. Requerements for the tools are documented in those files.

  • scripts/rename-post.sh YYYY-MM-DD-old-title.md YYYY-MM-DD-new-title.md
  • Use yq to change title.

How to promote a post

After publishing a post, you can promote it by: