~alcinnz/Hearth

ref: bb4e369e919c008e989e5981397eceda6931b5f2 Hearth/tpl/index.html -rw-r--r-- 1.4 KiB
bb4e369e — Adrian Cochrane Add tagging & bookmark-editting support! 11 months ago
                                                                                
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
<!DOCTYPE html>
<html>
<head>
  <meta charset=utf-8 />
  <title>🏠️{{ _["Homepage"] }}</title>
</head>
<body>
  <form method="POST">
    <p><input type="url" name="url" placeholder="{{ _['Web Address'] }}" required /></p>
  </form>
  <main>
    <section>
      <h1><a href="history.html">⏳️{{ _["History"] }}</a></h1>
      <ul>{% for topsite in tops %}
        <li><a href="{{ topsite.href }}" title="{{ link.title }}">{{ topsite.label }}</a></li>
      {% endfor %}</ul>
    </section>
    {% if D.readingList %}<section>
      <h1><a href="toread.html">📚️{{ _["Reading List"] }}</a></h1>
      <ul>{% for link in D.readingList|slice(0, 20) %}
        <li><a href="/read/{{ link.href }}" title="{{ link.title }}">{{ link.label }}</a></li>
      {% endfor %}</ul>
    </section>{% endif %}
    {% if D.favs %}<section>
      <h1><a href="bookmarks/">⭐️{{ _["Favourites"] }}</a></h1>
      <ul>{% for link in D.favs|sortByVisits|slice(0, 20) %}
        <li><a href="{{ link.href }}" title="{{ link.title }}">{{ link.label }}</a></li>
      {% endfor %}</ul>
    </section>{% endif %}
    {% if tags %}<section>
      <h1>📑️{{ _["Tags"] }}</h1>
      <ul>{% for tag in alltags|slice(0, 20) %}
        <li><a href="/bookmarks/?tag={{ tag.label|urlencode }}"
            title="{{ _['Favourites tagged by:' ] }} {{ tag}}">{{ tag.label }}</a>
          {{ tag.count }}</li>
      {% endfor %}</ul>
    </section>{% endif %}
  </main>
</body>
</html>