Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Update config for current iteration#9

Closed
gsf wants to merge 1 commit intomultiformats:masterfrom
gsf:current-site-path
Closed

Update config for current iteration#9
gsf wants to merge 1 commit intomultiformats:masterfrom
gsf:current-site-path

Conversation

@gsf
Copy link
Copy Markdown

@gsf gsf commented Oct 27, 2016

This should fix the stylesheet hrefs, etc. Do these config values and the README link need to be updated with every commit? Should they point at http://multiformats.io or an ipns URL instead?

@gsf
Copy link
Copy Markdown
Author

gsf commented Oct 28, 2016

This is following up on #6.

@victorb
Copy link
Copy Markdown
Member

victorb commented Oct 29, 2016

I'm not sure why the hash of the site is in the configuration, we should be using relative links so it doesn't matter where the site lives. Maybe @RichardLitt knows more about why

@daviddias
Copy link
Copy Markdown
Member

daviddias commented Oct 30, 2016

It's because of jekyll, relative links don't play well when using DNSLink and loading from hash at the same time.

For more notes, see: ipfs/notes#66

As another note: http://multiformats.io/ doesn't load for me

@RichardLitt
Copy link
Copy Markdown
Member

@diasdavid is right. If we can find a way to not include a hash, it would be better; I wasn't able to find one for Jekyll. I'd suggest porting the whole thing over to Hugo.

@victorb
Copy link
Copy Markdown
Member

victorb commented Oct 31, 2016

@diasdavid @RichardLitt this shouldn't be any problem. I need to dig deeper but what I've done in the past when it comes to build static websites to works anywhere, is to link to the page, coming from above.

I made a example here: https://ipfs.io/ipfs/Qmb7SBnCG2buyEM5ZkFtSwXwYxCtwJVWFf6tSEJg31ud7n

This website works no matter where you are visiting it, without having any reference to the hash.

@RichardLitt
Copy link
Copy Markdown
Member

That hash isn't resolving: did you pin it?

@gsf
Copy link
Copy Markdown
Author

gsf commented Nov 4, 2016

http://multiformats.io doesn't load because the stylesheets aren't resolving. Hence this patch.

@victorb
Copy link
Copy Markdown
Member

victorb commented Nov 8, 2016

@RichardLitt should be working, try again.

@RichardLitt
Copy link
Copy Markdown
Member

You sure? Tried to run it locally, got this:

15:45:43.722 ERROR core/serve: Path Resolve error: Failed to get block for QmWsdJDWoKKohR8FaxRRZgovKpfFfQ7KfKkbFL92geeNoa: context canceled gateway_handler.go:509
15:45:57.845 ERROR core/serve: Path Resolve error: Failed to get block for QmWsdJDWoKKohR8FaxRRZgovKpfFfQ7KfKkbFL92geeNoa: context canceled gateway_handler.go:509

@RichardLitt
Copy link
Copy Markdown
Member

Nevermind, seems to work. How did you generate this?

@victorb
Copy link
Copy Markdown
Member

victorb commented Nov 10, 2016

@RichardLitt this was manually written for the purpose of this example. Depends on the theme and how the links are written. I'll implement it for the websites though, and give you a shout when I have something to show :)

@victorb
Copy link
Copy Markdown
Member

victorb commented Jan 27, 2018

This is not needed anymore as we're using hugo now.

@victorb victorb closed this Jan 27, 2018
@gsf gsf deleted the current-site-path branch January 29, 2018 14:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants