forked from opensearch-project/project-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
source.html
49 lines (45 loc) · 1.33 KB
/
source.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
---
layout: default
---
{% assign primary_title = site.headings.source %}
{% assign layout_class = 'sidebar-right' %}
{% capture content %}
{{ content }}
<dl class="pinned-repos">
{% assign pinned = site.data.repos | where_exp:"repo", "repo.pinned == true" %}
{% for repo in pinned %}
{%- include repo.html repo=repo %}
{% endfor %}
</dl>
<dl class="repos">
{% assign unpinned = site.data.repos | where_exp:"repo", "repo.pinned != true" %}
{% for repo in unpinned %}
{%- include repo.html repo=repo %}
{% endfor %}
</dl>
{% endcapture %}
{% capture content_related %}
<div role="complementary">
{% assign tags = '' | split: '' %}
{% for repo in site.data.repos %}
{% for category in repo.categories %}
{% unless tags contains category %}
{% assign tags = tags | push: category %}
{% endunless %}
{% endfor %}
{% endfor %}
<div>
<h3>Filter</h3>
<div class="feature-content">
<div class="tag-picker">
{% for tag in tags %}
<span class="tag-pick" data-show-tag="repo-category-{{tag}}" data-toggled-off="tag-off">{{ tag }}</span>
{% endfor %}
</div>
</div>
</div>
{% include beta_feedback.html %}
</div>
{% endcapture %}
{% include copy_banner.html %}
{% include base_3col.html %}