···1111no buttons yet, <a href="/upload">post the first!</a>
1212{{end}}
1313</div>
1414+<div>
1415<a href="/upload">upload a button!</a>
1616+</div>
1717+<div>
1818+<a href="/reference">reference</a>
1919+</div>
1520{{end}}
+30
tmpl/reference.html
···11+{{define "content"}}
22+<p>
33+the most convenient api for <a href="/">88x31.store</a> is <code>/embed/liked-by?did=</code>
44+</p>
55+<p>
66+ this returns neat server-side-rendered html for use esp. in an iframe, like so:
77+ <code>
88+ <iframe src="<a href="https://88x31.store/embed/liked-by?did=did:plc:25z6ogppprfvijcnqo2fsfce">https://88x31.store/embed/liked-by?did=did:plc:25z6ogppprfvijcnqo2fsfce</a>"></iframe>
99+ </code>
1010+ which renders as
1111+</p>
1212+<iframe src="https://88x31.store/embed/liked-by?did=did:plc:25z6ogppprfvijcnqo2fsfce"></iframe>
1313+<p>
1414+ of course this hotlinks the buttons. if you don't know what's what this is perfectly fine!
1515+</p>
1616+<p>
1717+ if you expect a **lot** of traffic it's still ok, but please pay me in exposure or something lol
1818+</p>
1919+<p>
2020+ you can also get and host the buttons yourself, either once from me using the getButton lexicon, or directly from the PDS
2121+</p>
2222+<p>
2323+ if you're into atproto or want more flexibility with layout, you can also use the getLikedButtons lexicon to get JSON for a user's likes, like so:
2424+ <code>
2525+ <iframe src="<a href="https://88x31.store/xrpc/store.88x31.getLikedButtons?did=did:plc:25z6ogppprfvijcnqo2fsfce">https://88x31.store/xrpc/store.88x31.getLikedButtons?did=did:plc:25z6ogppprfvijcnqo2fsfce</a>"></iframe>
2626+ </code>
2727+ which renders as
2828+</p>
2929+<iframe src="https://88x31.store/xrpc/store.88x31.getLikedButtons?did=did:plc:25z6ogppprfvijcnqo2fsfce"></iframe>
3030+{{end}}