inky icon indicating copy to clipboard operation
inky copied to clipboard

Title is harcoded in the HTML

Open Natrium729 opened this issue 6 years ago • 6 comments

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.

Natrium729 avatar Sep 20 '18 19:09 Natrium729

But you only have to edit the html file once, right? Or am I misunderstanding?

joningold avatar Sep 20 '18 19:09 joningold

Yeah, it’s just that the new author approach is very slightly better!

joethephish avatar Sep 20 '18 20:09 joethephish

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.

Natrium729 avatar Sep 20 '18 21:09 Natrium729

meta and title tags should anyway always be hard defined in the html file, as they're parsed by robots (often) without javascript support.

paulloz avatar Jan 18 '19 11:01 paulloz

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.

lunarcloud avatar Mar 03 '20 15:03 lunarcloud

I think that @joethephish added this aaa75425b146ec962900ffd9cf6a37e307c83f6c (See line 460 of inkProject.js ) but I couldn't get it to work.

lunarcloud avatar Jan 12 '22 18:01 lunarcloud