-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcontent.html
More file actions
125 lines (114 loc) · 3.85 KB
/
Copy pathcontent.html
File metadata and controls
125 lines (114 loc) · 3.85 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
{% extends "base.html" %}
{% block brand %}{{ brand|e }}{% endblock %}
{% block title %}{{ title|e }}{% endblock %}
{% block rss %}
<link rel="alternate" type="application/atom+xml" title="Atom" href="{{ rss }}" />
{% endblock %}
{% block edit_url %}{{ edit_url }}{% endblock %}
{% block history_url %}{{ history_url }}{% endblock %}
{% macro sidebar_tree(children, parent_opened) %}
{% for child in children %}
{% if child.is_node %}
<li {{ 'style="display: none"' if not parent_opened }} class="parent_li {{ 'active' if child.opened }}">
<span class="treespan" onclick="tree_onclick.call(this, event)"><i class="glyphicon {{ 'glyphicon-minus' if child.opened else 'glyphicon-plus' }}"></i></span>
{% if child.href %}
<a href="{{ relative_base }}{{ child.href }}">{{ child.title|e }}</a>{{ child.encoded_cpp_meta }}
{% else %}
{{ child.title|e }}{{ child.encoded_cpp_meta }}
{% endif %}
<ul>
{{ sidebar_tree(child.children, child.opened) }}
</ul>
</li>
{% else %}
<li {{ 'style="display: none"' if not parent_opened }}>
{% if child.href %}
<a href="{{ relative_base }}{{ child.href }}">{{ child.title|e }}</a>{{ child.encoded_cpp_meta }}
{% else %}
{{ child.title|e }}{{ child.encoded_cpp_meta }}
{% endif %}
</li>
{% endif %}
{% endfor %}
{% endmacro %}
{% block sidebar %}
<div class="tree">
<ul>
{{ sidebar_tree(sidebar.children, True) }}
</ul>
</div>
{% endblock %}
{% block content_header %}
<ol class="breadcrumb">
{% for header in content_header.headers %}
<li {{ 'class="active"' if header.is_active }} itemscope itemtype="http://www.schema.org/SiteNavigationElement">
<span>
{% if not header.is_active and header.href %}
<a href="{{ relative_base }}{{ header.href }}" itemprop="url">
{% if loop.index == 1 %}
<i class="glyphicon glyphicon-home"></i>
{% else %}
<span itemprop="name">{{ header.title|e }}</span>
{% endif %}
</a>
{% else %}
{% if loop.index == 1 %}
<i class="glyphicon glyphicon-home"></i>
{% else %}
<span itemprop="name">{{ header.title|e }}</span>
{% endif %}
{% endif %}
</span>
</li>
{% endfor %}
</ol>
{% endblock %}
{% block project %}
<a href="{{ project_url }}">{{ project_name }}</a>
{% endblock %}
{% block body %}
{{ body|safe }}
{% endblock %}
{% block search %}
{{ search|safe }}
{% endblock %}
{% block analytics %}
{{ analytics|safe }}
{% endblock %}
{% block keywords %}
{{ keywords|safe }}
{% endblock %}
{% block latest_commit_info %}
{% if latest_commit_info %}
<p class="text-right"><small>
最終更新日時:
<span itemprop="datePublished" content="{{ latest_commit_info['last_updated'].strftime('%Y-%m-%dT%H:%M:%S%z') }}">
{{ latest_commit_info['last_updated'].strftime('%Y年%m月%d日 %H時%M分%S秒') }} (JST)
</span>
<br/>
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">{{ latest_commit_info['last_author'] }}</span>
</span>
が更新
</small></p>
{% endif %}
{% endblock %}
{% block mathjax %}
{% if mathjax %}
<script>
window.MathJax = {
tex: {
inlineMath: [ ['$','$'] ],
displayMath: [ ['$$','$$'] ],
processEscapes: true
},
chtml: {
displayAlign: 'left',
displayIndent: '2.0em',
},
};
</script>
<!-- IEはサポートしないので https://polyfill.io/v3/polyfill.min.js?features=es6 は読み込まない -->
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
{% endif %}
{% endblock %}