mirror of
https://github.com/kbenestad/mdcms.git
synced 2026-06-18 15:24:32 +00:00
- Extend renderer.code to match `mdcms <type>` fence syntax (e.g. ```mdcms callout-info) - Extend parseMdcmsTag to capture body lines after the key-value block - Add renderCalloutTag: icon + title row, markdown body, colour CSS vars - Add hexToRgba helper for low-opacity background colour - Make themeConfig module-level so callout renderer can read callout defaults - Add callout CSS: left border, title row flex layout, icon fill - Add reusable message: key support with category-aware language resolution - Add aitranslation callout message to config.yml for test - Update home.md with full Phase 4 test cases https://claude.ai/code/session_01UP8Wo2CKPNhvvTkzX48CWF
55 lines
2.5 KiB
YAML
55 lines
2.5 KiB
YAML
# Minimum supported version: mdcms v0.3.2 | DO NOT REMOVE THIS COMMENT
|
|
# MD-CMS v0.3.2 — Site configuration
|
|
#
|
|
# Only `sitename` and `navigation` are required. Uncomment and edit the rest
|
|
# as needed. See https://kbenestad.codeberg.page/md-cms for the full reference.
|
|
#
|
|
# LICENCE
|
|
# Copyright 2026 Kristian Benestad | kbenestad.codeberg.page
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "Licence");
|
|
# you may not use this file except in compliance with the Licence.
|
|
# You may obtain a copy of the Licence at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the Licence is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# ──────────────────────────────────
|
|
# Site identity
|
|
# ──────────────────────────────────
|
|
sitename: MD-CMS New Site
|
|
navigation: topbar # sidebar | topbar
|
|
theme: theme.yml # presentational config — edit theme.yml to customise colours, fonts, and layout
|
|
|
|
# homepage: pages/home.md # override the default landing page
|
|
|
|
# sitedescription: A short description for meta tags
|
|
# logo: logo.svg # filename in assets/images/
|
|
# favicon: favicon.png
|
|
# footer: "© 2026 Your Name"
|
|
|
|
# ──────────────────────────────────
|
|
# Layout (optional)
|
|
# ──────────────────────────────────
|
|
# nav-position: left # left | right (sidebar mode)
|
|
|
|
# Typography and colours are configured in theme.yml, not here.
|
|
|
|
# ──────────────────────────────────
|
|
# Features (optional)
|
|
# ──────────────────────────────────
|
|
# search: true
|
|
# default-theme: system # light | dark | system
|
|
|
|
# ──────────────────────────────────
|
|
# Reusable callout messages (optional)
|
|
# ──────────────────────────────────
|
|
callouts:
|
|
aitranslation:
|
|
type: warning
|
|
en:
|
|
title: "PLEASE NOTE:"
|
|
text: This page has been translated with artificial intelligence. It has not been reviewed by staff yet.
|