add basic project template
This commit is contained in:
parent
cf5aaddc2d
commit
f1a591442f
1 changed files with 18 additions and 0 deletions
18
templates/projects/project_page.html
Normal file
18
templates/projects/project_page.html
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% load wagtailcore_tags wagtailimages_tags %}
|
||||||
|
|
||||||
|
{% block body_class %}template-projectpage{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1>{{ page.title }}</h1>
|
||||||
|
<p class="meta">{{ page.date }}</p>
|
||||||
|
|
||||||
|
{% if page.main_image %}
|
||||||
|
{% image page.main_image width-400 %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="intro">{{ page.intro }}</div>
|
||||||
|
|
||||||
|
{{ page.body|richtext }}
|
||||||
|
{% endblock %}
|
Reference in a new issue