Deep dive
diff --git a/homepage/docker-compose.yml b/homepage/docker-compose.yml
deleted file mode 100644
index e105b1a..0000000
--- a/homepage/docker-compose.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-version: '3'
-
-services:
- homepage:
- build:
- context: '.'
- dockerfile: ./../Dockerfile.python
- working_dir: /offen/homepage
- volumes:
- - ..:/offen
- - homepagedeps:/root/.local
- command: make devserver
- ports:
- - 8000:8000
- environment:
- DEBUG: '1'
-
-volumes:
- homepagedeps:
diff --git a/homepage/publishconf.py b/homepage/publishconf.py
index e442015..16e9042 100644
--- a/homepage/publishconf.py
+++ b/homepage/publishconf.py
@@ -11,8 +11,8 @@ sys.path.append(os.curdir)
from pelicanconf import *
# If your site is available via HTTPS, make sure SITEURL begins with https://
-SITEURL = 'https://www.offen.dev'
-RELATIVE_URLS = False
+SITEURL = os.environ.get('SITEURL', 'https://www.offen.dev')
+# RELATIVE_URLS = True
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
diff --git a/homepage/theme/static/scripts/fade.js b/homepage/theme/static/scripts/fade.js
index 0490c5b..44b4f7e 100644
--- a/homepage/theme/static/scripts/fade.js
+++ b/homepage/theme/static/scripts/fade.js
@@ -1,10 +1,10 @@
;(function ($) {
$(document).ready(function () {
$(window).scroll(function () {
- var scrollProgress = parseInt($(window).scrollTop(), 10)
- if ($(window).width() > 960) {
- $('body.index .brand').css('opacity', Math.min(scrollProgress / 100, 1))
- }
+ if ($(window).width() > 960) {
+ var scrollProgress = parseInt($(window).scrollTop(), 10)
+ $('body.index .brand').css('opacity', Math.min(scrollProgress / 100, 1))
+ }
})
})
})(window.jQuery)
diff --git a/homepage/theme/static/scripts/jump.js b/homepage/theme/static/scripts/jump.js
deleted file mode 100644
index e69de29..0000000
diff --git a/homepage/theme/templates/auditorium.html b/homepage/theme/templates/auditorium.html
deleted file mode 100644
index 1462aa3..0000000
--- a/homepage/theme/templates/auditorium.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-
-
- {{ page.content }}
-
-
-{% endblock %}
diff --git a/homepage/theme/templates/base.html b/homepage/theme/templates/base.html
index 4f409d8..4c29415 100644
--- a/homepage/theme/templates/base.html
+++ b/homepage/theme/templates/base.html
@@ -20,10 +20,10 @@
{% assets filters="cssmin", output="css/style.min.css", "css/normalize.css", "css/fonts.css", "css/style.css" %}
-
+
{% endassets %}
{% if OFFEN_ACCOUNT_ID %}
-
+
{% endif %}
@@ -136,8 +136,10 @@
- {% assets filters="rjsmin", output="scripts/packed.js", "scripts/jquery-3.4.1.min.js", "scripts/menu.js", "scripts/fade.js" %}
-
- {% endassets %}
+ {% block scripts %}
+ {% assets filters="rjsmin", output="scripts/packed.js", "scripts/jquery-3.4.1.min.js", "scripts/menu.js", "scripts/fade.js" %}
+
+ {% endassets %}
+ {% endblock %}