-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (59 loc) · 1.92 KB
/
index.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
---
title:
---
<p style="text-align: center; margin: 1em">
這裡收集了一些採用<a href="http://www.creativecommons.org.tw/explore">創用CC</a>授權釋出的 EPUB 電子書。
<br>
下載後可以在各種裝置上使用支援的應用程式閱覽。
</p>
<p style="margin: -1em 1em 0 ; text-align: right">
<a href="about.html">了解更多</a>
</p>
<hr>
{% if site.posts != empty %}
<h2>最新消息</h2>
<a href="/feeds.xml">FEED</a>
<ul>
{% for post in site.posts limit:3 %}
<li>
<a href="{{ post.url}}">
{{ post.title }}
<time>{{ post.date | date: "%Y-%m-%d" }}</time>
</a>
</li>
{% endfor %}
</ul>
<hr>
{% endif %}
<h2>書庫收藏</h2>
<a href="/opds.xml">CATALOG</a>
<ul>
{% assign books = site.books | sort: 'date' %}
{% for book in books reversed %}
<li>
<article>
<header>
{% if book.cover %}<img src="{{ book.cover }}" alt="{{ book.title }}" />{% else %}<h3>{{ book.title }}</h3>{% endif %}
<span>{{ book.author }}</span>
{% if book.date %}<time>{{ book.date | date: "%Y-%m-%d" }}</time>{% endif %}
</header>
<p>
{{ book.info }}
</p>
<footer>
{% include license.html license=book.license %}
<a href="{{ book.download }}" title="EPUB" download>
<svg fill="currentColor" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
</svg>
</a>
<a href="{{ book.link }}">
<svg fill="currentColor" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>
</svg>
</a>
</footer>
</article>
</li>
{% endfor %}
</ul>