forked from slackapi/bolt-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.html
More file actions
57 lines (49 loc) · 2.36 KB
/
sidebar.html
File metadata and controls
57 lines (49 loc) · 2.36 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
<div class="sidebar-content">
<div class="logo">
<span class="icon">
<img src="{{ site.url | append: site.baseurl }}/assets/bolt-py-logo.svg"/>
</span>
<span class="name">
Bolt
</span>
<!-- Liquid has no ternary operator, so this is just meant to disclude
english sections since they are at the root URL -->
{% assign localized_base_url = page.lang | prepend: "/" | remove_first: "/en" %}
<span class="version">
{% assign release = site.github.releases | sort: "created_at" | reverse | pop %}
<a href="{{ release[0].html_url }}">{{ release[0].tag_name }}</a>
</span>
</div>
<ul class="sidebar-section">
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/tutorial/getting-started"><li class="title">{{ site.t[page.lang].start }}</li></a>
</ul>
<ul class="sidebar-section">
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#basic"><li class="title">{{ site.t[page.lang].basic }}</li></a>
{% assign basic_sections = site.basic | sort: "order" | where: "lang", page.lang %}
{% for section in basic_sections %}
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#{{ section.slug }}">
<li>{{section.title}}</li>
</a>
{% endfor %}
</ul>
<ul class="sidebar-section">
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#advanced">
<li class="title">{{ site.t[page.lang].advanced }}</li>
</a>
{% assign advanced_sections = site.advanced | sort: "order" | where: "lang", page.lang %}
{% for section in advanced_sections %}
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#{{ section.slug }}">
<li>{{section.title}}</li>
</a>
{% endfor %}
</ul>
<ul class="sidebar-section">
{% assign tutorials = site.tutorials | where: "lang", page.lang | where_exp: "tutorial", "tutorial.order > 0" %}
{% for tutorial in tutorials %}
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/tutorial/{{ tutorial.slug }}">
<li class="title">{{tutorial.title}}</li>
</a>
{% endfor %}
<a href="https://github.com/SlackAPI/bolt-python/blob/master/.github/contributing.md"><li class="title">{{ site.t[page.lang].contribute }}</li></a>
</ul>
</div>