pdnew/themes/default/templates/renderable/renderable.html

41 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2024-10-22 15:02:22 +00:00
{% if config.DEBUG %}<!-- template begins: {{ self._TemplateReference__context.name }} -->{% endif %}
2024-04-12 19:22:00 +00:00
<article class="{{ content.css_classes }} mode-{{ mode }}">
{% if self.header()|trim %}
<header>
{% block header %}
{% if self.meta_header() %}
<div class="meta">
{% block meta_header %}{% endblock %}
</div>
{% endif %}
{% endblock %}
</header>
{% endif %}
<div class="content">
{% block content %}
<p>This is the base template for all renderables. You probably want to create one of these:</p>
<ul>
{% for template_candidate in content.template_candidates(mode=mode, format=format) %}
<li><code>{{ template_candidate }}</code></li>
{% endfor %}
</ul>
<p>You might also want this template to extend one of the more generic ones in this list.</p>
{% endblock %}
</div>
{% if self.footer()|trim %}
<footer>
2024-10-22 15:02:22 +00:00
{% block footer %}
{% if self.meta_footer()|trim %}
2024-10-22 15:02:22 +00:00
<div class="meta">
{% block meta_footer %}{% endblock %}
2024-10-22 15:02:22 +00:00
</div>
{% endif %}
{% endblock %}
</footer>
{% endif %}
2024-04-12 19:22:00 +00:00
</article>
2024-10-22 15:02:22 +00:00
{% if config.DEBUG %}<!-- template ends: {{ self._TemplateReference__context.name }} -->{% endif %}