adds resume and streaming block
This commit is contained in:
parent
b6554fbf83
commit
b2001195fc
18 changed files with 223 additions and 0 deletions
8
portfolio/templates/portfolio/blocks/card_block.html
Normal file
8
portfolio/templates/portfolio/blocks/card_block.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% load wagtailcore_tags wagtailimages_tags %}
|
||||
<div class="card">
|
||||
<h3>{{ self.heading }}</h3>
|
||||
<div>{{ self.text|richtext }}</div>
|
||||
{% if self.image %}
|
||||
{% image self.image width-480 %}
|
||||
{% endif %}
|
||||
</div>
|
|
@ -0,0 +1,16 @@
|
|||
{% load wagtailcore_tags %}
|
||||
<div>
|
||||
<h2>{{ self.heading }}</h2>
|
||||
{% if self.text %}
|
||||
<p>{{ self.text|richtext }}</p>
|
||||
{% endif %}
|
||||
|
||||
<div class="grid">
|
||||
{% for page in self.posts %}
|
||||
<div class="card">
|
||||
<p><a href="{% pageurl page %}">{{ page.title }}</a></p>
|
||||
<p>{{ page.specific.date }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
11
portfolio/templates/portfolio/portfolio_page.html
Normal file
11
portfolio/templates/portfolio/portfolio_page.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% load wagtailcore_tags wagtailimages_tags %}
|
||||
|
||||
{% block body_class %}template-portfolio{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
|
||||
{{ page.body }}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue