From 8a39bc31e9bdb67a024fe2b1a9f37368ee91bcc5 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 17 May 2026 17:24:05 +0000 Subject: [PATCH] Revert "Update home.md with phase 4 callout test cases" This reverts commit e8f3f3947083eb3e19cebf0a188709187f8eb999. --- app/pages/home.md | 78 +++++++++++++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 33 deletions(-) diff --git a/app/pages/home.md b/app/pages/home.md index be716d3..ccf41dc 100644 --- a/app/pages/home.md +++ b/app/pages/home.md @@ -3,53 +3,65 @@ title: Home sort: 100 --- -# Phase 4 — Callout Tags +# MD-CMS -Check each callout below. Each should show a coloured left border, an icon, a bold title in the accent colour, and a rendered body. +This is the default startpage for MD-CMS. ---- +## Testing MD-CMS -```mdcms callout-info -title: Information -This is an **info** callout. Body supports *italic*, `code`, and lists: +If you want to test `MD-CMS` you can grab `samplesite` from the repo and place the content in your website root. This page (`pages/home.md`) won't be replaced. -- Item one -- Item two +**Post listing tests** below contains various custom tags to display posts. There are no posts now, but if you download the `samplesite` it will fetch the posts in + +## Post listing tests + +## Reverse chronological (newest first) + +```mdcms +posts-created-reversechronological +limit: 3 +paginate: no ``` -```mdcms callout-warning -title: Warning -Something needs your attention. This is a **warning** callout. +## Chronological (oldest first) + +```mdcms +posts-created-chronological +limit: all +paginate: none ``` -```mdcms callout-success -title: Success -The operation completed successfully. This is a **success** callout. +## By year (reverse chrono) + +```mdcms +posts-created-reversechronological-byyear +limit: all +defaultyear: current +selectyear: yes +paginate: none ``` -```mdcms callout-error -title: Error -Something went wrong. This is an **error** callout. +## By year+month (chrono) + +```mdcms +posts-created-chronological-byyearmonth +limit: all +defaultyear: 2024 +selectyear: yes ``` ---- +## Last 30 days -## No title - -```mdcms callout-info -No title key here. The title row should not appear at all — just the body. +```mdcms +posts-created-reversechronological-lastmonth +limit: all +paginate: none ``` ---- +## Paginated (2 per page) -## Custom icon override - -```mdcms callout-info -title: Info with warning icon -icon: warning -This info callout uses the warning icon instead of the default info icon. +```mdcms +posts-created-reversechronological +limit: 2 +paginate: yes ``` - ---- - -## Toggle dark mode and check all four callouts still look correct.