Skip to content

Instantly share code, notes, and snippets.

@barnabywalters
Created May 18, 2021 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barnabywalters/6d51219e7b73f6c8adafd9a423147c59 to your computer and use it in GitHub Desktop.
Save barnabywalters/6d51219e7b73f6c8adafd9a423147c59 to your computer and use it in GitHub Desktop.
mf2 Album Markup
<div class="h-entry">
<h1 class="p-name">Album Name</h1>
<time class="dt-published">2021-02-12</time>
<img class="u-photo" src="cover.png" alt="" />
<p class="p-summary">Summary of what the ablum is</p>
<div class="e-content">
<p>Lengthier description of the album, with embedded content</p>
</div>
<div class="u-audio h-entry" id="track1">
<a class="p-name u-url" href="track1">Track 1</a>
<audio class="u-audio" src="track1.mp3" />
</div>
<div class="u-audio h-entry" id="track2">
<a class="p-name u-url" href="track2">Track 2</a>
<audio class="u-audio" src="track2.mp3" />
</div>
</div>
{
"items": [
{
"type": [
"h-entry"
],
"properties": {
"name": [
"Album Name"
],
"summary": [
"Summary of what the ablum is"
],
"photo": [
{
"value": "cover.png",
"alt": ""
}
],
"published": [
"2021-02-12"
],
"content": [
{
"html": "<p>Lengthier description of the album, with embedded content<\/p>",
"value": "Lengthier description of the album, with embedded content"
}
],
"audio": [
{
"type": [
"h-entry"
],
"properties": {
"name": [
"Track 1"
],
"url": [
"track1"
],
"audio": [
"track1.mp3"
]
},
"id": "track1",
"value": "track1"
},
{
"type": [
"h-entry"
],
"properties": {
"name": [
"Track 2"
],
"url": [
"track2"
],
"audio": [
"track2.mp3"
]
},
"id": "track2",
"value": "track2"
}
]
}
}
],
"rels": {},
"rel-urls": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment