Migrated to GitHub

This commit is contained in:
Kristian Benestad 2026-04-19 23:47:49 +07:00
commit d7a19f8f91
37 changed files with 7121 additions and 0 deletions

22
.gitignore vendored Normal file
View file

@ -0,0 +1,22 @@
### AL ###
#Template for AL projects for Dynamics 365 Business Central
#launch.json folder
.vscode/
#Cache folder
.alcache/
#Symbols folder
.alpackages/
#Snapshots folder
.snapshots/
#Testing Output folder
.output/
#Extension App-file
*.app
#Rapid Application Development File
rad.json
#Translation Base-file
*.g.xlf
#License-file
*.flf
#Test results file
TestResults.xml

123
README.md Normal file
View file

@ -0,0 +1,123 @@
# MD-CMS
> Markdown-based static site publishing — no server, no database, no terminal required.
MD-CMS lets you write and publish a website entirely in markdown. Drop your `.md` files in a folder, run the build tool, upload the output to any static host, and you're done. All rendering happens in the browser.
---
## How it works
MD-CMS has two parts:
**`index.html`** — a single-file browser renderer. It reads your markdown files, config, and navigation at runtime and renders everything client-side. No build pipeline, no framework, no compilation step.
**`mdcms.py`** — a zero-dependency Python CLI tool. It scans your content, generates `nav.yml` and `search.json`, validates your config, and packages everything into a zip file ready for upload.
---
## Features
- **Write in markdown** — pages and posts with YAML frontmatter
- **Categories** — serve multiple versions of the same page (e.g. languages, destinations, variants) via `?cat=` URL parameter and a dropdown UI
- **Sections** — nested navigation defined in `nav.yml`; pages declare their section via frontmatter
- **Full-text search** — category-aware, generated at build time
- **Dynamic content tags** — embed post lists with date sorting, pagination, and year grouping using fenced `mdcms` code blocks
- **RTL support** — per-category text direction
- **Custom fonts per category** — load a font file from `assets/fonts/` when a category is selected
- **Light and dark mode** — fully themeable via `config.yml`
- **No server required** — everything is static; deploy to GitHub Pages, Codeberg Pages, Cloudflare Pages, Netlify, or any file host
- **Zero dependencies**`mdcms.py` uses only the Python standard library
---
## File structure
```
mdcms.py ← build tool, run this
quickstart.md ← getting started guide
website/ ← everything in here gets deployed
index.html
config.yml
nav.yml
search.json
pages/
home.md
about.md
about.nb.md ← Norwegian variant of about.md
posts/
2025-01-01-my-first-post.md
assets/
images/
fonts/
```
The `website/` folder is your deployable site. `mdcms.py` lives outside it.
---
## Getting started
**Requirements:** Python 3 (standard library only). A modern browser.
1. Clone or download this repository.
2. Run `python3 mdcms.py` and choose **option 2** to build your config and folder structure from scratch.
3. Write your pages in `website/pages/` and posts in `website/posts/`.
4. Run `mdcms.py` again and choose **option 3** to generate `nav.yml` and `search.json`.
5. Choose **option 8** to start a local webserver and preview your site.
6. When ready to publish, choose **option 1** to validate, build, and export `website.zip`.
7. Upload the contents of `website.zip` to your static host.
> **Local preview note:** Open `index.html` via the built-in webserver (option 8), not by double-clicking the file. Browsers block local file access due to CORS restrictions.
---
## Configuration
Site behaviour is controlled by two YAML files in `website/`:
**`config.yml`** — site title, logo, default page, search settings, typography, layout dimensions, light/dark theme colours, and category definitions.
**`nav.yml`** — navigation structure. Sections are defined here; pages declare their section via `section-id` in frontmatter. Sections can be nested.
Both files are human-readable and comment-supported. The `mdcms.py` wizard generates them for you and can fill in missing values interactively.
---
## Categories
Categories let you publish multiple versions of the same page — different languages, regions, or product variants — under a single URL with a `?cat=` parameter.
Each variant is a separate file:
```
about.md ← default
about.en-gb.md ← British English variant
about.nb.md ← Norwegian variant
```
The category dropdown shows only categories for which a variant exists (or where a "not available" message is configured). All internal links preserve the active category.
---
## Tag system
Embed dynamic post lists in any page using fenced `mdcms` code blocks:
````markdown
```mdcms
posts-date-reversechronological
limit: 10
paginate: yes
```
````
Available tags cover chronological and reverse-chronological post lists, grouped by year, with date or datetime display, and configurable pagination.
---
## Licence
Apache 2.0 — see [LICENCE]((https://www.apache.org/licenses/LICENSE-2.0)).
© Kristian Benestad

1356
mdcms.py Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
This version is outdated. Please visit https://github.com/kbenestad/mdcms/ to update.

View file

@ -0,0 +1 @@
This version is outdated. Please visit https://github.com/kbenestad/mdcms/ to update.

View file

@ -0,0 +1 @@
This version is outdated. Please visit https://github.com/kbenestad/mdcms/ to update.

View file

@ -0,0 +1 @@
This version is outdated. Please visit https://github.com/kbenestad/mdcms/ to update.

View file

@ -0,0 +1,3 @@
# MD-CMS — Documentation
Documentation is available on [docs.benestad.net](https://docs.benestad.net/) - which is also a showcase for the use of MD-CMS.

View file

@ -0,0 +1,22 @@
# MD-CMS — Known limitations
MD-CMS is under active development.
## mdcms.py only targets `/website` directory inside a project directory
You can run `mdcms.py` from anywhere and define multiple projects. However, the current version excepts the website itself to live inside a `/website` directory inside your project directory.
In other words, you cannot keep the files in
- `/home/username/mdcmssites/site-1` and
- `/home/username/mdcmssites/site-2`
they must be in
- `/home/username/mdcmssites/site-1/website` and
- `/home/username/mdcmssites/site-2/website`.
## mdcms tags for posts
The tags that lists posts are broken. Currently, the only tags that reliably show posts are:
- `posts-datetime-chronological-byyearmonth`
- `posts-datetime-reversechronological`

34
resources/quickstart.md Normal file
View file

@ -0,0 +1,34 @@
# MD-CMS — Quickstart
A lightweight Markdown-based CMS. Content is written as plain Markdown with YAML frontmatter; configuration lives in `website/config.yml`; navigation and search are generated by `mdcms.py`.
## First run
1. Put content into `website/pages/` and `website/posts/`.
2. Edit `website/config.yml` with your site name and preferences.
3. From this directory, run `python3 mdcms.py`.
4. In the menu, pick option **7** to register the website path (point it at the `website/` folder).
5. Pick option **3** to build `nav.yml` and `search.json`.
6. Pick option **8** to start a local webserver and preview the site.
## File layout
```
mdcms.py
quickstart.md
website/
assets/
fonts/
images/
pages/
home.md
posts/
index.html
config.yml
nav.yml (generated)
search.json (generated)
```
## Licence
Apache 2.0. See <https://kbenestad.codeberg.page/md-cms> for documentation.

82
samplesite/config.yml Normal file
View file

@ -0,0 +1,82 @@
# MD-CMS v0.2 — Sample Site Configuration
# ─── Site settings ───────────────────────────────
sitename: Acme Corporation
sitedescription: Quality products since 1998
navigation: sidebar
nav-position: left
search: true
# ─── Category settings ───────────────────────────
categories-use: yes
categories-sectionnames: per-category
categories-selecttext: "Choose language"
categories-selecticon: language
# ─── Default category ────────────────────────────
default-category:
code: en
name: English
direction: ltr
message: "Read in English"
pagenotfoundmessage: "This page is not available in English. Please select another language."
# ─── Additional categories ───────────────────────
categories:
- code: nb
name: Norsk
name-latin: Norsk
direction: ltr
message: "Les på norsk"
notfoundmessage: "Ikke tilgjengelig på norsk"
pagenotfoundmessage: "Denne siden er ikke tilgjengelig på norsk. Velg et annet språk."
- code: ar
name: العربية
name-latin: Arabic
direction: rtl
message: "اقرأ بالعربية"
notfoundmessage: "غير متاح باللغة العربية"
pagenotfoundmessage: "هذه الصفحة غير متاحة باللغة العربية. يرجى اختيار لغة أخرى."
# ─── Date and time formatting ────────────────────
date: "D Mmmm YYYY"
time: 24hrs
monthnames: "January, February, March, April, May, June, July, August, September, October, November, December"
monthnamesabbreviated: "Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"
# ─── Appearance ──────────────────────────────────
light:
bg: "#ededed"
bg-nav: "#ffffff"
font-colour: "#1a1a1a"
font-colour-muted: "#666666"
accent: "#29307d"
accent-hover: "#f9ad18"
divider: "#e0e0e0"
nav-active-bg: "#f5f5f5"
nav-hover-bg: "#fafafa"
scrollbar-thumb: "#cccccc"
scrollbar-track: "#f5f5f5"
dark:
bg: "#14171c"
bg-nav: "#1a1e25"
font-colour: "#d4d4d4"
font-colour-muted: "#999999"
accent: "#7b83d4"
accent-hover: "#f9ad18"
divider: "#2a2f38"
nav-active-bg: "#22272f"
nav-hover-bg: "#1f252d"
scrollbar-thumb: "#444444"
scrollbar-track: "#1a1e25"
# ─── Fonts ───────────────────────────────────────
font-title: IBM Plex Sans
font-title-weight: 300
font-body: IBM Plex Sans
font-body-weight: 300
# ─── Footer ──────────────────────────────────────
footer: "© 2026 Acme Corporation. Licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)."

2327
samplesite/index.html Normal file

File diff suppressed because it is too large Load diff

66
samplesite/nav.yml Normal file
View file

@ -0,0 +1,66 @@
# nav.yml — generated by mdcms.py
# Manual edits to section metadata (defaultname, sort, parent, parent-sort,
# pagesvisibility, categorynames) are preserved on rebuild. New sections
# are auto-created from page frontmatter section-id values.
sections:
- code: blog
defaultname: Blog
sort: 100
pagesvisibility: visible
categorynames:
nb: Blogg
ar: المدونة
- code: company
defaultname: Company
sort: 110
pagesvisibility: visible
categorynames:
nb: Selskap
ar: الشركة
- code: products
defaultname: Products
sort: 120
pagesvisibility: visible
categorynames:
nb: Produkter
ar: المنتجات
pages:
- file: pages/about.md
title: About
section-id: company
sort: 100
variants: [en, nb]
titles:
en: About
nb: Om oss
- file: pages/home.md
title: Home
sort: 100
variants: [ar, en, nb]
titles:
ar: الرئيسية
en: Home
nb: Hjem
- file: pages/products.md
title: Products
section-id: products
sort: 100
variants: [en, nb]
titles:
en: Products
nb: Produkter
- file: pages/blog.md
title: Blog
section-id: blog
sort: 110
variants: [en, nb]
titles:
en: Blog
nb: Blogg

38
samplesite/pages/about.md Normal file
View file

@ -0,0 +1,38 @@
---
title: About
section-id: company
sort: 100
---
# About Acme Corporation
Acme Corporation was founded in 1998 with a mission to deliver innovative, high-quality software solutions to businesses worldwide.
## Our Story
From humble beginnings as a small consulting firm, we have grown into a global technology company serving over 5,000 customers across 50 countries.
## Our Values
**Innovation** — We invest heavily in research and development to stay ahead of industry trends.
**Quality** — Every product undergoes rigorous testing to ensure reliability and performance.
**Customer Focus** — Our customers are at the heart of everything we do. Their success is our success.
**Integrity** — We conduct our business with honesty, transparency, and ethical standards.
## Leadership Team
Our leadership team brings decades of combined experience in software development, business management, and customer service.
**Sarah Chen** — Chief Executive Officer (20 years in tech)
**David Okonkwo** — Chief Technology Officer (18 years in software)
**Maria Garcia** — Chief Operating Officer (15 years in business)
## Offices
- **London** — European headquarters
- **San Francisco** — North American operations
- **Singapore** — Asia-Pacific hub
- **Sydney** — Australasia operations

View file

@ -0,0 +1,38 @@
---
title: Om oss
section-id: company
sort: 100
---
# Om Acme Corporation
Acme Corporation ble grunnlagt i 1998 med en misjon å levere innovative, høykvalitets programvareløsninger til virksomheter verden over.
## Vår historie
Fra beskjedne begynnelser som et lite konsulentfirma, har vi vokst til et globalt teknologiselskap som betjener over 5000 kunder i 50 land.
## Våre verdier
**Innovasjon** — Vi investerer tungt i forskning og utvikling for å holde oss fremme i bransjen.
**Kvalitet** — Hvert produkt gjennomgår streng testing for å sikre pålitelighet og ytelse.
**Kundefokus** — Våre kunder er hjertepunktet i alt vi gjør. Deres suksess er vår suksess.
**Integritet** — Vi driver vår virksomhet med ærlighet, transparens og etiske standarder.
## Ledergruppe
Ledergruppen vår har tiår med kombinert erfaring innen programvareutvikling, forretningsledelse og kundeservice.
**Sarah Chen** — Administrerende direktør (20 år innen teknologi)
**David Okonkwo** — Teknologidirektør (18 år innen programvare)
**Maria Garcia** — Driftsdirektør (15 år innen forretning)
## Kontorer
- **London** — Europeisk hovedkontor
- **San Francisco** — Nordamerikansk drift
- **Singapore** — Asia-Stillehavs-hub
- **Sydney** — Australasia-drift

23
samplesite/pages/blog.md Normal file
View file

@ -0,0 +1,23 @@
---
title: Blog
section-id: blog
sort: 110
---
# Latest News
Stay up to date with announcements, product updates, and industry insights from the Acme Corporation team.
## All Posts
```mdcms
posts-date-reversechronological-byyear
limit: all
defaultyear: current
selectyear: yes
paginate: no
```
## Older Posts
For posts from previous years, use the year selector above to browse our full archive.

View file

@ -0,0 +1,23 @@
---
title: Blogg
section-id: blog
sort: 110
---
# Siste nyheter
Bli oppdatert med kunngjøringer, produktoppdateringer og bransjeinnsikter fra Acme Corporation-teamet.
## Alle innlegg
```mdcms
posts-date-reversechronological-byyear
limit: all
defaultyear: current
selectyear: yes
paginate: no
```
## Eldre innlegg
For innlegg fra tidligere år, bruk årvalgeren ovenfor for å bla gjennom vårt komplette arkiv.

View file

@ -0,0 +1,18 @@
---
title: الرئيسية
sort: 100
---
# أهلا وسهلا بك في Acme Corporation
تقدم شركة Acme Corporation منتجات عالية الجودة منذ عام 1998. نتخصص في حلول مبتكرة للأعمال الحديثة.
## أحدث الأخبار
تتضمن مدونتنا أحدث التحديثات والإعلانات عن المنتجات والرؤى الصناعية. تفضل بزيارتنا بانتظام لقراءة منشورات جديدة.
## الأقسام المميزة
- **المنتجات** — اكتشف نطاق منتجاتنا الكامل
- **المدونة** — اقرأ أحدث الأخبار والإعلانات
- **الشركة** — تعرف على تاريخنا وقيمنا

18
samplesite/pages/home.md Normal file
View file

@ -0,0 +1,18 @@
---
title: Home
sort: 100
---
# Welcome to Acme Corporation
Acme Corporation has been delivering quality products since 1998. We specialise in innovative solutions for modern business.
## Latest News
Our blog features the latest updates, product announcements, and industry insights. Check back regularly for new posts.
## Featured Sections
- **Products** — Explore our full range of offerings
- **Blog** — Read the latest news and announcements
- **Company** — Learn about our history and values

View file

@ -0,0 +1,18 @@
---
title: Hjem
sort: 100
---
# Velkommen til Acme Corporation
Acme Corporation har levert kvalitetsprodukter siden 1998. Vi spesialiserer oss på innovative løsninger for moderne næringsliv.
## Siste nyheter
Bloggen vår inneholder de siste oppdateringene, produktvarslinger og innsikter fra bransjen. Besøk oss igjen regelmessig for nye innlegg.
## Utvalgte seksjoner
- **Produkter** — Utforsk vårt fullstendige produktutvalg
- **Blogg** — Les de siste nyhetene og varslinger
- **Selskap** — Lær om vår historie og verdier

View file

@ -0,0 +1,30 @@
---
title: Products
section-id: products
sort: 100
---
# Our Products
Acme Corporation offers a comprehensive range of products designed to meet the needs of modern businesses.
## Product Categories
### Enterprise Solutions
Our flagship enterprise platform provides integrated tools for project management, collaboration, and analytics. Suitable for organisations of all sizes.
**Key features:**
- Real-time collaboration
- Advanced analytics dashboard
- Custom integrations
- 24/7 support
### Professional Services
We provide consulting, implementation, and training services to ensure smooth deployment and maximum ROI.
### Support and Maintenance
Annual support packages include software updates, security patches, and technical assistance.
## Get in Touch
Contact our sales team to schedule a demo or discuss your organisation's specific needs.

View file

@ -0,0 +1,30 @@
---
title: Produkter
section-id: products
sort: 100
---
# Våre produkter
Acme Corporation tilbyr et omfattende utvalg av produkter designet for å møte behovene til moderne virksomheter.
## Produktkategorier
### Enterprise-løsninger
Vår flaggskip-plattform for enterprise gir integrerte verktøy for prosjektstyring, samarbeid og analyse. Egnet for organisasjoner av alle størrelser.
**Viktige funksjoner:**
- Sanntidssamarbeid
- Avansert analysedashbord
- Egendefinerte integrasjoner
- 24/7 support
### Profesjonelle tjenester
Vi tilbyr konsultering, implementering og treningsgjeld for å sikre problemfri distribusjon og maksimal avkastning.
### Støtte og vedlikehold
Årlige støttepakker inkluderer programvareoppdateringer, sikkerhetsoppdateringer og teknisk assistanse.
## Ta kontakt
Kontakt saltesget vårt for å planlegge en demonstrasjon eller diskutere organisasjonens spesifikke behov.

View file

@ -0,0 +1,23 @@
---
title: Q4 2022 Performance Report
date: 2022-11-15
datetime: 2022-11-15 09:00
author: Sarah Chen
---
# Q4 2022 Performance Report
We're pleased to report strong performance across all metrics in the fourth quarter of 2022.
## Key Highlights
- Revenue growth of 28% year-over-year
- Customer satisfaction score of 4.7/5.0
- 312 new enterprise customers onboarded
- 99.98% platform uptime
## Investment in Innovation
We've doubled our R&D investment this year, focusing on AI-driven analytics and workflow automation.
Read our full 2022 annual report for comprehensive details.

View file

@ -0,0 +1,27 @@
---
title: Introducing Advanced Analytics Dashboard
date: 2023-03-22
datetime: 2023-03-22 14:30
author: David Okonkwo
---
# Introducing Advanced Analytics Dashboard
We are excited to announce the launch of our new Advanced Analytics Dashboard, available now to all Enterprise customers.
## What's New
The dashboard provides real-time insights into user behaviour, system performance, and business metrics. Features include:
- Custom metric builders
- Automated alerting
- Data export in multiple formats
- Integration with popular BI tools
## How to Get Started
Existing Enterprise customers can enable the new dashboard in their account settings. Contact support for any questions.
## What's Next
We're planning further enhancements based on user feedback, including mobile support and advanced forecasting.

View file

@ -0,0 +1,31 @@
---
title: Security Update - November 2023
date: 2023-11-10
datetime: 2023-11-10 11:45
author: Security Team
---
# Security Update — November 2023
All Acme Corporation customers should update to the latest version immediately to apply critical security patches.
## Affected Versions
- Version 7.2.0 through 7.2.3
- Version 8.0.0 through 8.1.2
## What to Do
1. Log in to your account dashboard
2. Navigate to Settings → Software Updates
3. Click "Update Now"
The update takes approximately 5 minutes and requires no downtime.
## What Was Fixed
Our security team identified and resolved three vulnerabilities related to API authentication. We have notified all affected customers directly.
## Questions?
Contact our support team at security@acmecorp.com for any questions or concerns.

View file

@ -0,0 +1,32 @@
---
title: 2024 Product Roadmap
date: 2024-01-30
datetime: 2024-01-30 10:00
author: David Okonkwo
---
# 2024 Product Roadmap
We're thrilled to share our ambitious plans for 2024. These updates are based on customer feedback and industry trends.
## H1 2024
- Mobile app (iOS and Android)
- Advanced workflow automation
- Expanded API capabilities
- Support for 15 additional languages
## H2 2024
- AI-powered insights engine
- Blockchain-based audit trails
- Advanced multi-tenancy
- Sustainability reporting module
## Customer Advisory Board
We're establishing a Customer Advisory Board to help guide our product direction. Interested in joining? Contact us.
## Schedule a Demo
Want to see what's coming? Schedule a demo with our product team to discuss how these features will benefit your organisation.

View file

@ -0,0 +1,28 @@
---
title: Q2 2024 Customer Success Stories
date: 2024-07-08
datetime: 2024-07-08 15:20
author: Maria Garcia
---
# Q2 2024 Customer Success Stories
This quarter we highlight three customers who have achieved remarkable results using Acme Corporation products.
## Global Manufacturing Group
A multinational manufacturing company reduced project delivery time by 35% and improved team collaboration across 12 global offices using our Enterprise platform.
"Acme's solution transformed how we collaborate. We now complete projects weeks ahead of schedule." — Operations Director
## Healthcare Network
A regional healthcare network implemented our analytics dashboard to track patient outcomes and operational metrics, resulting in improved patient care and 18% cost reduction.
## Professional Services Firm
A 500-person consulting firm used our workflow automation to standardise client engagement processes, enabling 40% faster project initiation.
## Apply to Be Featured
Is your organisation achieving great results with Acme Corporation? We'd love to feature your story. Contact marketing@acmecorp.com.

View file

@ -0,0 +1,34 @@
---
title: Version 9.0 Released — A New Era
date: 2026-04-10
datetime: 2026-04-10 13:00
author: Sarah Chen
---
# Version 9.0 Released — A New Era
Today we launch Acme Corporation Platform v9.0, our most significant release to date.
## Major Features
**AI-Powered Insights** — Automatic anomaly detection and predictive analytics using advanced machine learning models.
**Universal Integration** — Connect to 500+ enterprise systems with our new integration marketplace.
**Enhanced Security** — End-to-end encryption, zero-trust architecture, and compliance with latest standards.
**Performance** — 3x faster than v8.0, with new caching strategies and database optimisations.
**Global Scale** — Now available in 45 regions worldwide with sub-100ms latency.
## Upgrade Path
Existing customers can upgrade free from v8.x. Migration typically takes less than 1 hour.
## Community Edition
We're also releasing a free Community Edition for non-profit organisations, startups, and open source projects.
## Thank You
Thank you to our customers, partners, and community for helping us reach this milestone.

197
samplesite/search.json Normal file
View file

@ -0,0 +1,197 @@
[
{
"file": "pages/about.md",
"title": "About",
"section-id": "company",
"keywords": "",
"description": "",
"author": null,
"date": "",
"datetime": "",
"language": "en",
"body": "# About Acme Corporation\n\nAcme Corporation was founded in 1998 with a mission to deliver innovative, high-quality software solutions to businesses worldwide.\n\n## Our Story\n\nFrom humble beginnings as a small consulting firm, we have grown into a global technology company serving over 5,000 customers across 50 countries.\n\n## Our Values\n\n**Innovation** — We invest heavily in research and development to stay ahead of industry trends.\n\n**Quality** — Every product undergoes rigorous testing to ensure reliability and performance.\n\n**Customer Focus** — Our customers are at the heart of everything we do. Their success is our success.\n\n**Integrity** — We conduct our business with honesty, transparency, and ethical standards.\n\n## Leadership Team\n\nOur leadership team brings decades of combined experience in software development, business management, and customer service.\n\n**Sarah Chen** — Chief Executive Officer (20 years in tech)\n**David Okonkwo** — Chief Technology Officer (18 years in software)\n**Maria Garcia** — Chief Operating Officer (15 years in business)\n\n## Offices\n\n- **London** — European headquarters\n- **San Francisco** — North American operations\n- **Singapore** — Asia-Pacific hub\n- **Sydney** — Australasia operations\n",
"category": "en"
},
{
"file": "pages/about.md",
"title": "Om oss",
"section-id": "company",
"keywords": "",
"description": "",
"author": null,
"date": "",
"datetime": "",
"language": "en",
"body": "# Om Acme Corporation\n\nAcme Corporation ble grunnlagt i 1998 med en misjon å levere innovative, høykvalitets programvareløsninger til virksomheter verden over.\n\n## Vår historie\n\nFra beskjedne begynnelser som et lite konsulentfirma, har vi vokst til et globalt teknologiselskap som betjener over 5000 kunder i 50 land.\n\n## Våre verdier\n\n**Innovasjon** — Vi investerer tungt i forskning og utvikling for å holde oss fremme i bransjen.\n\n**Kvalitet** — Hvert produkt gjennomgår streng testing for å sikre pålitelighet og ytelse.\n\n**Kundefokus** — Våre kunder er hjertepunktet i alt vi gjør. Deres suksess er vår suksess.\n\n**Integritet** — Vi driver vår virksomhet med ærlighet, transparens og etiske standarder.\n\n## Ledergruppe\n\nLedergruppen vår har tiår med kombinert erfaring innen programvareutvikling, forretningsledelse og kundeservice.\n\n**Sarah Chen** — Administrerende direktør (20 år innen teknologi)\n**David Okonkwo** — Teknologidirektør (18 år innen programvare)\n**Maria Garcia** — Driftsdirektør (15 år innen forretning)\n\n## Kontorer\n\n- **London** — Europeisk hovedkontor\n- **San Francisco** — Nordamerikansk drift\n- **Singapore** — Asia-Stillehavs-hub\n- **Sydney** — Australasia-drift\n",
"category": "nb"
},
{
"file": "pages/blog.md",
"title": "Blog",
"section-id": "blog",
"keywords": "",
"description": "",
"author": null,
"date": "",
"datetime": "",
"language": "en",
"body": "# Latest News\n\nStay up to date with announcements, product updates, and industry insights from the Acme Corporation team.\n\n## All Posts\n\n```mdcms\nposts-date-reversechronological-byyear\nlimit: all\ndefaultyear: current\nselectyear: yes\npaginate: no\n```\n\n## Older Posts\n\nFor posts from previous years, use the year selector above to browse our full archive.\n",
"category": "en"
},
{
"file": "pages/blog.md",
"title": "Blogg",
"section-id": "blog",
"keywords": "",
"description": "",
"author": null,
"date": "",
"datetime": "",
"language": "en",
"body": "# Siste nyheter\n\nBli oppdatert med kunngjøringer, produktoppdateringer og bransjeinnsikter fra Acme Corporation-teamet.\n\n## Alle innlegg\n\n```mdcms\nposts-date-reversechronological-byyear\nlimit: all\ndefaultyear: current\nselectyear: yes\npaginate: no\n```\n\n## Eldre innlegg\n\nFor innlegg fra tidligere år, bruk årvalgeren ovenfor for å bla gjennom vårt komplette arkiv.\n",
"category": "nb"
},
{
"file": "pages/home.md",
"title": "الرئيسية",
"section-id": null,
"keywords": "",
"description": "",
"author": null,
"date": "",
"datetime": "",
"language": "en",
"body": "# أهلا وسهلا بك في Acme Corporation\n\nتقدم شركة Acme Corporation منتجات عالية الجودة منذ عام 1998. نتخصص في حلول مبتكرة للأعمال الحديثة.\n\n## أحدث الأخبار\n\nتتضمن مدونتنا أحدث التحديثات والإعلانات عن المنتجات والرؤى الصناعية. تفضل بزيارتنا بانتظام لقراءة منشورات جديدة.\n\n## الأقسام المميزة\n\n- **المنتجات** — اكتشف نطاق منتجاتنا الكامل\n- **المدونة** — اقرأ أحدث الأخبار والإعلانات\n- **الشركة** — تعرف على تاريخنا وقيمنا\n",
"category": "ar"
},
{
"file": "pages/home.md",
"title": "Home",
"section-id": null,
"keywords": "",
"description": "",
"author": null,
"date": "",
"datetime": "",
"language": "en",
"body": "# Welcome to Acme Corporation\n\nAcme Corporation has been delivering quality products since 1998. We specialise in innovative solutions for modern business.\n\n## Latest News\n\nOur blog features the latest updates, product announcements, and industry insights. Check back regularly for new posts.\n\n## Featured Sections\n\n- **Products** — Explore our full range of offerings\n- **Blog** — Read the latest news and announcements\n- **Company** — Learn about our history and values\n",
"category": "en"
},
{
"file": "pages/home.md",
"title": "Hjem",
"section-id": null,
"keywords": "",
"description": "",
"author": null,
"date": "",
"datetime": "",
"language": "en",
"body": "# Velkommen til Acme Corporation\n\nAcme Corporation har levert kvalitetsprodukter siden 1998. Vi spesialiserer oss på innovative løsninger for moderne næringsliv.\n\n## Siste nyheter\n\nBloggen vår inneholder de siste oppdateringene, produktvarslinger og innsikter fra bransjen. Besøk oss igjen regelmessig for nye innlegg.\n\n## Utvalgte seksjoner\n\n- **Produkter** — Utforsk vårt fullstendige produktutvalg\n- **Blogg** — Les de siste nyhetene og varslinger\n- **Selskap** — Lær om vår historie og verdier\n",
"category": "nb"
},
{
"file": "pages/products.md",
"title": "Products",
"section-id": "products",
"keywords": "",
"description": "",
"author": null,
"date": "",
"datetime": "",
"language": "en",
"body": "# Our Products\n\nAcme Corporation offers a comprehensive range of products designed to meet the needs of modern businesses.\n\n## Product Categories\n\n### Enterprise Solutions\nOur flagship enterprise platform provides integrated tools for project management, collaboration, and analytics. Suitable for organisations of all sizes.\n\n**Key features:**\n- Real-time collaboration\n- Advanced analytics dashboard\n- Custom integrations\n- 24/7 support\n\n### Professional Services\nWe provide consulting, implementation, and training services to ensure smooth deployment and maximum ROI.\n\n### Support and Maintenance\nAnnual support packages include software updates, security patches, and technical assistance.\n\n## Get in Touch\n\nContact our sales team to schedule a demo or discuss your organisation's specific needs.\n",
"category": "en"
},
{
"file": "pages/products.md",
"title": "Produkter",
"section-id": "products",
"keywords": "",
"description": "",
"author": null,
"date": "",
"datetime": "",
"language": "en",
"body": "# Våre produkter\n\nAcme Corporation tilbyr et omfattende utvalg av produkter designet for å møte behovene til moderne virksomheter.\n\n## Produktkategorier\n\n### Enterprise-løsninger\nVår flaggskip-plattform for enterprise gir integrerte verktøy for prosjektstyring, samarbeid og analyse. Egnet for organisasjoner av alle størrelser.\n\n**Viktige funksjoner:**\n- Sanntidssamarbeid\n- Avansert analysedashbord\n- Egendefinerte integrasjoner\n- 24/7 support\n\n### Profesjonelle tjenester\nVi tilbyr konsultering, implementering og treningsgjeld for å sikre problemfri distribusjon og maksimal avkastning.\n\n### Støtte og vedlikehold\nÅrlige støttepakker inkluderer programvareoppdateringer, sikkerhetsoppdateringer og teknisk assistanse.\n\n## Ta kontakt\n\nKontakt saltesget vårt for å planlegge en demonstrasjon eller diskutere organisasjonens spesifikke behov.\n",
"category": "nb"
},
{
"file": "posts/2022-q4-report.md",
"title": "Q4 2022 Performance Report",
"section-id": null,
"keywords": "",
"description": "",
"author": "Sarah Chen",
"date": "2022-11-15",
"datetime": "2022-11-15 09:00",
"language": "en",
"body": "# Q4 2022 Performance Report\n\nWe're pleased to report strong performance across all metrics in the fourth quarter of 2022.\n\n## Key Highlights\n\n- Revenue growth of 28% year-over-year\n- Customer satisfaction score of 4.7/5.0\n- 312 new enterprise customers onboarded\n- 99.98% platform uptime\n\n## Investment in Innovation\n\nWe've doubled our R&D investment this year, focusing on AI-driven analytics and workflow automation.\n\nRead our full 2022 annual report for comprehensive details.\n",
"category": "en"
},
{
"file": "posts/2023-analytics-launch.md",
"title": "Introducing Advanced Analytics Dashboard",
"section-id": null,
"keywords": "",
"description": "",
"author": "David Okonkwo",
"date": "2023-03-22",
"datetime": "2023-03-22 14:30",
"language": "en",
"body": "# Introducing Advanced Analytics Dashboard\n\nWe are excited to announce the launch of our new Advanced Analytics Dashboard, available now to all Enterprise customers.\n\n## What's New\n\nThe dashboard provides real-time insights into user behaviour, system performance, and business metrics. Features include:\n\n- Custom metric builders\n- Automated alerting\n- Data export in multiple formats\n- Integration with popular BI tools\n\n## How to Get Started\n\nExisting Enterprise customers can enable the new dashboard in their account settings. Contact support for any questions.\n\n## What's Next\n\nWe're planning further enhancements based on user feedback, including mobile support and advanced forecasting.\n",
"category": "en"
},
{
"file": "posts/2023-security-update.md",
"title": "Security Update - November 2023",
"section-id": null,
"keywords": "",
"description": "",
"author": "Security Team",
"date": "2023-11-10",
"datetime": "2023-11-10 11:45",
"language": "en",
"body": "# Security Update — November 2023\n\nAll Acme Corporation customers should update to the latest version immediately to apply critical security patches.\n\n## Affected Versions\n\n- Version 7.2.0 through 7.2.3\n- Version 8.0.0 through 8.1.2\n\n## What to Do\n\n1. Log in to your account dashboard\n2. Navigate to Settings → Software Updates\n3. Click \"Update Now\"\n\nThe update takes approximately 5 minutes and requires no downtime.\n\n## What Was Fixed\n\nOur security team identified and resolved three vulnerabilities related to API authentication. We have notified all affected customers directly.\n\n## Questions?\n\nContact our support team at security@acmecorp.com for any questions or concerns.\n",
"category": "en"
},
{
"file": "posts/2024-roadmap.md",
"title": "2024 Product Roadmap",
"section-id": null,
"keywords": "",
"description": "",
"author": "David Okonkwo",
"date": "2024-01-30",
"datetime": "2024-01-30 10:00",
"language": "en",
"body": "# 2024 Product Roadmap\n\nWe're thrilled to share our ambitious plans for 2024. These updates are based on customer feedback and industry trends.\n\n## H1 2024\n\n- Mobile app (iOS and Android)\n- Advanced workflow automation\n- Expanded API capabilities\n- Support for 15 additional languages\n\n## H2 2024\n\n- AI-powered insights engine\n- Blockchain-based audit trails\n- Advanced multi-tenancy\n- Sustainability reporting module\n\n## Customer Advisory Board\n\nWe're establishing a Customer Advisory Board to help guide our product direction. Interested in joining? Contact us.\n\n## Schedule a Demo\n\nWant to see what's coming? Schedule a demo with our product team to discuss how these features will benefit your organisation.\n",
"category": "en"
},
{
"file": "posts/2024-success-stories.md",
"title": "Q2 2024 Customer Success Stories",
"section-id": null,
"keywords": "",
"description": "",
"author": "Maria Garcia",
"date": "2024-07-08",
"datetime": "2024-07-08 15:20",
"language": "en",
"body": "# Q2 2024 Customer Success Stories\n\nThis quarter we highlight three customers who have achieved remarkable results using Acme Corporation products.\n\n## Global Manufacturing Group\n\nA multinational manufacturing company reduced project delivery time by 35% and improved team collaboration across 12 global offices using our Enterprise platform.\n\n\"Acme's solution transformed how we collaborate. We now complete projects weeks ahead of schedule.\" — Operations Director\n\n## Healthcare Network\n\nA regional healthcare network implemented our analytics dashboard to track patient outcomes and operational metrics, resulting in improved patient care and 18% cost reduction.\n\n## Professional Services Firm\n\nA 500-person consulting firm used our workflow automation to standardise client engagement processes, enabling 40% faster project initiation.\n\n## Apply to Be Featured\n\nIs your organisation achieving great results with Acme Corporation? We'd love to feature your story. Contact marketing@acmecorp.com.\n",
"category": "en"
},
{
"file": "posts/2026-v9-release.md",
"title": "Version 9.0 Released — A New Era",
"section-id": null,
"keywords": "",
"description": "",
"author": "Sarah Chen",
"date": "2026-04-10",
"datetime": "2026-04-10 13:00",
"language": "en",
"body": "# Version 9.0 Released — A New Era\n\nToday we launch Acme Corporation Platform v9.0, our most significant release to date.\n\n## Major Features\n\n**AI-Powered Insights** — Automatic anomaly detection and predictive analytics using advanced machine learning models.\n\n**Universal Integration** — Connect to 500+ enterprise systems with our new integration marketplace.\n\n**Enhanced Security** — End-to-end encryption, zero-trust architecture, and compliance with latest standards.\n\n**Performance** — 3x faster than v8.0, with new caching strategies and database optimisations.\n\n**Global Scale** — Now available in 45 regions worldwide with sub-100ms latency.\n\n## Upgrade Path\n\nExisting customers can upgrade free from v8.x. Migration typically takes less than 1 hour.\n\n## Community Edition\n\nWe're also releasing a free Community Edition for non-profit organisations, startups, and open source projects.\n\n## Thank You\n\nThank you to our customers, partners, and community for helping us reach this milestone.\n",
"category": "en"
}
]

View file

View file

50
website/config.yml Normal file
View file

@ -0,0 +1,50 @@
# MD-CMS v0.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
# 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"
# ──────────────────────────────────
# Typography (optional)
# ──────────────────────────────────
# font-title: "Inter:700"
# font-body: Inter
# font-code: JetBrains Mono
# ──────────────────────────────────
# Layout (optional)
# ──────────────────────────────────
# main-width: 80em
# nav-width: 20em
# nav-position: left # left | right (sidebar mode)
# ──────────────────────────────────
# Features (optional)
# ──────────────────────────────────
# search: true
# default-theme: system # light | dark | system

2328
website/index.html Normal file

File diff suppressed because it is too large Load diff

14
website/nav.yml Normal file
View file

@ -0,0 +1,14 @@
# nav.yml — generated by mdcms.py
# Manual edits to section metadata (defaultname, sort, parent, parent-sort,
# pagesvisibility, categorynames) are preserved on rebuild. New sections
# are auto-created from page frontmatter section-id values.
sections:
# (none yet — add section-id to page frontmatter to auto-create)
pages:
- file: pages/home.md
title: Home
sort: 100
variants: [en]
titles:
en: Home

67
website/pages/home.md Normal file
View file

@ -0,0 +1,67 @@
---
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-date-reversechronological
limit: 3
paginate: no
```
## Chronological (oldest first)
```mdcms
posts-date-chronological
limit: all
paginate: none
```
## By year (date, reverse chrono)
```mdcms
posts-date-reversechronological-byyear
limit: all
defaultyear: current
selectyear: yes
paginate: none
```
## By year+month (datetime, chrono)
```mdcms
posts-datetime-chronological-byyearmonth
limit: all
defaultyear: 2024
selectyear: yes
```
## Last 30 days
```mdcms
posts-date-reversechronological-lastmonth
limit: all
paginate: none
```
## Paginated (2 per page)
```mdcms
posts-datetime-reversechronological
limit: 2
paginate: yes
```

0
website/posts/.gitkeep Normal file
View file

15
website/search.json Normal file
View file

@ -0,0 +1,15 @@
[
{
"file": "pages/home.md",
"title": "Home",
"section-id": null,
"keywords": "",
"description": "",
"author": null,
"date": "",
"datetime": "",
"language": "en",
"body": "# Post Listing Tests\n\n## Reverse chronological (newest first)\n\n```mdcms\nposts-date-reversechronological\nlimit: 3\npaginate: no\n```\n\n## Chronological (oldest first)\n\n```mdcms\nposts-date-chronological\nlimit: all\npaginate: none\n```\n\n## By year (date, reverse chrono)\n\n```mdcms\nposts-date-reversechronological-byyear\nlimit: all\ndefaultyear: current\nselectyear: yes\npaginate: none\n```\n\n## By year+month (datetime, chrono)\n\n```mdcms\nposts-datetime-chronological-byyearmonth\nlimit: all\ndefaultyear: 2024\nselectyear: yes\n```\n\n## Last 30 days\n\n```mdcms\nposts-date-reversechronological-lastmonth\nlimit: all\npaginate: none\n```\n\n## Paginated (2 per page)\n\n```mdcms\nposts-datetime-reversechronological\nlimit: 2\npaginate: yes\n```\n",
"category": "en"
}
]