mirror of
https://github.com/kbenestad/mdcms.git
synced 2026-06-18 15:24:32 +00:00
Update home.md with phase 4 callout test cases
https://claude.ai/code/session_01ULCpT86FWFsXCp2gXhKKbW
This commit is contained in:
parent
8ae283fe41
commit
e8f3f39470
1 changed files with 33 additions and 45 deletions
|
|
@ -3,65 +3,53 @@ title: Home
|
||||||
sort: 100
|
sort: 100
|
||||||
---
|
---
|
||||||
|
|
||||||
# MD-CMS
|
# Phase 4 — Callout Tags
|
||||||
|
|
||||||
This is the default startpage for 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.
|
||||||
|
|
||||||
## Testing MD-CMS
|
---
|
||||||
|
|
||||||
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.
|
```mdcms callout-info
|
||||||
|
title: Information
|
||||||
|
This is an **info** callout. Body supports *italic*, `code`, and lists:
|
||||||
|
|
||||||
**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
|
- Item one
|
||||||
|
- Item two
|
||||||
## Post listing tests
|
|
||||||
|
|
||||||
## Reverse chronological (newest first)
|
|
||||||
|
|
||||||
```mdcms
|
|
||||||
posts-created-reversechronological
|
|
||||||
limit: 3
|
|
||||||
paginate: no
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Chronological (oldest first)
|
```mdcms callout-warning
|
||||||
|
title: Warning
|
||||||
```mdcms
|
Something needs your attention. This is a **warning** callout.
|
||||||
posts-created-chronological
|
|
||||||
limit: all
|
|
||||||
paginate: none
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## By year (reverse chrono)
|
```mdcms callout-success
|
||||||
|
title: Success
|
||||||
```mdcms
|
The operation completed successfully. This is a **success** callout.
|
||||||
posts-created-reversechronological-byyear
|
|
||||||
limit: all
|
|
||||||
defaultyear: current
|
|
||||||
selectyear: yes
|
|
||||||
paginate: none
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## By year+month (chrono)
|
```mdcms callout-error
|
||||||
|
title: Error
|
||||||
```mdcms
|
Something went wrong. This is an **error** callout.
|
||||||
posts-created-chronological-byyearmonth
|
|
||||||
limit: all
|
|
||||||
defaultyear: 2024
|
|
||||||
selectyear: yes
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Last 30 days
|
---
|
||||||
|
|
||||||
```mdcms
|
## No title
|
||||||
posts-created-reversechronological-lastmonth
|
|
||||||
limit: all
|
```mdcms callout-info
|
||||||
paginate: none
|
No title key here. The title row should not appear at all — just the body.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Paginated (2 per page)
|
---
|
||||||
|
|
||||||
```mdcms
|
## Custom icon override
|
||||||
posts-created-reversechronological
|
|
||||||
limit: 2
|
```mdcms callout-info
|
||||||
paginate: yes
|
title: Info with warning icon
|
||||||
|
icon: warning
|
||||||
|
This info callout uses the warning icon instead of the default info icon.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Toggle dark mode and check all four callouts still look correct.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue