mdcms/app/pages/home.md
Claude 5e4612c01d
Update post listing tags to use created field throughout
Tag names changed from posts-date-*/posts-datetime-* to posts-created-*.
Renderer updated to filter, sort, group, and display using the created
field from search.json. Page meta display also updated to drop date/datetime
fallbacks. Samplesite posts and pages updated to match.

https://claude.ai/code/session_013A4egzphocyto9bvZ76dxf
2026-05-09 13:41:00 +00:00

67 lines
1.1 KiB
Markdown

---
title: Home
sort: 100
---
# MD-CMS
This is the default startpage for MD-CMS.
## 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.
**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
```
## Chronological (oldest first)
```mdcms
posts-created-chronological
limit: all
paginate: none
```
## By year (reverse chrono)
```mdcms
posts-created-reversechronological-byyear
limit: all
defaultyear: current
selectyear: yes
paginate: none
```
## By year+month (chrono)
```mdcms
posts-created-chronological-byyearmonth
limit: all
defaultyear: 2024
selectyear: yes
```
## Last 30 days
```mdcms
posts-created-reversechronological-lastmonth
limit: all
paginate: none
```
## Paginated (2 per page)
```mdcms
posts-created-reversechronological
limit: 2
paginate: yes
```