-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (73 loc) · 2.69 KB
/
index.html
File metadata and controls
74 lines (73 loc) · 2.69 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ghost Publication Directory Table</title>
<link rel="stylesheet" href="assets/css/directory-table.css">
</head>
<body>
<main>
<h1>Ghost Publication Directory Table</h1>
<p>
This repository contains a lightweight, client-side sortable table that you can embed into
a Ghost publication using a custom HTML card or code injection. When working inside the Ghost
editor, drop the <div class="directory-table-wrap">...</div> block into an HTML line block
(HTML card) so the markup renders correctly. Replace the sample rows with your own content and
drop the markup anywhere you need a directory-style listing.
</p>
<div class="directory-table-wrap">
<table class="directory-table" id="ghost-directory" data-sortable-table>
<caption>Sample listing – replace with your own Ghost publications.</caption>
<colgroup>
<col class="col-year">
<col class="col-title">
<col class="col-focus">
<col class="col-link">
</colgroup>
<thead>
<tr>
<th scope="col" data-sort-type="number">Year</th>
<th scope="col">Publication</th>
<th scope="col">Focus</th>
<th scope="col">Link</th>
</tr>
</thead>
<tbody>
<tr>
<td>2024</td>
<td>Starter Weekly</td>
<td>Newsletters</td>
<td><a href="https://example.com/starter-weekly" rel="noopener">View publication</a></td>
</tr>
<tr>
<td>2022</td>
<td>Creator Stories</td>
<td>Case Studies</td>
<td><a href="https://example.com/creator-stories" rel="noopener">View publication</a></td>
</tr>
<tr>
<td>2021</td>
<td>Independent Voices</td>
<td>Editorial</td>
<td><a href="https://example.com/independent-voices" rel="noopener">View publication</a></td>
</tr>
<tr>
<td>2023</td>
<td>Ghost Builders</td>
<td>Product Updates</td>
<td><a href="https://example.com/ghost-builders" rel="noopener">View publication</a></td>
</tr>
<tr>
<td>2020</td>
<td>Community Dispatch</td>
<td>Behind the Scenes</td>
<td><a href="https://example.com/community-dispatch" rel="noopener">View publication</a></td>
</tr>
</tbody>
</table>
</div>
</main>
<script src="assets/js/sortable-table.js"></script>
</body>
</html>