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