Scaffold containerized Django/Wagtail app with core features
This commit is contained in:
4
templates/blog/blocks/callout_block.html
Normal file
4
templates/blog/blocks/callout_block.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="callout icon-{{ value.icon }}">
|
||||
<h3>{{ value.heading }}</h3>
|
||||
{{ value.body }}
|
||||
</div>
|
||||
5
templates/blog/blocks/code_block.html
Normal file
5
templates/blog/blocks/code_block.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% load wagtailcore_tags %}
|
||||
<div class="code-block">
|
||||
{% if value.filename %}<div>{{ value.filename }}</div>{% endif %}
|
||||
<pre data-lang="{{ value.language }}"><code class="language-{{ value.language }}">{{ value.raw_code }}</code></pre>
|
||||
</div>
|
||||
5
templates/blog/blocks/image_block.html
Normal file
5
templates/blog/blocks/image_block.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% load wagtailimages_tags %}
|
||||
<figure>
|
||||
{% image value.image width-1024 alt=value.alt %}
|
||||
{% if value.caption %}<figcaption>{{ value.caption }}</figcaption>{% endif %}
|
||||
</figure>
|
||||
4
templates/blog/blocks/pull_quote_block.html
Normal file
4
templates/blog/blocks/pull_quote_block.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<blockquote>
|
||||
<p>{{ value.quote }}</p>
|
||||
{% if value.attribution %}<cite>{{ value.attribution }}</cite>{% endif %}
|
||||
</blockquote>
|
||||
Reference in New Issue
Block a user