Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enoki problems with stylesheet directory links, http(s)? #7

Open
dbateyko opened this issue Jun 2, 2018 · 0 comments
Open

Enoki problems with stylesheet directory links, http(s)? #7

dbateyko opened this issue Jun 2, 2018 · 0 comments

Comments

@dbateyko
Copy link

dbateyko commented Jun 2, 2018

I'm having a number of issues accessing an enoki-generated site that I think are related to how stylesheets and scripts are linked.

1) Hyperlinking directly to a page

EDIT: The issue relates to this issue in sheet-router. The imperfect workaround is to hash route, e.g. domain.com#blog/entry.

When hyperlinking directly to a page, the stylesheets do not load properly. When accessing https://hello-jkm.hashbase.io/, the entries load as normal. But if I were to first visit https://hello-jkm.hashbase.io/entries/2017-12-27-sites, the page points to /bundle.css instead of /bundles/bundles.css. I've noticed this problem does not happen http://jon-kyle.com—is there a fix?

2) Accessing website over http?

EDIT: Problem was solved by running NPM as described in the enoki readme. npm install was fixed by removing the node_modules directory prior to install.
I'm hoping to host my Enoki site on Github pages (free+open). The site loads like normal from dat, but will not load over https. An example:

https://untitled-dbateyko.hashbase.io/
dat://untitled-dbateyko.hashbase.io/

The error occurs on both Github pages and Hashbase. I assume it also has something to do with how files are linked. I've only changed files in the /content directory, so I'm hoping not to touch npm (which for some reason won't install enoki on my linux vm).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant