-
Notifications
You must be signed in to change notification settings - Fork 5
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
Ability to web link directly to specific sections #66
Comments
Yeah I've been thinking about something similar for a while. There's this tangential potential use case for Fractive as a vaguely Jekyll-esque website builder but the current lack of deep-linking is a fatal flaw for that. |
Jekyll-esque is exactly right. I might eventually switch my whole website over from Jekyll to Fractive. |
Aside from the lack of deep-linking, the other (currently) shitty thing about using Fractive for a website as opposed to a hypertext story is that on a website you probably don't want all your resources compiled into a single html file, particularly if your site is going to be image-heavy. I did a quick experiment a couple weeks ago with a pseudo-fork of Fractive that dumps out separate html files for a more website-like deployment. It's kinda promising. I haven't done much with it beyond an initial proof of concept, though, and I split it off because I don't want Fractive itself to get pulled too far off its original/core goal of making hypertext stories... but this is all stuff that's swirling around in my head, at any rate. |
When this is implemented, there should also be a project configuration option to have the URL in the browser window update to reflect the URL of the current section. So if an author wants to let players link to specific sections, they have an easy way of doing that, but if an author wants to hide section names or make it hard to skip content, that can be the default behavior. |
What I'm imagining is index.html processing some optional URL parameters, like this:
http://balladofthespacebard.com/index.html?start=Episode2
This link would lead directly to the section named Episode2, instead of Start.
There are two scenarios where I can imagine this functionality being especially useful:
The text was updated successfully, but these errors were encountered: