From 8478c95d4c415912f73adb5e1736ed2f0c250320 Mon Sep 17 00:00:00 2001 From: Wesley Bomar Date: Mon, 30 Aug 2021 11:43:42 -0500 Subject: [PATCH] GH-68: Frontera: Add "Standard" template - Add to `secrets.py`. - Add custom assets mini-template. - Extend Core standard template but with custom assets. --- frontera-cms/secrets.py | 1 + frontera-cms/templates/assets_custom.html | 5 +++++ frontera-cms/templates/standard.html | 6 ++++++ 3 files changed, 12 insertions(+) create mode 100644 frontera-cms/templates/assets_custom.html create mode 100644 frontera-cms/templates/standard.html diff --git a/frontera-cms/secrets.py b/frontera-cms/secrets.py index 214b23dc..1d7811c0 100644 --- a/frontera-cms/secrets.py +++ b/frontera-cms/secrets.py @@ -14,6 +14,7 @@ # … _CMS_TEMPLATES = ( + ('frontera-cms/templates/standard.html', 'Standard'), ('frontera-cms/templates/fullwidth.html', 'Full Width'), ('frontera-cms/templates/home.html', 'Homepage'), diff --git a/frontera-cms/templates/assets_custom.html b/frontera-cms/templates/assets_custom.html new file mode 100644 index 00000000..e457fff6 --- /dev/null +++ b/frontera-cms/templates/assets_custom.html @@ -0,0 +1,5 @@ +{% load static %} + + + + diff --git a/frontera-cms/templates/standard.html b/frontera-cms/templates/standard.html new file mode 100644 index 00000000..fa3b3303 --- /dev/null +++ b/frontera-cms/templates/standard.html @@ -0,0 +1,6 @@ +{% extends "standard.html" %} +{% load cms_tags %} + +{% block assets_custom %} + {% include "./assets_custom.html" %} +{% endblock assets_custom %}