From ac49478bbbe56f25bdad2dd2ebd31eecbe30c8f8 Mon Sep 17 00:00:00 2001 From: Jaap Joris Vens Date: Sun, 25 Dec 2022 00:25:13 +0100 Subject: [PATCH] Re-introduce section IDs We may have had these before, and they may have been removed because of concerns that IDs must be unique that non-unique IDs would be caught by Django-Tidy. Or maybe not, I can't remember. --- example/templates/contact.html | 3 ++- example/templates/images.html | 2 +- example/templates/text.html | 2 +- example/templates/video.html | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/example/templates/contact.html b/example/templates/contact.html index 756b717..8501156 100644 --- a/example/templates/contact.html +++ b/example/templates/contact.html @@ -1,5 +1,6 @@ {% load i18n cms %} -
+ +

{{section.title}}

diff --git a/example/templates/images.html b/example/templates/images.html index 7cc94f6..5cc782a 100644 --- a/example/templates/images.html +++ b/example/templates/images.html @@ -1,6 +1,6 @@ {% load thumbnail i18n cms %} -
+
{% for image in section.images.all %}
diff --git a/example/templates/text.html b/example/templates/text.html index 22ac7e7..d9fce21 100644 --- a/example/templates/text.html +++ b/example/templates/text.html @@ -1,6 +1,6 @@ {% load i18n cms %} -
+

diff --git a/example/templates/video.html b/example/templates/video.html index 8decdcb..837c3a9 100644 --- a/example/templates/video.html +++ b/example/templates/video.html @@ -1,6 +1,6 @@ {% load embed_video_tags i18n cms %} -
+
{% if section.video %}