diff --git a/body.md b/body.md new file mode 100644 index 0000000..3f549a3 --- /dev/null +++ b/body.md @@ -0,0 +1,3 @@ +# this is a body + +with some other text \ No newline at end of file diff --git a/boilerpalte.html b/boilerpalte.html new file mode 100644 index 0000000..3a83639 --- /dev/null +++ b/boilerpalte.html @@ -0,0 +1,55 @@ + + + + + + + + + + + Hello, world! + + +
+ + +
+ + + + + + + + + diff --git a/bottom.html b/bottom.html new file mode 100644 index 0000000..e3395ec --- /dev/null +++ b/bottom.html @@ -0,0 +1,19 @@ + + + + + + + diff --git a/concat.py b/concat.py new file mode 100644 index 0000000..e77162d --- /dev/null +++ b/concat.py @@ -0,0 +1,11 @@ +import pypandoc + +middle = pypandoc.convert_file("body.md", "html") + +with open("top.html", "r") as top: + with open("bottom.html", "r") as bottom: + with open("index.html", "w") as index: + index.write(top.read()) + index.write(middle) + index.write(bottom.read()) + index.close() diff --git a/top.html b/top.html new file mode 100644 index 0000000..890a4dc --- /dev/null +++ b/top.html @@ -0,0 +1,36 @@ + + + + + + + + + + + Hello, world! + + +
+ + +
+ +