Skip to content

Commit

Permalink
Merge pull request #69 from TACC/task/GH-68-new-fullwidth-standard-te…
Browse files Browse the repository at this point in the history
…mplates
  • Loading branch information
wesleyboar authored Oct 14, 2021
2 parents 3bfefb6 + 9cec504 commit 40e4816
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 deletions.
5 changes: 3 additions & 2 deletions frontera-cms/settings_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
########################

CMS_TEMPLATES = (
('frontera-cms/templates/fullwidth.html', 'Fullwidth'),
('fullwidth.html', 'DEPRECATED Fullwidth'),
('frontera-cms/templates/standard.html', 'Standard'),
('frontera-cms/templates/fullwidth.html', 'Full Width'),
('frontera-cms/templates/home.html', 'Homepage'),

('guide.html', 'Guide'),
('guides/getting_started.html', 'Guide: Getting Started'),
('guides/data_transfer.html', 'Guide: Data Transfer'),
Expand Down
4 changes: 4 additions & 0 deletions frontera-cms/templates/assets_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% load static %}

<link rel="stylesheet" href="{% static 'frontera-cms/css/build/site.css' %}">
<link rel="stylesheet" href="{% static 'frontera-cms/css/build/site.header.css' %}">
18 changes: 3 additions & 15 deletions frontera-cms/templates/fullwidth.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
{% extends "base.html" %}
{% load cms_tags staticfiles %}

{% block title %}{% page_attribute "page_title" %}{% endblock title %}

{% block assets_font %}
{{ block.super }}
{% endblock assets_font %}

{% block content %}
{% placeholder "content" %}
{% endblock content %}
{% extends "fullwidth.html" %}
{% load cms_tags static %}

{% block assets_custom %}
{{ block.super }}

<!-- 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' %}">
{% include "./assets_custom.html" %}

<!-- To style old CMS content on new CMS -->
<!-- NOTE: This should probably be loaded BEFORE "To customize styles …", but:
Expand Down
7 changes: 3 additions & 4 deletions frontera-cms/templates/home.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{% extends "./fullwidth.html" %}
{% load cms_tags staticfiles %}
{% extends "fullwidth.html" %}
{% load cms_tags static %}

{% block assets_custom %}
{{ block.super }}

<link rel="stylesheet" href="{% static 'frontera-cms/css/build/site.css' %}">
<link rel="stylesheet" href="{% static 'frontera-cms/css/build/site.header.css' %}">
{% include "./assets_custom.html" %}

<style>
/* To simplify calculation of `rem` values */
Expand Down
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 40e4816

Please sign in to comment.