~alcinnz/Hearth

ref: 9e6825a2aaa3509e098aab05258c4b6f49736e5e Hearth/tpl/index.html -rw-r--r-- 1.1 KiB
9e6825a2 — Adrian Cochrane Basic favourites support, commit missing files. 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
<!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 %}
  </main>
</body>
</html>