Skip to content

Commit

Permalink
GH-68: Frontera: Add "Standard" template
Browse files Browse the repository at this point in the history
- Add to `secrets.py`.
- Add custom assets mini-template.
- Extend Core standard template but with custom assets.
  • Loading branch information
wesleyboar committed Aug 30, 2021
1 parent a2ae12a commit 8478c95
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontera-cms/secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
5 changes: 5 additions & 0 deletions frontera-cms/templates/assets_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% load static %}

<!-- To customize styles for this project -->
<link rel="stylesheet" href="{% static 'frontera-cms/css/build/site.css' %}">
<link rel="stylesheet" href="{% static 'frontera-cms/css/build/site.header.css' %}">
6 changes: 6 additions & 0 deletions frontera-cms/templates/standard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends "standard.html" %}
{% load cms_tags %}

{% block assets_custom %}
{% include "./assets_custom.html" %}
{% endblock assets_custom %}

0 comments on commit 8478c95

Please sign in to comment.