'Simple' SPA style blogsite.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Martin Ashby f9c72b3d8f
Initial commit
2 months ago
content
Caddyfile
README.md
index.html
routes.json

README.md

spa

Example SPA approach to a simple blog website.

prerequisites

run

launch with caddy run and open the browser to http://localhost

how it works

caddy tries to load from files, and falls back to index.html by default if no file matches.

index.html has a plain page template and uses javascript to dynamically create navigation and load the content.

routes.json file contains the metadata for website pages (currently just title and content location)

content/* files are HTML content to be embedded in the page template.

assets/* files are just plain files to be served direct.