We've been finding ourselves needing a lot of links on Dat sites. For instance, we want a way to specify the issues board for an app, or a place to pay authors.
We're thinking about adding a links
field to the dat.json to keep this unified.
Approach 1, as an array:
{
"title": "Beaker browser homepage",
"links": [
{"rel": "payment", "href": "https://opencollective.com/beaker"},
{"rel": "author", "href": "dat://taravancil.com", "title": "Tara Vancil"},
{"rel": "author", "href": "dat://paulfrazee.com", "title": "Paul Frazee"},
{"rel": "https://archive.org/services/purl/purl/bll/resource/issues-board", "href": "https://github.com/beakerbrowser/beakerbrowser.com/issues"}
]
}
Approach 2, as an object with the "rel" as key:
{
"title": "Beaker browser homepage",
"links": {
"payment": "https://opencollective.com/beaker",
"author": [
{"href": "dat://taravancil.com", "title": "Tara Vancil"},
"dat://paulfrazee.com"
],
"https://archive.org/services/purl/purl/bll/resource/issues-board": "https://github.com/beakerbrowser/beakerbrowser.com/issues"
}
}
Any opinions?
+1