This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathperson.html
150 lines (150 loc) · 4.1 KB
/
person.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!doctype html>
<html>
<head>
<title>Person (unwalled.garden/person) | Unwalled.Garden</title>
<meta charset="utf-8">
<link rel="stylesheet" href="/assets/styles.css">
<link rel="stylesheet" href="/assets/syntax.css">
</head>
<body>
<h1><a href="/">Unwalled.Garden</a></h1>
<a class="nav-open"><img src="/assets/hamburger.svg"></a>
<div class="notice">Status: DRAFT. Part of the upcoming <a href="https://beakerbrowser.com">Beaker Browser</a> 0.9 release.</div>
<div class="page">
<nav>
<a class="nav-close"><img src="/assets/hamburger.svg"></a>
<ul>
<li>Docs
<ul>
<li><a href="/docs/how-does-it-work">How it works</a><ul>
<li><a href="/docs/common-fields">Common fields</a></li>
<li><a href="/docs/browser-integration">Browser integration</a></li>
</ul></li>
<li><a href="/docs/dat-primer">Dat protocol</a><ul>
<li><a href="/docs/mounts">Mounts</a></li>
</ul></li>
<li><a href="/docs/why-not-rdf">Why not RDF?</a></li>
</ul>
</li>
</ul>
<ul>
<li>APIs
<ul>
<li><a href="/api/bookmarks">Bookmarks</a></li>
<li><a href="/api/comments">Comments</a></li>
<li><a href="/api/follows">Follows</a></li>
<li><a href="/api/library">Library</a></li>
<li><a href="/api/profiles">Profiles</a></li>
<li><a href="/api/statuses">Statuses</a></li>
<li><a href="/api/reactions">Reactions</a></li>
<li><a href="/api/votes">Votes</a></li>
</ul>
</li>
</ul>
<ul>
<li>Schemas
<ul>
<li><a href="/bookmark">Bookmark</a></li>
<li><a href="/comment">Comment</a></li>
<li><a href="/follows">Follows</a></li>
<li><a href="/links">Links</a></li>
<li><a href="/person">Person</a></li>
<li><a href="/status">Status</a></li>
<li><a href="/reaction">Reaction</a></li>
<li><a href="/vote">Vote</a></li>
<li>dir<ul>
<li><a href="/dir/data">Data</a></li>
<li><a href="/dir/refs">Refs</a></li>
</ul></li>
</ul>
</li>
</ul>
<ul>
<li>Links
<ul>
<li><a href="https://github.com/beakerbrowser/unwalled.garden">Github Repo</a></li>
<li><a href="https://beakerbrowser.com">Beaker Browser</a></li>
<li><a href="https://dat.foundation">Dat protocol</a></li>
</ul>
</li>
</ul>
</nav>
<main><h2>Person <code>unwalled.garden/person</code></h2>
<hr>
<ul>
<li>Site type</li>
<li><strong>Description</strong>: A human user.</li>
<li><strong>Path</strong>: <code>/</code></li>
</ul>
<hr>
<h4>Dat.json fields</h4>
<p>The <code>/dat.json</code> file has the following fields:</p>
<table>
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>type</code></td>
<td><code>unwalled.garden/person</code></td>
</tr>
<tr>
<td><code>title</code></td>
<td>The person’s name</td>
</tr>
<tr>
<td><code>description</code></td>
<td>The person’s short bio</td>
</tr>
</tbody>
</table>
<p>Example:</p>
<pre><code class="language-json">{
<span class="hljs-attr">"type"</span>: <span class="hljs-string">"unwalled.garden/person"</span>,
<span class="hljs-attr">"title"</span>: <span class="hljs-string">"Alice"</span>,
<span class="hljs-attr">"description"</span>: <span class="hljs-string">"Advocate of the free and open web"</span>,
}
</code></pre>
<h4>File structure</h4>
<table>
<thead>
<tr>
<th>Path</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>/dat.json</code></td>
<td>Standard dat.json file</td>
</tr>
<tr>
<td><code>/thumb.(png|jpg|jpeg)</code></td>
<td>Profile picture</td>
</tr>
<tr>
<td><code>/.data</code></td>
<td><a href="/dir/data">Data directory</a></td>
</tr>
<tr>
<td><code>/.refs</code></td>
<td><a href="/dir/refs">Refs directory</a></td>
</tr>
</tbody>
</table>
</main>
</div>
</body>
<script type="module" src="/assets/admin.js"></script>
<script>
document.querySelector('.nav-open').addEventListener('click', e => {
document.querySelector('nav').classList.add('show')
})
document.querySelector('.nav-close').addEventListener('click', e => {
document.querySelector('nav').classList.remove('show')
})
</script>
</html>