diff --git a/texascale-org/templates/djangocms_blog/base.html b/texascale-org/templates/djangocms_blog/base.html new file mode 100644 index 00000000..49ef84df --- /dev/null +++ b/texascale-org/templates/djangocms_blog/base.html @@ -0,0 +1,19 @@ +{# https://github.com/TACC/Core-CMS/blob/main/taccsite_cms/templates/djangocms_blog/base.html #} +{% extends "djangocms_blog/base.html" %} +{% load static get_url_match %} + +{% block content_assets %} + {{ block.super }} + + {% with year_slug=request.path|get_url_match:"/(20\d\d)/" %} + {% if year_slug %} + {% with path="texascale-org/css/build/app.blog."|add:year_slug|add:".css" %} + + {% endwith %} + {% else %} + {% if settings.DEBUG %} + + {% endif %} + {% endif %} + {% endwith %} +{% endblock content_assets %} diff --git a/texascale_cms/templates/base.html b/texascale_cms/templates/base.html new file mode 100644 index 00000000..df307666 --- /dev/null +++ b/texascale_cms/templates/base.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% load staticfiles get_url_match %} + +{% block assets_custom %} + {{ block.super }} + + {% with year_slug=request.path|get_url_match:"/(2019|202\d)/" %} + {% if year_slug %} + {% with src="texascale-org/css/build/site."|add:year_slug|add:".css" %} + + {% endwith %} + {% else %} + {% if settings.DEBUG %} + + {% endif %} + {% endif %} + {% endwith %} +{% endblock assets_custom %} diff --git a/texascale_cms/templates/fullwidth.html b/texascale_cms/templates/fullwidth.html index 7afd9ae1..b72c0aec 100644 --- a/texascale_cms/templates/fullwidth.html +++ b/texascale_cms/templates/fullwidth.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "./base.html" %} {% load cms_tags static %} {% block title %}{% page_attribute "page_title" %}{% endblock title %}