commit df7a13dc1528d9eb81a8da078ef94332e35736fe Author: Mo8it Date: Mon Oct 24 16:35:18 2022 +0200 Init commit diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..79c06d5 --- /dev/null +++ b/config.toml @@ -0,0 +1,40 @@ +# The URL the site will be built for +base_url = "https://yinghong-massage.de" + +title = "Ying Yang Massage" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = false + +[extra] +logo_path = "images/logo.png" +portrait_path = "images/index/portrait.jpeg" + +# Custom colors for navigation bar, footer, h1 tags, etc. +primary_color = "#6db9a5" +secondary_color = "#6e0000" + +# Menu +[[extra.menu_items]] +name = "Startseite" +url = "/" +[[extra.menu_items]] +name = "Unser Angebot" +url = "/angebot" +[[extra.menu_items]] +name = "Terminvereinbarung" +url = "/termin" + +# Footer +[[extra.footer_items]] +name = "Startseite" +url = "/" +[[extra.footer_items]] +name = "Kontakt" +url = "/kontakt" +[[extra.footer_items]] +name = "Datenschutzerklärung" +url = "/datenschutz" +[[extra.footer_items]] +name = "Impressum" +url = "/impressum" diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..cbdc133 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,20 @@ +{% extends "base.tera.html" %} +{% block content %} +
+

Seite nicht gefunden

+ + + + +
+{% endblock content %} diff --git a/templates/base.tera.html b/templates/base.tera.html new file mode 100644 index 0000000..124794f --- /dev/null +++ b/templates/base.tera.html @@ -0,0 +1,46 @@ + + + + + + + + {% if page.title %} + {{ page.title }} + {% elif section.title %} + {{ section.title }} + {% else %} + {{ config.title }} + {% endif %} + + + {% set image = resize_image(path=config.extra.logo_path, width=32, height=32, op="fill") %} + + + + + + + {% include "partials/nav.tera.html" %} + +
+
+ + {% block content %}{% endblock content %} +
+ + + + + + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..6c97e04 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,3 @@ +{% extends "base.tera.html" %} +{% block content %} +{% endblock content %} diff --git a/templates/partials/footer.tera.html b/templates/partials/footer.tera.html new file mode 100644 index 0000000..533f7cd --- /dev/null +++ b/templates/partials/footer.tera.html @@ -0,0 +1,17 @@ +
+
+ +
+ {% for footer_item in config.extra.footer_items %} + + {% endfor %} +
+ +
+
diff --git a/templates/partials/nav.tera.html b/templates/partials/nav.tera.html new file mode 100644 index 0000000..2d5b3b1 --- /dev/null +++ b/templates/partials/nav.tera.html @@ -0,0 +1,74 @@ + diff --git a/templates/shortcodes/email_link.html b/templates/shortcodes/email_link.html new file mode 100644 index 0000000..85744df --- /dev/null +++ b/templates/shortcodes/email_link.html @@ -0,0 +1,2 @@ +{% set link = "" ~ email ~ "" %} +{{ link | safe }} diff --git a/templates/single.tera.html b/templates/single.tera.html new file mode 100644 index 0000000..e30b0a1 --- /dev/null +++ b/templates/single.tera.html @@ -0,0 +1,10 @@ +{% extends "base.tera.html" %} +{% block content %} +

+ {{ page.title }} +

+ +
+ + {{ page.content | safe }} +{% endblock content %}