Skip to content

Commit

Permalink
feat(fp-1439): extend base.html to load annual CSS
Browse files Browse the repository at this point in the history
Requires: TACC/Core-CMS#41fc8f6
  • Loading branch information
wesleyboar committed May 16, 2022
1 parent 5aaf79b commit 048eb81
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions texascale-org/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends "base.html" %}
{% load staticfiles get_url_match %}

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

{% with path|get_url_match:"/20\d\d/" as year_slug %}
{% if year_slug %}
{% with path = "texascale-org/css/build/site."|add:year_slug:add|".css" %}
<link rel="stylesheet" href="{% static path %}">
{% endwith %}
{% endif %}
{% endwith %}
{% endblock assets_custom %}
2 changes: 1 addition & 1 deletion texascale-org/templates/fullwidth.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "./base.html" %}
{% load cms_tags staticfiles %}

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

0 comments on commit 048eb81

Please sign in to comment.