Jekyll and Dat

Inspired by Dat Night, today I’m working on making my site available on the Dat network. For my jekyll-indieweb site, the main idea is that I should be able to do

jekyll build

dat share _site

which should mostly get me there. I also want to add a DNS txt record and it seems I need to update the javascript my site includes to bring in the webmentions my site has collected from my webmention provider.

With this setup, even if my hosting provider goes down, Beaker browser will be able to browse my site.

Update 13:28 PST: DNS now serving DAT via TXT record:

tbbrown@zero:~$ dig TXT

; <<>> DiG 9.11.4-3ubuntu5.4-Ubuntu <<>> TXT
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47409
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

; EDNS: version: 0, flags:; udp: 65494

;; ANSWER SECTION: 299	IN	TXT	"datkey=b8ffbddeac2c7eec8b60f1d33774f515f47affe4bef0ad6fec15bc0c6cb1ad78"

;; Query time: 59 msec
;; WHEN: Sun Jun 30 15:23:23 CDT 2019
;; MSG SIZE  rcvd: 139

Update 15:50 PST: Dats on a Server documents how to keep a Dat resource available independent of your laptop.