Static site generation from keyword.txt file and publish it in Firebase



From keywords.txt file we will generate templates to fill it with content.


vim keywords.txt


Add one keyword per line.. For example,


Aanbieding Binnendeuren

Aanbiedingen binnendeur



python startpage.py


Then you will see generated templates. For example:


input/02-aanbieding-binnendeuren.html

input/03-aanbiedingen-binnendeur.html



Fill generated templates with content.


Then


vim sitemapgen.py and update from .. to counts..




This will read file names from the filesystem and generate a sitemap in the current input directory.


input/sitemap02-10.html




Then run python include script to make AMP pages from templates.

Python include.py


Then publish all these generated files.


firebase deploy


And add it in the Git directory so you can follow changes.

Comments