summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/inline.pm
AgeCommit message (Collapse)Author
2008-07-13switch preprocess hooks to use error functionJoey Hess
2008-07-12Rename [[!inline atomid="..."]] to [[!inline guid="..."]] to be consistent ↵Simon McVittie
with [[!meta guid="..."]], which also outputs an Atom <id>
2008-07-12Accept [[!inline ... atomid="..."]] and use it to populate the feed's Atom <id>.Simon McVittie
This is often the same as the feed's <link> (in which case it can be omitted) but sometimes it's a urn:uuid: URN instead.
2008-07-12Move yesno function out of inline and into IkiWiki core, not exported.Joey Hess
2008-07-12rename uuid to guidJoey Hess
2008-07-12elide temp varJoey Hess
2008-07-11inline plugin: if meta plugin is also enabled, and has collected a uuid for ↵Simon McVittie
a page, then pass it into the rssitem/atomitem templates
2008-07-06editpage escaping fixesJoey Hess
* The editpage form now uses the raw page name, not the page title, in its 'page' cgi parameter. Using the title was ambiguous and made it impossible to tell between some pages, like "foo/bar" and "foo__47__bar", sometimes causing the wrong page to be edited. * This change means that some edit links need to be updated. Force a rebuild on upgrade to this version. * Above change also allowed really fixing escaped slashes from the blogpost form.
2008-06-04Pass a destpage parameter to the sanitize hook.Joey Hess
Because the search plugin needed it, also because it's one of the few plugins that didn't already have it. I also considered adding it to htmlize, but I really cannot imagine caring what the destpage is when htmlizing. (I'll probably be poven wrong later.)
2008-05-31inline: The optimisation in 2.41 broke nested inlines. Detect those and ↵Joey Hess
avoid overoptimising.
2008-05-15inline: Display a message if the 'pages' parameter is missing, before it ↵Joey Hess
just expanded to nothing.
2008-05-07Optimised file statting code when scanning for modified pages; cut the ↵Joey Hess
number of system calls in half. (Still room for improvement.)
2008-05-06POSIX::setsid is not exported per defaultJoey Hess
2008-04-03need to handle urls to images the sameJoey Hess
Also, simplified finding the url to the top of the site.
2008-04-03Bug#473987: [PATCH] Links relative to baseurl mangled in atom/rss feedsManoj Srivastava
tag 473987 +patch thanks Hi, The issue is that we need to convert relative links to absolute ones for atom and rss feeds -- but there are two types of relative links. The first kind, relative to the current document ( href="some/path") is handled correctly. The second kind of relative url is is relative to the http server base (href="/semi-abs/path"), and that broke. It broke because we just prepended the url of the current document to the href (http://host/path/to/this-doc/ + link), which gave us, in the first place: http://host/path/to/this-doc/some/path [correct], and http://host/path/to/this-doc//semi-abs/path [wrong] The fix is to calculate the base for the http server (the base of the wiki does not help, since the base of the wiki can be different from the base of the http server -- I have, for example, "url => http://host.name.mine/blog/manoj/"), and prepend that to the relative references that start with a /. This has been tested. Signed-off-by: Manoj Srivastava <srivasta@debian.org>
2008-03-23inline: Allow the "feedshow" parameter to take values greater than the value ↵Joey Hess
for "show".
2008-03-21work around perl warningJoey Hess
2008-03-21delete inline data after it's usedJoey Hess
2008-03-21crazy optimisation to work around slow markdownJoey Hess
Markdown is slow. Especially if it has to process an enormous page. The most common enormous page is currently the recentchanges page, which gets processed a lot, and contains very little actual markdown. Most of it is a big <div>, which markdown skips ... slowly. This is a rather sick optimisation to work around markdown's speed issues. Now inline inserts a small, dummy div, allows markdown to quickly render the actual page content, then replaces the dummy with the actual inlined pages later. Results: Rendering just a recentchanges page, with diffs included, dropped from 4.5 seconds to 2.7 seconds on my laptop. Building the entire wiki dropped from 46.6 seconds to 39.5 seconds. (It would be better if inline were a *post*-processor directive.)
2008-03-12* Use absolute url for feedurl when filling out the feed templates.Joey Hess
Closes: #470530
2008-02-24* inline: When forcing urls absolute for rss feeds, skip mailto and otherJoey Hess
such urls.
2008-02-24* Fix another preview will_render bug. This one involved inline,Joey Hess
which forced a scan of the page to make available metadata that appeared after the inline directive. Problem is that scan made it forget about any other files rendered due to the page. The scan also turns out to be unnecessary now, since meta persistently stores state and it's always available. So it was just removed.
2008-02-04proper fix for the preview/will_render issueJoey Hess
2008-02-04preview shouldn't show the feed buttons or post formJoey Hess
2008-02-04* inline: Add new `allowrss` and `allowatom` config options. These can beJoey Hess
used if you want a wiki that doesn't default to generating rss or atom feeds, but that does allow them to be turned on for specific blogs.
2008-02-04* inline: When previewing, still call will_render on rss/atom files,Joey Hess
just avoid actually writing the files. This is necessary because ikiwiki saves state after a preview (in case it actually *did* write files), and if will_render isn't called its security checks will get upset when the page is saved. Thanks to Edward Betts for his help tracking this tricky bug down.
2008-01-28 * inline: The template can check for FIRST and LAST, which will beJoey Hess
set for the first and last inlined page. Useful for templates that build tables and the like.
2008-01-09* meta: Run in scan mode again (more intelligently) and re-add support forJoey Hess
meta link. * Fix support for the case where metadata appears after an inline directive. This was broken in version 2.16.
2008-01-07fix some bad copy and pasted plugin idsJoey Hess
2007-12-16correct variable scoping error in nils's patchJoey Hess
2007-12-16rssurl and atomurl are only needed where $feeds is setNis Martensen
2007-12-16Also increment feednum only if feeds are generatedNis Martensen
2007-12-12Set page_numfeeds only if feeds are being generatedNis Martensen
2007-11-13* inline: Add timeformat parameter to control how the ctime ofJoey Hess
inlined pages is displayed. Closes: #451019
2007-10-25use nulls to avoid ambiguitiesJoey Hess
2007-10-25* Add handling of feeds for nested inlines, as well as support for aJoey Hess
single page containing two different feeds. * Also fixed some places in inline that failed to use destpage correctly.
2007-09-13* inline: add feedonly option, set feedonly=yes to get only the feed buttonjoey
but not inline the pages.
2007-09-02* Correct generation of RFC 3339 format times for atom/rss feeds. Always usejoey
gmtime for these since a time zone is not specified.
2007-08-26* Fix bug when blogging by cgi, introduced in last version.joey
2007-08-11* Apply a patch from NicolasLimare adding modification date tags to rss andjoey
atom feeds, and also changing the publication time for a feed to the newest modiciation time (was newest creation time). * The patch also adds dcterms:creator to rss items that have a known author.
2007-08-05* Move blog form code out of CGI.pm and into the inline plugin.joey
2007-06-26* Patch fixing various additional problems with test suite. Closes: #425891joey
once more.
2007-06-03* Make the url absolution code for feeds significantly more robust.joey
2007-05-28* More consistent encoding of titles in rss and atom feeds. Don't usejoey
ESCAPE=HTML for titles in the templates for these feeds, and instead escape the title going in to the template. Previously, the title was sometimes double-escaped in a feed (if set via meta title), and sometimes not (if set from the page filename). * In the meta plugin, when a title is set, encode the html entities in it numerically. This works better in the current landscape of a rss spec that doesn't specify encoding, and variously broken feed consumers, according to <http://www.rssboard.org/rss-profile#data-types-characterdata>.
2007-05-17* Add a destpage parameter to the filter hook.joey
* Fix links to smilies generated by the smiley plugin for inlined pages. The old links were often wrong, but often still worked by accident.
2007-04-27* pagespec_match() has changed to take named parameters, to better allowjoey
for extended pagespecs. The old calling convention will still work for back-compat for now. * The calling convention for functions in the IkiWiki::PageSpec namespace has changed so they are passed named parameters. * Plugin interface version increased to 2.00 since I don't anticipate any more interface changes before 2.0.
2007-04-14* Add feedshow parameter to inline, which can be useful for eg, removingjoey
old posts from feeds when permalinks change.
2007-04-14* Patch from Tuomov to link to the directory in feeds when usedirs is injoey
effect. Note that this changes permalinks, so if you are already using usedirs you'll have to deal with that on upgrade to this version.
2007-04-12* Add postformtext parameter to inline.joey
2007-04-10* Optimise displaytime, trimming maybe 6% off the build time.joey