Post update history, diff pages and /home/ newest badge

contents (4)

This post covers recent website updates (post update history, diff pages and the /home/ newest badge).

Post update history#

Posts now have an update history

  • Updates are numbered (#1, #2, ...) and can include an update note
  • Posts with update notes list them under update notes: at the bottom of the post, linking to each diff

Diff pages#

Every update has its own diff page at /posts/<cat>/<slug>/diff/<id>/

  • Diffs show changes to the post's title, excerpt, tags, image, markdown content
  • Shows line addition/removal diff and the update note (if)
  • Has a wrap toggle and copy diff button
  • Links to previous/next updates
diff
--- a/content.md
+++ b/content.md
@@ -1,3 +1,3 @@
-something something
+new line

Update badge fixed#

The updated <date> badge is now shown on /home/, /posts/, /posts/archive/, post headers and related posts

Other changes#

  • Added a newest badge on /home/ for the most recently published post Fixed
  • Updated the api releases link in /api/v1/docs/ to filter posts by updates cat and #api (/posts/?category=updates&tag=api)