-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtemplate.html
117 lines (101 loc) · 4.16 KB
/
template.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ category }} / Indic (Indian) language computing projects and resources</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Directory of {{ category }} projects and resources in Indic (Indian) language computing." />
<meta name="referrer" content="no-referrer">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="image_src" href="https://indic.page/static/thumb.png" />
<meta property="og:title" content="{{ category }} / Indic language computing resources" />
<meta property="og:description" content="Directory of {{ category }} in Indic language computing." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://indic.page/{{ category | lower }}.html" />
<meta property="og:image" content="https://indic.page/static/thumb.png" />
<link href='https://fonts.googleapis.com/css?family=Fira+Sans:400&display=swap' rel='stylesheet' type='text/css' />
<link href="static/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<nav class="nav">
<div class="wrap">
<header class="header">
<a href="#" id="burger"><span></span><span></span><span></span></a>
<div class="logo">
<a href="/"><img src="static/logo.svg" alt="Indic page" /></a>
<p class="slogan">A directory of Indic (Indian) language computing projects and resources.</p>
</div>
<div class="intro">
<p><input id="search" class="search" type="text" placeholder="Search this page" /></p>
</div>
</header>
</div>
</nav>
<div class="wrap">
<div class="container">
<section class="sidebar" id="sidebar">
<ul class="index">
{% for c in categories %}
<li class="{% if c == category %}selected{% endif %}"><a href="{{ c | lower }}.html">{{ c }} ({{ categories[c] }})</a></li>
{% endfor %}
</ul>
</section>
<section class="content">
{% if ((list_tags | length) + (list_languages | length)) > 0 %}
<a href="#" id="toggle-filters">Filter →</a>
{% endif %}
<section class="section" id="organisations">
<h3>{{ category }} ({{ list | length }})</h3>
<div class="filters" id="filters">
{% if list_languages | length > 1 %}
<div class="languages">
{% for l in list_languages %}
<label id="lang-{{ l }}">
<input type="checkbox" class="filter-language" for="lang-{{ l }}" checked value="{{ l | lower }}" />{{ l }}
</label>
{% endfor %}
<a href="#" class="toggle-filters" data-target="language" data-state="on">← Toggle</a>
</div>
{% endif %}
{% if list_tags | length > 1 %}
<div class="tags">
{% for l in list_tags %}
<label id="tag-{{ l }}">
<input type="checkbox" class="filter-tag" for="tag-{{ l }}" checked value="{{ l | lower }}" />{{ l }}
</label>
{% endfor %}
<a href="#" class="toggle-filters" data-target="tag" data-state="on">← Toggle</a>
</div>
{% endif %}
</div>
<ul id="items">
{% for i in list %}
<li class="item"
data-languages="{% for v in i.languages %}{{ v | lower}}|{% endfor %}"
data-tags="{% for v in i.tags %}{{ v | lower}}|{% endfor %}">
<h2 class="title">
{% for t in i.tags %}
<span class="tag">{{ t }}</span>
{% endfor %}
<a href="{{ i.url }}" class="link">{{ i.name }}</a>
</h2>
<p class="description">{{ i.description }}</p>
<div class="tags">
{% for l in i.languages %}
<span class="tag lang">{{ l }}</span>
{% endfor %}
<a href="" class="reveal">+{{ (i.languages | length) - 5 }} ← View all</a>
</div>
</li>
{% endfor %}
</ul>
</section>
</section><!-- content -->
</div><!-- container -->
<footer>
Edit this page at <a href="https://github.com/knadh/indic.page">knadh/indic.page</a>
— Licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a>.
</footer>
<script src="static/main.js"></script>
</div>
</body>
</html>