Tommy Parnell df69206e71 kill key
2022-02-26 21:23:30 -05:00
2022-01-25 17:54:44 -05:00
2022-02-26 19:31:17 -05:00
2022-02-26 21:23:30 -05:00
2019-01-16 00:33:15 -05:00
2019-01-18 09:53:55 -05:00
2022-01-25 15:55:28 -05:00
2021-12-23 18:06:49 -05:00
2022-01-25 15:54:08 -05:00
2022-02-26 21:23:06 -05:00
sln
2019-01-20 09:57:52 -05:00

The code for blog.terrible.dev. My blog powered by a bespoke blog engine, at one time I thought I'd try to make an open source product for dotnet core, but then got lazy. Probably one of the fastest blog site's you will ever see. Prior to this my blog was built with hugo, and thus authoring was made backward compatible with hugo's posts (3+ years ago).

Technology

  • dotnet 6
  • Markdown
    • Markdig for parsing markdown
    • This also has some extensions to ensure all relative links end in / and external links have rel="noopener" and target="_blank", also to include a picture tag for webp images
  • YML for configuring a blog's posts front matter aka configuration
  • PWA/Serviceworkers

Authoring

Authoring is done in markdown. Configuration for a post must be at the top of the document and placed before --- (three dashes). Posts include a <!-- more --> tag to indicate where the post should be cut off for the summary.

Convert images to webp (TODO: make this automatic)

find . -iname '.png' -exec cwebp -lossless '{}' -o '{}'.webp ; find . -iname '.jpg' -exec cwebp '{}' -o '{}'.webp ; find . -iname '*.gif' -exec gif2webp -mixed '{}' -o '{}'.webp ;

resize image to max width (TODO: Also make this automatic 🤣)

find . -iname '*' -exec convert '{}' -resize 750 '{}' ;

Description
No description provided
Readme 24 MiB
Languages
C# 74.6%
HTML 15.7%
CSS 5.3%
JavaScript 2.4%
Dockerfile 1.8%
Other 0.2%