Skip to content

Super-minimalistic

Latest

Choose a tag to compare

@rognoni rognoni released this 26 Nov 21:52
· 3 commits to main since this release

Content management system, made in Vanilla PHP

Introducing Vanilla(static)CMS a lightweight and minimalistic Content Management System built with Vanilla JavaScript and Markdown. Designed for simplicity and ease of use, this CMS empowers users to manage content effortlessly, focusing on a clean and streamlined user experience:

This is the core idea:

window.addEventListener("load", async (event) => {
    const params = new URLSearchParams(document.location.search)
    const filepath = params.get("c") ?? "index.md"
    const filefetch = await fetch(filepath, {method: "GET", cache: "no-store"})
    const markdown = await filefetch.text()
    document.getElementById("content").innerHTML = marked.parse(markdown)
})