diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..43c5062 Binary files /dev/null and b/.DS_Store differ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7519f47 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# Compile the hugo site +FROM ubuntu:latest AS builder + +RUN apt-get update && apt-get install -y hugo + +COPY ./hugo /app +RUN hugo -s /app + +# Setup deployment +FROM nginx:alpine AS final + +COPY ./nginx/nginx.conf /etc/nginx/nginx.conf +COPY --from=0 /var/www/rezepte /var/www diff --git a/hugo/.DS_Store b/hugo/.DS_Store new file mode 100644 index 0000000..51821cc Binary files /dev/null and b/hugo/.DS_Store differ diff --git a/archetypes/default.md b/hugo/archetypes/default.md similarity index 100% rename from archetypes/default.md rename to hugo/archetypes/default.md diff --git a/hugo/assets/.DS_Store b/hugo/assets/.DS_Store new file mode 100644 index 0000000..ab22786 Binary files /dev/null and b/hugo/assets/.DS_Store differ diff --git a/assets/css/dark.css b/hugo/assets/css/dark.css similarity index 100% rename from assets/css/dark.css rename to hugo/assets/css/dark.css diff --git a/assets/css/fonts.css b/hugo/assets/css/fonts.css similarity index 100% rename from assets/css/fonts.css rename to hugo/assets/css/fonts.css diff --git a/assets/css/main.css b/hugo/assets/css/main.css similarity index 100% rename from assets/css/main.css rename to hugo/assets/css/main.css diff --git a/assets/js/themetoggle.js b/hugo/assets/js/themetoggle.js similarity index 100% rename from assets/js/themetoggle.js rename to hugo/assets/js/themetoggle.js diff --git a/config.toml b/hugo/config.toml similarity index 100% rename from config.toml rename to hugo/config.toml diff --git a/content/apfeltarte.md b/hugo/content/apfeltarte.md similarity index 100% rename from content/apfeltarte.md rename to hugo/content/apfeltarte.md diff --git a/content/huehnerfond.md b/hugo/content/huehnerfond.md similarity index 100% rename from content/huehnerfond.md rename to hugo/content/huehnerfond.md diff --git a/content/huehnersuppe.md b/hugo/content/huehnersuppe.md similarity index 100% rename from content/huehnersuppe.md rename to hugo/content/huehnersuppe.md diff --git a/content/italienische_meringue.md b/hugo/content/italienische_meringue.md similarity index 100% rename from content/italienische_meringue.md rename to hugo/content/italienische_meringue.md diff --git a/content/kokoseis.md b/hugo/content/kokoseis.md similarity index 100% rename from content/kokoseis.md rename to hugo/content/kokoseis.md diff --git a/content/markdown.md b/hugo/content/markdown.md similarity index 100% rename from content/markdown.md rename to hugo/content/markdown.md diff --git a/content/schoko_tarte_creme.md b/hugo/content/schoko_tarte_creme.md similarity index 100% rename from content/schoko_tarte_creme.md rename to hugo/content/schoko_tarte_creme.md diff --git a/content/schokoladen_mousse.md b/hugo/content/schokoladen_mousse.md similarity index 100% rename from content/schokoladen_mousse.md rename to hugo/content/schokoladen_mousse.md diff --git a/hugo/layouts/.DS_Store b/hugo/layouts/.DS_Store new file mode 100644 index 0000000..4594a11 Binary files /dev/null and b/hugo/layouts/.DS_Store differ diff --git a/layouts/_default/baseof.html b/hugo/layouts/_default/baseof.html similarity index 100% rename from layouts/_default/baseof.html rename to hugo/layouts/_default/baseof.html diff --git a/layouts/_default/list.html b/hugo/layouts/_default/list.html similarity index 100% rename from layouts/_default/list.html rename to hugo/layouts/_default/list.html diff --git a/layouts/_default/rss.xml b/hugo/layouts/_default/rss.xml similarity index 100% rename from layouts/_default/rss.xml rename to hugo/layouts/_default/rss.xml diff --git a/layouts/_default/single.html b/hugo/layouts/_default/single.html similarity index 100% rename from layouts/_default/single.html rename to hugo/layouts/_default/single.html diff --git a/layouts/partials/nav.html b/hugo/layouts/partials/nav.html similarity index 100% rename from layouts/partials/nav.html rename to hugo/layouts/partials/nav.html diff --git a/layouts/partials/nextprev.html b/hugo/layouts/partials/nextprev.html similarity index 100% rename from layouts/partials/nextprev.html rename to hugo/layouts/partials/nextprev.html diff --git a/layouts/partials/taglist.html b/hugo/layouts/partials/taglist.html similarity index 100% rename from layouts/partials/taglist.html rename to hugo/layouts/partials/taglist.html diff --git a/layouts/shortcodes/hidvid.html b/hugo/layouts/shortcodes/hidvid.html similarity index 100% rename from layouts/shortcodes/hidvid.html rename to hugo/layouts/shortcodes/hidvid.html diff --git a/layouts/shortcodes/img.html b/hugo/layouts/shortcodes/img.html similarity index 100% rename from layouts/shortcodes/img.html rename to hugo/layouts/shortcodes/img.html diff --git a/layouts/shortcodes/tagcloud.html b/hugo/layouts/shortcodes/tagcloud.html similarity index 100% rename from layouts/shortcodes/tagcloud.html rename to hugo/layouts/shortcodes/tagcloud.html diff --git a/layouts/shortcodes/vid.html b/hugo/layouts/shortcodes/vid.html similarity index 100% rename from layouts/shortcodes/vid.html rename to hugo/layouts/shortcodes/vid.html diff --git a/hugo/static/.DS_Store b/hugo/static/.DS_Store new file mode 100644 index 0000000..7c294e9 Binary files /dev/null and b/hugo/static/.DS_Store differ diff --git a/static/fonts/fira-sans-v10-latin-regular.eot b/hugo/static/fonts/fira-sans-v10-latin-regular.eot similarity index 100% rename from static/fonts/fira-sans-v10-latin-regular.eot rename to hugo/static/fonts/fira-sans-v10-latin-regular.eot diff --git a/static/fonts/fira-sans-v10-latin-regular.svg b/hugo/static/fonts/fira-sans-v10-latin-regular.svg similarity index 100% rename from static/fonts/fira-sans-v10-latin-regular.svg rename to hugo/static/fonts/fira-sans-v10-latin-regular.svg diff --git a/static/fonts/fira-sans-v10-latin-regular.ttf b/hugo/static/fonts/fira-sans-v10-latin-regular.ttf similarity index 100% rename from static/fonts/fira-sans-v10-latin-regular.ttf rename to hugo/static/fonts/fira-sans-v10-latin-regular.ttf diff --git a/static/fonts/fira-sans-v10-latin-regular.woff b/hugo/static/fonts/fira-sans-v10-latin-regular.woff similarity index 100% rename from static/fonts/fira-sans-v10-latin-regular.woff rename to hugo/static/fonts/fira-sans-v10-latin-regular.woff diff --git a/static/fonts/fira-sans-v10-latin-regular.woff2 b/hugo/static/fonts/fira-sans-v10-latin-regular.woff2 similarity index 100% rename from static/fonts/fira-sans-v10-latin-regular.woff2 rename to hugo/static/fonts/fira-sans-v10-latin-regular.woff2 diff --git a/static/fonts/ibm-plex-mono-v6-latin-500italic.eot b/hugo/static/fonts/ibm-plex-mono-v6-latin-500italic.eot similarity index 100% rename from static/fonts/ibm-plex-mono-v6-latin-500italic.eot rename to hugo/static/fonts/ibm-plex-mono-v6-latin-500italic.eot diff --git a/static/fonts/ibm-plex-mono-v6-latin-500italic.svg b/hugo/static/fonts/ibm-plex-mono-v6-latin-500italic.svg similarity index 100% rename from static/fonts/ibm-plex-mono-v6-latin-500italic.svg rename to hugo/static/fonts/ibm-plex-mono-v6-latin-500italic.svg diff --git a/static/fonts/ibm-plex-mono-v6-latin-500italic.ttf b/hugo/static/fonts/ibm-plex-mono-v6-latin-500italic.ttf similarity index 100% rename from static/fonts/ibm-plex-mono-v6-latin-500italic.ttf rename to hugo/static/fonts/ibm-plex-mono-v6-latin-500italic.ttf diff --git a/static/fonts/ibm-plex-mono-v6-latin-500italic.woff b/hugo/static/fonts/ibm-plex-mono-v6-latin-500italic.woff similarity index 100% rename from static/fonts/ibm-plex-mono-v6-latin-500italic.woff rename to hugo/static/fonts/ibm-plex-mono-v6-latin-500italic.woff diff --git a/static/fonts/ibm-plex-mono-v6-latin-500italic.woff2 b/hugo/static/fonts/ibm-plex-mono-v6-latin-500italic.woff2 similarity index 100% rename from static/fonts/ibm-plex-mono-v6-latin-500italic.woff2 rename to hugo/static/fonts/ibm-plex-mono-v6-latin-500italic.woff2 diff --git a/static/fonts/roboto-mono-v12-latin-regular.eot b/hugo/static/fonts/roboto-mono-v12-latin-regular.eot similarity index 100% rename from static/fonts/roboto-mono-v12-latin-regular.eot rename to hugo/static/fonts/roboto-mono-v12-latin-regular.eot diff --git a/static/fonts/roboto-mono-v12-latin-regular.svg b/hugo/static/fonts/roboto-mono-v12-latin-regular.svg similarity index 100% rename from static/fonts/roboto-mono-v12-latin-regular.svg rename to hugo/static/fonts/roboto-mono-v12-latin-regular.svg diff --git a/static/fonts/roboto-mono-v12-latin-regular.ttf b/hugo/static/fonts/roboto-mono-v12-latin-regular.ttf similarity index 100% rename from static/fonts/roboto-mono-v12-latin-regular.ttf rename to hugo/static/fonts/roboto-mono-v12-latin-regular.ttf diff --git a/static/fonts/roboto-mono-v12-latin-regular.woff b/hugo/static/fonts/roboto-mono-v12-latin-regular.woff similarity index 100% rename from static/fonts/roboto-mono-v12-latin-regular.woff rename to hugo/static/fonts/roboto-mono-v12-latin-regular.woff diff --git a/static/fonts/roboto-mono-v12-latin-regular.woff2 b/hugo/static/fonts/roboto-mono-v12-latin-regular.woff2 similarity index 100% rename from static/fonts/roboto-mono-v12-latin-regular.woff2 rename to hugo/static/fonts/roboto-mono-v12-latin-regular.woff2 diff --git a/static/img/schokoladen-mousse.jpg b/hugo/static/img/schokoladen-mousse.jpg similarity index 100% rename from static/img/schokoladen-mousse.jpg rename to hugo/static/img/schokoladen-mousse.jpg diff --git a/hugo/themes/.DS_Store b/hugo/themes/.DS_Store new file mode 100644 index 0000000..c7c354f Binary files /dev/null and b/hugo/themes/.DS_Store differ diff --git a/nginx/nginx.conf b/nginx/nginx.conf new file mode 100644 index 0000000..3c327bd --- /dev/null +++ b/nginx/nginx.conf @@ -0,0 +1,43 @@ +# nginx.conf +worker_processes auto; + +events { + worker_connections 1024; +} + +http { + # Logging + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; + + # Gzip compression + gzip on; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; + gzip_min_length 256; + + server { + listen 80; + server_name example.com; + + root /var/www/; + index index.html; + + # Error pages + #error_page 404 /404.html; + #location = /404.html { + # internal; + #} + + # Serve static files + location / { + try_files $uri $uri/ =404; + } + + # Optional: Caching for static assets + location ~* \.(?:ico|css|js|gif|jpe?g|png|svg|woff2?|ttf|otf|eot|html|xml|json)$ { + expires 10M; + access_log off; + add_header Cache-Control "public"; + } + } +} diff --git a/themes/archie b/themes/archie deleted file mode 160000 index d8819d5..0000000 --- a/themes/archie +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d8819d5eee8b0817f41bda3a9dc2100cd6b2b0bd diff --git a/themes/lugo b/themes/lugo deleted file mode 160000 index 62ac46a..0000000 --- a/themes/lugo +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 62ac46a2955d59080cbde8d5c73c16502bfa670f