inky
inky copied to clipboard
Title is harcoded in the HTML
With the latest release of Inky, it is possible to add a byline with # author: Natrium729
. The byline is added to the HTML page by the JavaScript so it is possible to update it by exporting story.js only.
However, the title set with # title: Hello World
is hardcoded into the HTML while exporting for the web. Because of this, it can't be updated by only exporting story.js.
Quite a minor issue, but can be a bit tiring if you set the title long after having made modifications to the CSS/JS.
But you only have to edit the html file once, right? Or am I misunderstanding?
Yeah, it’s just that the new author approach is very slightly better!
And of course one could just edit the HTML directly. 🤦♂️ I promise I hadn't even thought about that! (I was just experimenting with the new features.)
But I still think it would be better make it more consistant with the byline.
meta
and title
tags should anyway always be hard defined in the html file, as they're parsed by robots (often) without javascript support.
That said, a 'title' tag would be helpful so that the name of the export folder doesn't have to match the actual title - since then our titles are initially limited by what file systems support for folder names.
I think that @joethephish added this aaa75425b146ec962900ffd9cf6a37e307c83f6c (See line 460 of inkProject.js ) but I couldn't get it to work.