diff --git a/README.md b/README.md
index f1d7167..6f3b993 100644
--- a/README.md
+++ b/README.md
@@ -7,11 +7,15 @@ Inhalte von `script.html` und `footer.html`werden automatisch in jede Seite kopi
Als Vorlage diente das Bootstrap-Example `sticky footer navbar`[^ex]
+Die fertigen Dateien werden im `output`-Ordner abgelegt.
+
# QR-Code Generator
`qrencode.sh` ist ein Script welches automatisch QR-Codes mit Links für unseren Webhost auf `itlabs.at` bei Hoststar erzeugt. Auch dieses Script ließt aus dem `content`-Ordner aus.
Damit das Script ordnungsgemäß funktioniert wird "qrencode" auf Linux benötigt![^qre]
-[^qre]:[qrencode](https://fukuchi.org/works/qrencode/)
+QR-Codes werden im `qr`-Ordner annotiert abgelegt.
+
+[^qre]: [qrencode](https://fukuchi.org/works/qrencode/)
[^ex]: [Bootstrap Example: Sticky Footer Navbar](https://getbootstrap.com/docs/4.0/examples/sticky-footer-navbar/)
diff --git a/content/Metallic-DMC_50.html b/content/Metallic-DMC_50.html
index 3e1305b..b032626 100644
--- a/content/Metallic-DMC_50.html
+++ b/content/Metallic-DMC_50.html
@@ -26,7 +26,7 @@
diff --git a/unused/example.html b/examples/content-example.html
similarity index 100%
rename from unused/example.html
rename to examples/content-example.html
diff --git a/vorlage/Sticky Footer Navbar Template for Bootstrap.html b/examples/vorlage/Sticky Footer Navbar Template for Bootstrap.html
similarity index 100%
rename from vorlage/Sticky Footer Navbar Template for Bootstrap.html
rename to examples/vorlage/Sticky Footer Navbar Template for Bootstrap.html
diff --git a/vorlage/Sticky Footer Navbar Template for Bootstrap_files/bootstrap.css b/examples/vorlage/Sticky Footer Navbar Template for Bootstrap_files/bootstrap.css
similarity index 100%
rename from vorlage/Sticky Footer Navbar Template for Bootstrap_files/bootstrap.css
rename to examples/vorlage/Sticky Footer Navbar Template for Bootstrap_files/bootstrap.css
diff --git a/vorlage/Sticky Footer Navbar Template for Bootstrap_files/bootstrap.js b/examples/vorlage/Sticky Footer Navbar Template for Bootstrap_files/bootstrap.js
similarity index 100%
rename from vorlage/Sticky Footer Navbar Template for Bootstrap_files/bootstrap.js
rename to examples/vorlage/Sticky Footer Navbar Template for Bootstrap_files/bootstrap.js
diff --git a/vorlage/Sticky Footer Navbar Template for Bootstrap_files/jquery-3.js b/examples/vorlage/Sticky Footer Navbar Template for Bootstrap_files/jquery-3.js
similarity index 100%
rename from vorlage/Sticky Footer Navbar Template for Bootstrap_files/jquery-3.js
rename to examples/vorlage/Sticky Footer Navbar Template for Bootstrap_files/jquery-3.js
diff --git a/vorlage/Sticky Footer Navbar Template for Bootstrap_files/popper.js b/examples/vorlage/Sticky Footer Navbar Template for Bootstrap_files/popper.js
similarity index 100%
rename from vorlage/Sticky Footer Navbar Template for Bootstrap_files/popper.js
rename to examples/vorlage/Sticky Footer Navbar Template for Bootstrap_files/popper.js
diff --git a/vorlage/Sticky Footer Navbar Template for Bootstrap_files/sticky-footer-navbar.css b/examples/vorlage/Sticky Footer Navbar Template for Bootstrap_files/sticky-footer-navbar.css
similarity index 100%
rename from vorlage/Sticky Footer Navbar Template for Bootstrap_files/sticky-footer-navbar.css
rename to examples/vorlage/Sticky Footer Navbar Template for Bootstrap_files/sticky-footer-navbar.css
diff --git a/footer.html b/footer.html
deleted file mode 100644
index b1d52b5..0000000
--- a/footer.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/genHTML.sh b/genHTML.sh
index 6024d02..eb4af79 100755
--- a/genHTML.sh
+++ b/genHTML.sh
@@ -1,33 +1,36 @@
#!/bin/bash
-rm -r output/*.html
-genHTML(){
- content=$1
+# clear out the old files and copy back the files
+[ -x output ] && rm -rf output/ && mkdir output
+[ ! -x output ] && mkdir output # just in case ö_ö
+cp -r ressources-orig output/ressources
- cat <<< '
- '
+insHeader(){
+#takes $1 for the title
+
+ cat <<< ''
- cat <<< '
-
+ cat <<< '
-
-
-
-
-
+
+
+
+
+
'
-
- cat <<< "$(basename $content .html)"
- cat <<< '
-
-
-
-
+ cat <<< "$1"
+
+ cat <<< '
+
+
+
'
- # begin navbar content
+}
+
+insNavbar(){
cat <<< ''
# end navbar content
-
- cat <<< ''
- # begin main content
- cat $content
- # end main conteint
- cat footer.html
- cat scripts.html
+}
+
+insFooter(){
+
+ cat <<< '
+
+
+
+
+ '
+
+ cat <<< '
+ '
+
cat <<< ''
}
+genHTML(){
+ content=$1
+
+ # name of the file without ending as title for the webpage
+ insHeader $(basename $content .html)
+
+ # insert the navigation bar
+ insNavbar
+
+ # insert the body
+ cat <<< ''
+
+ # main content
+ cat $content
+
+ # insert the script links and footer
+ insFooter
+}
for content in content/*.html
do
diff --git a/index.html b/index.html
deleted file mode 100644
index 8441f05..0000000
--- a/index.html
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
-
-
-
-
-
- Sticky Footer Navbar Template for Bootstrap
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Sticky footer with fixed navbar
-
Pin a fixed-height footer to the bottom of the
-viewport in desktop browsers with this custom HTML and CSS. A fixed
-navbar has been added with padding-top: 60px; on the body > .container.
Pin a fixed-height footer to the bottom of the
-viewport in desktop browsers with this custom HTML and CSS. A fixed
-navbar has been added with padding-top: 60px; on the body > .container.
Pin a fixed-height footer to the bottom of the
-viewport in desktop browsers with this custom HTML and CSS. A fixed
-navbar has been added with padding-top: 60px; on the body > .container.