I hope my title sorta says it all. Searching ikiwiki for 'permalink' was not fruitful, not, at least, for this user, at this juncture.
Thank you.
I hope my title sorta says it all. Searching ikiwiki for 'permalink' was not fruitful, not, at least, for this user, at this juncture.
Thank you.
page.tmpl
to override IkiWiki's, with the correct<TMPL_VAR foo>
added to it, to use the variable you defined in the plugin. I'm looking at doing this. — Joninlinepage.tmpl
andinline.pm
are required. — JonThis works for me: https://github.com/jmtd/ikiwiki/blob/permalink-plugin/IkiWiki/Plugin/permalink.pm
Then you can put something like this into your
page.tmpl
:— Jon, 2020-04-21
it looks like the
PERMALINK
variable is set elsewhere, see inline breaks PERMALINK variable for example.grepping around, it looks like it is set in the plugins aggregate, comments, inline, meta, recentchanges, and search, all in different contexts, but it seems precarious to set it globally, i'd say.
with include page variable in base templates, we have PAGE already... don't we just need the url config to be passed down to the template here?
maybe something like this patch:
no?
that, in particular, will be useful to implement stuff like opengraph, where i need to do this right now:
that would be better as:
we could also call it CONFIG_URL to disambiguate...