Skip to content

Commit

Permalink
Enables rich text for the sanbox home page
Browse files Browse the repository at this point in the history
  • Loading branch information
jberghoef committed Jun 1, 2017
1 parent e3ceecf commit a629bfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='homepage',
name='text_content',
field=wagtail.wagtailcore.fields.RichTextField(default='Thank you for trying Wagxperience!'),
field=wagtail.wagtailcore.fields.RichTextField(
default='<p>Thank you for trying <a href="http://wagxperience.io" target="_blank">Wagxperience</a>!</p>'),
preserve_default=False,
),
]
4 changes: 3 additions & 1 deletion sandbox/sandbox/apps/home/templates/home/home_page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% extends "base.html" %}

{% load wagtailcore_tags %}

{% block body_class %}template-homepage{% endblock %}

{% block content %}
Expand All @@ -8,5 +10,5 @@ <h1>Wagtail Personalisation</h1>

<h2>{{ self.title }}</h2>

{{ self.text_content }}
{{ self.text_content|richtext }}
{% endblock %}

0 comments on commit a629bfc

Please sign in to comment.