commit 9a1fa6e8bda70db5aa9ae0088ccee30eb30aaa88 Author: J4YC33 Date: Sat Jun 22 12:43:14 2024 -0600 initial commit diff --git a/generator.py b/generator.py new file mode 100644 index 0000000..35877c6 --- /dev/null +++ b/generator.py @@ -0,0 +1,20 @@ +import os + +static = os.listdir("pages/static/") +posts = os.listdir("pages/posts") + +templates = ["header","navbar","body","footer"] + +for staticPage in static: + with open("site/" + staticPage, 'w+') as output: + for page in templates: + with open ("templates/" + page + ".htm") as template: + for line in template: + if "%Content%" in line: + line = "" + with open("pages/static/" + staticPage) as content: + for line1 in content: + line += "\t\t\t" + line1 + output.write(line) + + \ No newline at end of file diff --git a/pages/static/about.htm b/pages/static/about.htm new file mode 100644 index 0000000..4ff9370 --- /dev/null +++ b/pages/static/about.htm @@ -0,0 +1,2 @@ +

About

+ diff --git a/pages/static/fun.htm b/pages/static/fun.htm new file mode 100644 index 0000000..ba85376 --- /dev/null +++ b/pages/static/fun.htm @@ -0,0 +1,2 @@ +

Fun

+ diff --git a/pages/static/index.htm b/pages/static/index.htm new file mode 100644 index 0000000..e73d24f --- /dev/null +++ b/pages/static/index.htm @@ -0,0 +1,4 @@ +

Index

+ +

This is a website. I fucking hope...

+ diff --git a/pages/static/links.htm b/pages/static/links.htm new file mode 100644 index 0000000..4ba6f3d --- /dev/null +++ b/pages/static/links.htm @@ -0,0 +1 @@ +

Links

\ No newline at end of file diff --git a/pages/static/trek.htm b/pages/static/trek.htm new file mode 100644 index 0000000..d7d63a1 --- /dev/null +++ b/pages/static/trek.htm @@ -0,0 +1,2 @@ +

Star Trek

+ diff --git a/site/about.htm b/site/about.htm new file mode 100644 index 0000000..064c62f --- /dev/null +++ b/site/about.htm @@ -0,0 +1,24 @@ + + + + J4YC33 + + +
+ J4YC33 Banner +
+ + + +

About

+ +
+ + + + \ No newline at end of file diff --git a/site/fun.htm b/site/fun.htm new file mode 100644 index 0000000..8b9822e --- /dev/null +++ b/site/fun.htm @@ -0,0 +1,24 @@ + + + + J4YC33 + + +
+ J4YC33 Banner +
+ + + +

Fun

+ +
+ + + + \ No newline at end of file diff --git a/site/index.htm b/site/index.htm new file mode 100644 index 0000000..5f37c58 --- /dev/null +++ b/site/index.htm @@ -0,0 +1,26 @@ + + + + J4YC33 + + +
+ J4YC33 Banner +
+ + + +

Index

+ +

This is a website. I fucking hope...

+ +
+ + + + \ No newline at end of file diff --git a/site/links.htm b/site/links.htm new file mode 100644 index 0000000..7bd87c1 --- /dev/null +++ b/site/links.htm @@ -0,0 +1,22 @@ + + + + J4YC33 + + +
+ J4YC33 Banner +
+ + + +

Links

+ + + + \ No newline at end of file diff --git a/site/trek.htm b/site/trek.htm new file mode 100644 index 0000000..7a7731c --- /dev/null +++ b/site/trek.htm @@ -0,0 +1,24 @@ + + + + J4YC33 + + +
+ J4YC33 Banner +
+ + + +

Star Trek

+ +
+ + + + \ No newline at end of file diff --git a/templates/body.htm b/templates/body.htm new file mode 100644 index 0000000..862de5b --- /dev/null +++ b/templates/body.htm @@ -0,0 +1,4 @@ + + + %Content% + diff --git a/templates/footer.htm b/templates/footer.htm new file mode 100644 index 0000000..ce75fdd --- /dev/null +++ b/templates/footer.htm @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/templates/header.htm b/templates/header.htm new file mode 100644 index 0000000..1fd5662 --- /dev/null +++ b/templates/header.htm @@ -0,0 +1,9 @@ + + + + J4YC33 + + +
+ J4YC33 Banner +
diff --git a/templates/navbar.htm b/templates/navbar.htm new file mode 100644 index 0000000..ae7fdb8 --- /dev/null +++ b/templates/navbar.htm @@ -0,0 +1,6 @@ + diff --git a/templates/sidebar.htm b/templates/sidebar.htm new file mode 100644 index 0000000..e69de29