-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.html
37 lines (34 loc) · 993 Bytes
/
categories.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
---
layout: normal
title: Categories
color: "#ff00b6"
bg_url: "/assets/images/shapes/Form2_pink_transparent.svg"
bg_position: "70vw -40vh"
---
<header class="content-siteheader">
<h1>{{ page.title }}</h1>
</header>
{% for cat in site.cats %}
<div class="accordion">
<a class="accordion-btn {% if forloop.first %}active{% endif %}" href="#">
<span><b>{{ cat.title }}</b> <span>{{ cat.subtitle }}</span></span>
<span class="accordion-indicator"></span>
</a>
<div class="accordion-panel colored">{{ cat.content | markdownify }}</div>
</div>
{% endfor %}
<!--
<div class="content-footer">
<p><strong>But That's Not All!</strong></p>
<p><strong>Check Back <mark class="accent-tc">Soon</mark> For More Categories.</strong></p>
</div>
-->
<script>
var accs = document.getElementsByClassName("accordion-btn");
for (var i = 0; i < accs.length; i++) {
accs[i].addEventListener("click", function(event) {
event.preventDefault();
this.classList.toggle("active");
});
}
</script>