-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy patharchitecture.html
90 lines (85 loc) · 3.06 KB
/
architecture.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
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
---
layout: default
key: architecture
tutorial: list
title: Architecture
---
<div class="container">
<div class="page-wrapper chiller-theme">
<!-- sidebar-wrapper, must after subject is assigned -->
{% assign subject = site.data.category %}
{% assign postings = site.algorithm | concat: site.programming | concat: site.architecture | concat: site.cloud | concat: site.tutorial | sort: 'index' %}
{% include sidebar.html %}
<!-- current category -->
{% assign firstlevel = site.data.category %}
{% for category in firstlevel.categories %}
{% if category.key == 'architecture' %}
{% assign subject = category %}
{% endif %}
{% endfor %}
{% assign postings = site.architecture | sort: 'index'%}
<!-- page-content" -->
<main class="page-content">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">
<h1 class="page-header">{{subject.name}} <small>{{subject.description}}</small></h1>
<nav aria-label="breadcrumb" id="bread-crumb"></nav>
<div id="category-list" style="display: none"></div>
<div id="category-list2" style="display: none"></div>
<dl class="dl-unsur" id="posting-list"/>
</div>
<div class="col-md-1"></div>
</div>
</main>
<input type="hidden" id="subject" name="subject" value="{{page.key}}">
</div>
</div>
<script>
window.store = {
{% for post in postings %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"subcategory": "{{ post.subcategory | xml_escape }}",
"url": "{{ post.url | xml_escape }}",
"index": "{{ post.index | xml_escape }}",
"excerpt": "{{ post.excerpt | newline_to_br | strip_newlines | replace: '<br />', ' ' | strip_html | strip | truncatewords: 30 }}",
"tags": "{{ post.tags | join: ", "}}",
"date": "{{ post.date | date_to_string}}",
"draft": {{ post.draft | xml_escape }}
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
};
{% assign subject = site.data.category %}
// mapping of category and image
window.image = {
{% for category in subject.categories %}
{% for subcategory in category.subcategories %}
"{{subcategory.subcategory}}": "{{ subcategory.image }}",
{% endfor %}
{% endfor %}
};
window.category = {
{% for category in subject.categories %}
"{{category.category}}": "{{ category.name }}",
{% endfor %}
};
window.subcategory = {
{% for category in subject.categories %}
{% for subcategory in category.subcategories %}
"{{subcategory.subcategory}}": "{{ subcategory.name }}",
{% endfor %}
{% endfor %}
};
window.parentcategory = {
{% for category in subject.categories %}
{% for subcategory in category.subcategories %}
"{{subcategory.subcategory}}": "{{ category.category }}",
{% endfor %}
{% endfor %}
};
// tutorial category
//window.tc = {{ site.data.tutorial | replace: '=>', ':'}};
</script>
<script src="/assets/js/navigate.js"></script>