files/archive.tmpl.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
{{ define "archive" }}
{{ template "head" . }}
{{ template "nav" . }}
{{ $length := len .Data }} {{ if eq $length 0 }}
{{ if .LoggedIn }}
<p>
you haven't archived anything yet. :(
use the "archive" button to archive posts that you like!
vore's archive system is unique:
when you click the "archive" button, vore will:
- submit an https://archive.org request on your behalf for the linked page
- store the article + archive link together
this ensures that all archived articles will remain
accessible forever!
it also means that you may archive the same article
more than once, if you'd like!
currently, archived items cannot be deleted.
</p>
{{ end }}
{{ end }}
<ul>
{{ range .Data }}
<li>
<a href="{{ .ItemURL }}">{{ .ItemTitle }}</a>
<span class=puny>
(<a href="{{ .ArchiveURL }}">archived</a>)
</span>
<br>
<span class=puny>archived {{ .CreatedAt }} via <a href="//{{ .ItemURL | printDomain }}">{{ .ItemURL | printDomain }}</a></span>
</li>
{{ end }}
</ul>
{{ template "tail" . }}
{{ end }}