Enoki problems with stylesheet directory links, http(s)?
dbateyko opened this issue · comments
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).