-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbase.html
More file actions
executable file
·126 lines (97 loc) · 3.72 KB
/
base.html
File metadata and controls
executable file
·126 lines (97 loc) · 3.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{% load cms_tags static sekizai_tags cache i18n meta %}
{% get_current_language as lang_code %}
<!doctype html>
<html
id="{% block html_page_id %}{% if request.current_page.reverse_id %}page-{{ request.current_page.reverse_id }}{% endif %}{% endblock html_page_id %}"
data-page-template="{{ request.current_page.get_template|cut:'.html' }}"
class="{% block html_page_class %}{% endblock html_page_class %}"
lang="{{ lang_code }}"
>
{# SEE: https://github.com/nephila/django-meta/blob/1.7.0/docs/rendering.rst #}
<head {% meta_namespaces %}>
<!-- Early Site Scripts. -->
{# Debugging Support. #}
{% include "debug_js.html" with settings=settings %}
{# Google Analytics. #}
{% include 'analytics.html' %}
<!-- Metadata. -->
<title>{% block title %}{% page_attribute "page_title" %}{% endblock title %}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Metadata: Social Media. -->
{% block meta %}
{# FAQ: Conditional includes are intentionally verbose #}
{# SEE: https://confluence.tacc.utexas.edu/x/QwI9Cw #}
{% with path="djangocms_page_meta.html" %}{% include path %}{% endwith %}
{% endblock meta %}
{% if settings.TACC_CORE_STYLES_VERSION == 0 %}
<!-- Site Font and/or Custom Font. -->
{# The core site font (can be replaced or accompanied by custom font/s) #}
{% block assets_font %}
{% include 'assets_font.html' %}
{% endblock assets_font %}
<!-- Site Assets. -->
{# The core site assets (can NOT be replaced by custom assets) #}
{% include 'assets_site.html' %}
{% elif settings.TACC_CORE_STYLES_VERSION >= 1 %}
<!-- Core Assets. -->
{% include 'assets_core.html' %}
{% block assets_core_project %}
{% include 'assets_core_cms.html' %}
{% endblock assets_core_project %}
{% endif %}
<!-- Custom Assets. -->
{% block assets_custom %}
{% include 'assets_custom.html' %}
{% endblock assets_custom %}
<!-- Ad Hoc Styles. -->
{% block css %}{% endblock %}
{% render_block "css" %}
</head>
<body class="{% block page_type_class %}{% endblock page_type_class %}">
{% cms_toolbar %}
<header>
{% include "header.html" %}
</header>
<main id="cms-content">
{% block content %}
{# To hide extra space that a nested/redundant Container would add #}
<style type="text/css">
#cms-content-container.container .container { padding-inline: 0; }
</style>
{# To wrap content in Container without relying on CMS editor #}
<div class="container" id="cms-content-container">
{% block breadcrumbs %}
{% include "nav_cms_breadcrumbs.html" %}
{% endblock breadcrumbs %}
{% block cms_content %}
{% placeholder "content" %}
{% endblock cms_content %}
{# To isolate content editor cannot change layout of (e.g. Blog) #}
{% block app_content %}{% endblock app_content %}
</div>
{% endblock content %}
</main>
<footer class="c-footer s-footer">
{% block footer %}
{% static_placeholder "footer-content" or %}
<p>©{% now "Y" %} Texas Advanced Computing Center, The University of Texas at Austin, Office of the Vice President for Research.</p>
{% endstatic_placeholder %}
{% endblock footer %}
</footer>
{% if settings.TACC_CORE_STYLES_VERSION == 0 %}
<!-- Site Assets (Delayed). -->
{% include 'assets_site_delayed.html' %}
{% elif settings.TACC_CORE_STYLES_VERSION >= 1 %}
<!-- Core Assets (Delayed). -->
{% include 'assets_core_delayed.html' %}
{% endif %}
<!-- Custom Assets (Delayed). -->
{% block assets_custom_delayed %}
{% include 'assets_custom_delayed.html' %}
{% endblock assets_custom_delayed %}
<!-- Ad Hoc Scripts. -->
{% block js %}{% endblock %}
{% render_block "js" %}
</body>
</html>