www.berty.tech icon indicating copy to clipboard operation
www.berty.tech copied to clipboard

Host on IPFS

Open moul opened this issue 4 years ago • 8 comments

moul avatar Apr 06 '20 16:04 moul

I will collect some experience with my own blog. Your site is more complex but maybe I can help a bit.

fte378 avatar Apr 09 '20 21:04 fte378

Is using ipns acceptable? The drawback is that during the propagation links may be not working or assets are not present. The other method would be updating your DNS on every publish step.

fte378 avatar Apr 10 '20 20:04 fte378

@Jorropo is working on a PoC -> https://jorropo.ovh/ipns/k2k4r8pdq8w3382yrqib8vpt60v0282nzsmv17qp4rtxg1h8lca76tlv/

There are various issues:

  • font-awesome is configured to run on certain hostname only -> is there a way to fallback nicely?
  • some images are loaded with a bad path Screenshot - Manfred 2020-09-08 at 09 53 52
  • some content are hardcoded to be served by berty.tech Screenshot - Manfred 2020-09-08 at 09 54 18

probably other things I missed

@cdeleeuwe can you tell us what you think?

moul avatar Sep 08 '20 07:09 moul

@Jorropo above PR fixed some relative urls. Hopefully it will now work without errors :)

cdeleeuwe avatar Sep 08 '20 12:09 cdeleeuwe

@cdeleeuwe seems, to work fine, only font awesome is left to tackle (I'll take a look later). :)

Jorropo avatar Sep 08 '20 12:09 Jorropo

@Jorropo awesome :). From what I see, font awesome is loading OK.. image

Just made a PR (#153) to fix the homepage Lottie animation relative url. After that I think there might still be some assets missing that are used in the style.scss file. These are are a bit tricky to make relative paths, since Hugo only renders the SASS once, so is not aware of the current path. A possible workaround would be to move it the partial/head.html file (similar as what is done with the fonts).

cdeleeuwe avatar Sep 08 '20 13:09 cdeleeuwe

@Jorropo awesome :). From what I see, font awesome is loading OK.. image

Just made a PR (#153) to fix the homepage Lottie animation relative url. After that I think there might still be some assets missing that are used in the style.scss file. These are are a bit tricky to make relative paths, since Hugo only renders the SASS once, so is not aware of the current path. A possible workaround would be to move it the partial/head.html file (similar as what is done with the fonts).

I can't reproduce it either.

Jorropo avatar Sep 08 '20 13:09 Jorropo

Now working on higher priority items. This could be a good project for someone who wants to experiment with IPFS. Backlog for now.

jefft0 avatar Mar 15 '24 15:03 jefft0