-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathbase.html
63 lines (55 loc) · 2.05 KB
/
base.html
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
<!DOCTYPE html>
<html>
<head>
<title>{{ Configs.ctf_name }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="{{ Configs.ctf_small_icon }}" type="image/x-icon">
<link rel="stylesheet" href="{{ url_for('views.themes', path='css/fonts.css') }}">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('views.themes', path='css/main.css') }}">
<link rel="stylesheet" href="{{ url_for('views.themes', path='css/core.css') }}">
{% block stylesheets %}
{% endblock %}
{{ Plugins.styles }}
<script type="text/javascript">
var init = {
'urlRoot': "{{ request.script_root }}",
'csrfNonce': "{{ Session.nonce }}",
'userMode': "{{ Configs.user_mode }}",
'userId': {{ Session.id }},
'start': {{ Configs.start | tojson }},
'end': {{ Configs.end | tojson }},
'theme_settings': {{ Configs.theme_settings | tojson }}
}
</script>
{{ Configs.theme_header }}
</head>
<body>
<div class="scanline"></div>
{% include "components/navbar.html" %}
<main role="main">
{% block content %}
{% endblock %}
</main>
<footer class="footer">
<div class="container text-center">
<div><a href="https://github.com/hmrserver/CTFd-theme-pixo" class="text-secondary"><small class="text-muted">Theme designed by PRI4CE</small></a></div>
<a href="https://ctfd.io" class="text-secondary">
<small class="text-muted">Powered by CTFd</small>
</a>
</div>
</footer>
<script defer src="{{ url_for('views.themes', path='js/vendor.bundle.js') }}"></script>
<script defer src="{{ url_for('views.themes', path='js/core.js') }}"></script>
<script defer src="{{ url_for('views.themes', path='js/helpers.js') }}"></script>
{% block entrypoint %}
<script defer src="{{ url_for('views.themes', path='js/pages/main.js') }}"></script>
{% endblock %}
{% block scripts %}
{% endblock %}
{{ Plugins.scripts }}
{{ Configs.theme_footer }}
</body>
</html>