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 @@
-

-

PDF öffnen

+

+

PDF öffnen

diff --git a/content/Metallic-DMC_635.html b/content/Metallic-DMC_635.html index 9ad208e..d64d74b 100644 --- a/content/Metallic-DMC_635.html +++ b/content/Metallic-DMC_635.html @@ -26,7 +26,7 @@
-

-

PDF öffnen

+

+

PDF öffnen

diff --git a/content/Metallic-EMCO_332.html b/content/Metallic-EMCO_332.html index 6b209f1..93f1427 100644 --- a/content/Metallic-EMCO_332.html +++ b/content/Metallic-EMCO_332.html @@ -26,7 +26,7 @@
-

-

PDF öffnen

+

+

PDF öffnen

diff --git a/content/Metallic-EMCO_360.html b/content/Metallic-EMCO_360.html index 7341b1f..52573ad 100644 --- a/content/Metallic-EMCO_360.html +++ b/content/Metallic-EMCO_360.html @@ -26,7 +26,7 @@
-

-

PDF öffnen

+

+

PDF öffnen

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.

-

Back to the default sticky footer minus the navbar.

-
- - - - - - - - - - - \ No newline at end of file diff --git a/output/.html b/output/.html deleted file mode 100644 index c686127..0000000 --- a/output/.html +++ /dev/null @@ -1,88 +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.

-

Back to the default sticky footer minus the navbar.

-
- - - - - - - - - - - - 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.

-

Back to the default sticky footer minus the navbar.

-
- diff --git a/output/IT-LAB-Coaches.html b/output/IT-LAB-Coaches.html index b2aa76e..b82c4a7 100644 --- a/output/IT-LAB-Coaches.html +++ b/output/IT-LAB-Coaches.html @@ -1,20 +1,17 @@ - - - - + + - - - - - + + + + + IT-LAB-Coaches - - - - - + + + +