-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathquestions.vto
35 lines (34 loc) · 914 Bytes
/
questions.vto
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
---
title: Questions
description: From time to time, I'll discover something I want to remember and jot it down here
aliases:
- /notes/
---
{{ layout "core.vto" }}
<main>
<header>
<h1>Answers to questions I'll soon forget</h1>
<form id="search" role="search">
<label for="search-input">I'm curious about</label>
<input
disabled
type="search"
id="search-input"
class="search-input"
/>
<label id="error-output"></label>
</form>
</header>
<ul>
{{ for item of search.pages("category=questions", "order=asc title=asc") }}
<li id="{{ item.slug }}" class="question">
<a href="{{ item.url }}">{{ item.title }}</a>
{{ for tag of item.tags }}
<span style="color: {{ tag |> taghash }}">#{{ tag }}</span>
{{ /for }}
</li>
{{ /for }}
</ul>
</main>
<script src="/js/question-search.js"></script>
{{ /layout }}