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 {
|
||||
max-width: 700px;
|
||||
margin: auto;
|
||||
padding: 0 1em;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
div.spacer {
|
||||
height: 1rem;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
header, section, footer {
|
||||
|
|
|
@ -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
|
@ -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>
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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',
|
||||
|
|
Ładowanie…
Reference in New Issue