hook for extending base sections

readwriteweb
Jaap Joris Vens 2019-04-29 13:13:54 +02:00
rodzic 96e47cc277
commit f7e4b1066d
5 zmienionych plików z 25 dodań i 9 usunięć

Wyświetl plik

@ -10,7 +10,12 @@ html, body {
div.wrapper {
max-width: 700px;
margin: auto;
padding: 0 1em;
padding: 0 1rem;
}
div.spacer {
height: 1rem;
clear: both;
}
header, section, footer {

Wyświetl plik

@ -6,7 +6,11 @@ html, body {
div.wrapper {
max-width: 700px;
margin: auto;
padding: 0 1em; }
padding: 0 1rem; }
div.spacer {
height: 1rem;
clear: both; }
header, section, footer {
padding: 1rem; }

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -8,11 +8,13 @@
</div>
{% endif %}
<div class="title">
<h1>
{{section.title}}
</h1>
</div>
{% if section.title %}
<div class="title">
<h1>
{{section.title}}
</h1>
</div>
{% endif %}
{% if section.content %}
<div class="content">
@ -28,6 +30,11 @@
</div>
{% endif %}
{% block extracontent %}
</div>
<div class="wrapper">
{% endblock %}
{% if section.button_text and section.button_link %}
<div class="button">
<a href="{{section.button_link}}">{{section.button_text}}</a>

Wyświetl plik

@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name = 'django-simplecms',
version = '0.0.8',
version = '0.0.9',
url = 'https://github.com/rtts/django-simplecms',
author = 'Jaap Joris Vens',
author_email = 'jj@rtts.eu',