Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Support <meta> tag to discover dats #228

Closed
mafintosh opened this issue Dec 22, 2016 · 2 comments
Closed

Support <meta> tag to discover dats #228

mafintosh opened this issue Dec 22, 2016 · 2 comments

Comments

@mafintosh
Copy link
Member

mafintosh commented Dec 22, 2016

Would be super cool if I could add a meta tag to my index.html telling beaker that my website is available as a dat (or the data inside the website).

That way it would be easier to bootstrap new users to download dats.
My suggestion would be be

<meta name="dat" content="deafbeef..." description="Optional description detailing what the dat is">

If beaker sees a tag like that it would show an option to add the dat.

@pfrazee
Copy link
Member

pfrazee commented Dec 22, 2016

Yeah, I'll need to toy with the UX for suggesting the URL, and also think through if there are any security concerns. (Eg would it be possible for user content to have that meta tag and make it appear official.) I should look into how atom/rss has done it in the past.

I'd also suggest we use <link rel=alternate>.

<link rel="alternate" href="dat://.../">

Might also consider rel=canonical

@pfrazee
Copy link
Member

pfrazee commented Feb 6, 2017

This has been solved with #275

@pfrazee pfrazee closed this as completed Feb 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants