6 changed files with 27 additions and 10 deletions
Binary file not shown.
Binary file not shown.
@ -0,0 +1,19 @@ |
|||||
|
# Generated by Django 3.1.3 on 2020-11-04 10:30 |
||||
|
|
||||
|
from django.db import migrations |
||||
|
import wagtail.core.fields |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('home', '0002_create_homepage'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AddField( |
||||
|
model_name='homepage', |
||||
|
name='body', |
||||
|
field=wagtail.core.fields.RichTextField(blank=True), |
||||
|
), |
||||
|
] |
Binary file not shown.
@ -1,21 +1,15 @@ |
|||||
{% extends "base.html" %} |
{% extends "base.html" %} |
||||
{% load static %} |
|
||||
|
{% load wagtailcore_tags %} |
||||
|
|
||||
{% block body_class %}template-homepage{% endblock %} |
{% block body_class %}template-homepage{% endblock %} |
||||
|
|
||||
{% block extra_css %} |
{% block extra_css %} |
||||
|
|
||||
{% comment %} |
|
||||
Delete the line below if you're just getting started and want to remove the welcome screen! |
|
||||
{% endcomment %} |
|
||||
<link rel="stylesheet" href="{% static 'css/welcome_page.css' %}"> |
|
||||
{% endblock extra_css %} |
{% endblock extra_css %} |
||||
|
|
||||
|
|
||||
{% block content %} |
{% block content %} |
||||
|
|
||||
{% comment %} |
|
||||
Delete the line below if you're just getting started and want to remove the welcome screen! |
|
||||
{% endcomment %} |
|
||||
{% include 'home/welcome_page.html' %} |
|
||||
|
{{ page.body|richtext }} |
||||
|
|
||||
{% endblock content %} |
{% endblock content %} |
||||
|
Loading…
Reference in new issue