-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fp-1439): extend base.html to load annual CSS
Requires: TACC/Core-CMS#41fc8f6
- Loading branch information
1 parent
5aaf79b
commit 048eb81
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters