summaryrefslogtreecommitdiff
path: root/theme
diff options
context:
space:
mode:
authorhellekin <hellekin@dyne.org>2016-10-22 10:30:39 +0200
committerhellekin <hellekin@dyne.org>2016-10-22 10:30:39 +0200
commitcd7ea3a7065b01ddb6cd10839f1ef1fc9d9baaa9 (patch)
tree853fc43f6691814618f55a4b3654650b391ffff0 /theme
parent7be9cf258a3b4adb902ef10c4cf829672656b97f (diff)
downloadwww-cd7ea3a7065b01ddb6cd10839f1ef1fc9d9baaa9.tar.gz
www-cd7ea3a7065b01ddb6cd10839f1ef1fc9d9baaa9.tar.bz2
www-cd7ea3a7065b01ddb6cd10839f1ef1fc9d9baaa9.zip
Change body_params logic
Diffstat (limited to 'theme')
-rw-r--r--theme/static/css/neo900.css5
-rw-r--r--theme/templates/article.html1
-rw-r--r--theme/templates/base.html2
-rw-r--r--theme/templates/index.html2
4 files changed, 7 insertions, 3 deletions
diff --git a/theme/static/css/neo900.css b/theme/static/css/neo900.css
index 99442d3..d15d675 100644
--- a/theme/static/css/neo900.css
+++ b/theme/static/css/neo900.css
@@ -697,6 +697,9 @@ a.link-inverted {
margin-bottom: 10px;
}
-body.disco div.stripe>div {
+body.disco .stripe > div {
max-width: 48rem;
+}
+body.disco .jumbotron.stripe > div {
+ max-width: 100%;
} \ No newline at end of file
diff --git a/theme/templates/article.html b/theme/templates/article.html
index 6753063..c073951 100644
--- a/theme/templates/article.html
+++ b/theme/templates/article.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% if article.body_params %}{% set body_params = article.body_params %}{% endif %}
{% block title %}{{ article.title|striptags }}{% endblock %}
{% block content %}
diff --git a/theme/templates/base.html b/theme/templates/base.html
index 9913d7b..f97f17b 100644
--- a/theme/templates/base.html
+++ b/theme/templates/base.html
@@ -50,7 +50,7 @@
</head>
- <body {% block body_params %}{%endblock%}>
+ <body{% if body_params %} {{ body_params }}{% endif %}>
<div class="modal fade" id="subscribe" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
diff --git a/theme/templates/index.html b/theme/templates/index.html
index a3765f8..1f08f62 100644
--- a/theme/templates/index.html
+++ b/theme/templates/index.html
@@ -1,5 +1,5 @@
{% extends "base.html" %}
-{% block body_params%}data-spy="scroll" data-target="#topmenu" data-offset="70"{% endblock %}
+{% set body_params='data-spy="scroll" data-target="#topmenu" data-offset="70"' %}
{% block content_title %}{% endblock %}
{% block content %}