Template
1
0
Fork
You've already forked site
0
Template for building a static website from markdown, including purpose built tools to do this.
  • C 97.3%
  • C++ 1.9%
  • Makefile 0.4%
  • CSS 0.3%
  • HTML 0.1%
2025年07月10日 20:57:21 +02:00
pages Add HTML markup example page 2025年07月08日 21:11:37 +02:00
templates Fixed template/head issue, and added links between example pages 2025年07月07日 18:21:39 +02:00
tools Add template file 2025年07月10日 20:57:21 +02:00
web Add HTML markup example page 2025年07月08日 21:11:37 +02:00
.gitignore initial 2025年07月06日 22:44:11 +02:00
compile_flags.txt Made builder walk all files in sites/ 2025年07月07日 18:16:28 +02:00
LICENSE.txt Add LICENSE 2025年07月07日 18:22:43 +02:00
Makefile Implement basic buuilder 2025年07月06日 23:47:09 +02:00
page.template Add template file 2025年07月10日 20:57:21 +02:00
README.md Update README 2025年07月10日 11:48:09 +02:00
todo.txt Add template file 2025年07月10日 20:57:21 +02:00

Site

Template for building simple static websites from markdown files.

Compiling the purpose built tools

Just run the make command to compile all the tools found in tools/. The binaries will be placed in tools-bin/.

Changing the templates used when building the HTML pages

The templates are placed in templates/. There you will find some files that are used as the HTML around the content of each page. This is used so you don't need to manually update every page when you want to update the head, navbar, or footer. Updating any of these files and using the builder tool again will update every page to contain these changes.

Building the markdown pages into HTML

You can use the builder tool found in tools-bin/ to convert the files in pages/ to HTML files placed into public/. Just run the binary while in the root of the project.

Including extra content

To include content not created by the builder tool, place it in web/. In the current example there is a CSS file, which is the style for the website. You can use it for anything you want, for example you could place the images you want to show on the website here, or you could include HTML you have written from scratch in case you want full control over the layout of a specific page, etc.

Deploying

To deploy, just serve the content in the public/ directory.