blob: c08004328c5b83323a5a062d4ae73ea854272451 (
plain)
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
|
{% extends 'bootstrap3/bootstrap3.html' %}
{% comment %}
'base.html' for skaschool
based on 'django-bootstrap3'
Weitian LI <liweitianux@gmail.com>
2014/04/19
{% endcomment %}
{% load bootstrap3 %}
{% load url from future %}
{% load staticfiles %}
{# title #}
{% block bootstrap3_title %}
{% block title %}
{% block pagetitle %}(pagetitle){% endblock %} |
{% block sitetitle %}{% include 'sitetitle.txt' %}{% endblock %}
{% endblock %}
{% endblock %}
{# bootstrap3_extra_head #}
{% block bootstrap3_extra_head %}
{# custom css #}
{% block custom_css %}
<link href="{% static 'css/base.css' %}" rel="stylesheet">
{# css_extra #}
{% block css_extra %}{% endblock %}
{% endblock %} {# custom_css #}
{# add favicon #}
{% block favicon %}
{% include 'favicon.html' %}
{% endblock %}
{# add meta information #}
{% block metainfo %}
{% include 'metainfo.html' %}
{% endblock %}
{% endblock %}
{# body #}
{% block bootstrap3_content %}
{# add block page #}
{% block page %}
{# message #}
{% block message %}
{# show 'django.contrib.messages' in Bootstrap alert containers #}
{% bootstrap_messages %}
{% endblock %} {# message #}
{# header #}
{% block header %}
<header role="banner">
{# navigation bar #}
{% block navbar %}
{% include 'navbar.html' %}
{% endblock %} {# navbar #}
{# header_extra #}
{% block header_extra %}{% endblock %}
</header>
{% endblock %} {# header #}
{# main #}
{% block main %}
<main role="main">
{# sidebar #}
{% block sidebar %}{% endblock %}
{# content #}
{% block content %}{% endblock %}
</main>
{% endblock %} {# main #}
{# footer #}
{% block footer %}{% endblock %}
{% endblock page %} {# page #}
{% endblock %} {# bootstrap3_content #}
{# bootstrap3_extra_scripts #}
{% block bootstrap3_extra_script %}
{# extra javascript files #}
{% block js_extra %}{% endblock %}
{# custom script (e.g. built-in js code) #}
{% block custom_script %}{% endblock %}
{% endblock %} {# bootstrap3_extra_script #}
{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}
|