kopia lustrzana https://github.com/rtts/django-simplecms
hook for extending base sections
rodzic
96e47cc277
commit
f7e4b1066d
|
@ -10,7 +10,12 @@ html, body {
|
||||||
div.wrapper {
|
div.wrapper {
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 0 1em;
|
padding: 0 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.spacer {
|
||||||
|
height: 1rem;
|
||||||
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
header, section, footer {
|
header, section, footer {
|
||||||
|
|
|
@ -6,7 +6,11 @@ html, body {
|
||||||
div.wrapper {
|
div.wrapper {
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 0 1em; }
|
padding: 0 1rem; }
|
||||||
|
|
||||||
|
div.spacer {
|
||||||
|
height: 1rem;
|
||||||
|
clear: both; }
|
||||||
|
|
||||||
header, section, footer {
|
header, section, footer {
|
||||||
padding: 1rem; }
|
padding: 1rem; }
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8,11 +8,13 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if section.title %}
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h1>
|
<h1>
|
||||||
{{section.title}}
|
{{section.title}}
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if section.content %}
|
{% if section.content %}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -28,6 +30,11 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% block extracontent %}
|
||||||
|
</div>
|
||||||
|
<div class="wrapper">
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% if section.button_text and section.button_link %}
|
{% if section.button_text and section.button_link %}
|
||||||
<div class="button">
|
<div class="button">
|
||||||
<a href="{{section.button_link}}">{{section.button_text}}</a>
|
<a href="{{section.button_link}}">{{section.button_text}}</a>
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'django-simplecms',
|
name = 'django-simplecms',
|
||||||
version = '0.0.8',
|
version = '0.0.9',
|
||||||
url = 'https://github.com/rtts/django-simplecms',
|
url = 'https://github.com/rtts/django-simplecms',
|
||||||
author = 'Jaap Joris Vens',
|
author = 'Jaap Joris Vens',
|
||||||
author_email = 'jj@rtts.eu',
|
author_email = 'jj@rtts.eu',
|
||||||
|
|
Ładowanie…
Reference in New Issue