Skip to content

IndieSmiths/indiesmiths.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script and content for generating static website for https://indiesmiths.com

This is the custom, simple static website generator to generate the website for https://indiesmiths.com.

It turns .md files (markdown) into .html files representing both static pages or chronological content (articles, blog posts, news).

You can enjoy the simplicity and practicality of markdown without losing access to HTML elements and their custom attributes and interface with CSS and Javascript that bring even more power and style to your .html documents. Just include the HTML content (tags) you want in your .md files and they'll be copied as-is in the generated .html files.

The only dependency required to build the website is Python Markdown. To install it, execute:

pip install markdown

Depending on your system, you might have to replace pip by pip3.

Then, just execute the generate.py script like this in this folder:

python3 generate.py

Depending on your system, you might have to replace python3 by python.

It will read contents from the content folder and create a new sibling _output folder with the generated website. If the _output folder already exists at the time of the call, there is no problem: it is removed completely and then generated.

It relies solely on Python and its standard library.

Once you are satisfied with the changes and commit them, you can execute...

python3 addhash.py

And it will add the hash code generated by git rev-parse HEAD at the end of the website's footer.

About

Script and content for generating static website for https://indiesmiths.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published