diff --git a/texascale-org/templates/base.html b/texascale-org/templates/base.html new file mode 100644 index 00000000..df307666 --- /dev/null +++ b/texascale-org/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-org/templates/fullwidth.html b/texascale-org/templates/fullwidth.html index 74250fc7..81d2040f 100644 --- a/texascale-org/templates/fullwidth.html +++ b/texascale-org/templates/fullwidth.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "./base.html" %} {% load cms_tags staticfiles %} {% block title %}{% page_attribute "page_title" %}{% endblock title %}