Web slides are sort of a regular web page, but not exactly: no action
links, and almost none of the other accoutrements of
branch's current behavior is that Remark slides are naively inlined like
any other page, which -- because the Markdown is deliberately not being
rendered by ikiwiki -- results in the slide source being displayed (and
not elegantly). Clicking through to the slides works right, of course.
Should inline (and more generally PageSpec) understand that web slides are not exactly regular pages? And/or should this plugin detect when slides are being inlined and allow ikiwiki to process the Markdown as a sort of "preview"? --schmonz
If you want web slides to not be a normal page, that's what internal pages are for. An internal page has an extension (file type) starting with
_, and has the following properties:
foo._extdoes not automatically render
glob(foo)(for which unadorned globs are syntactic sugar) does not match it, you have to use
- editpage won't edit it
I'd be very tempted to use
foo._remarkand set it up so all such pages are copied to
foo.htmlunchanged. You'd probably have to add a new hook that is run instead of most or all of
render(), and also make those pages exempt from
remarkpage.tmpl has no action links, is it still possible
for someone to trick their way into web-editing a slide deck? And if
they do, is that dangerous? --schmonz
Yes, it's likely both possible and dangerous. If you've already deployed this plugin, make sure it's covered by lockedit.
Every page that is not internal can be edited. Look at editpage for the (only) logic that is applied when deciding whether to accept an edit: whether there is an action link is irrelevant.
Here page is a jargon term for something matching
page(), i.e. its extension is the same as the name of a
htmlizehook, while internal means a page whose extension additionally starts with