summaryrefslogtreecommitdiff
path: root/IkiWiki.pm
AgeCommit message (Collapse)Author
2010-06-09When editing a page, show that page's sidebar. (Thanks, privat)Joey Hess
2010-06-09Fix support for globbing in tagged() pagespecs.Joey Hess
The linktype check was being done on the relativised link target, but %typedlinks uses the same link targets as %links, so that didn't work. I think the bug only appeared when tagbase was not set. This bugfix also let me factor out the common typedlink checking code.
2010-05-31creation_day() etc use local time, not gmtime.Joey Hess
To match calendars, which use local time. Particularly important at the end of the month. I checked the history, and there seemed no good rationalle for the pagespecs to use gmtime.
2010-05-18Fix a bug that prevented matching deleted comments, and so did not update ↵Joey Hess
pages that had contained them. Problem is that by the time rendering calls render_dependent, %pagesources has had deleted files removed from it. So match_comment's lookup of files in there to see if they had the _comment extension failed. I had to introduce a hash that temporarily holds filenames of deleted pages to fix this. Note that unlike comment(), internal() had avoided this pitfall by being defined to match both internal and non-internal pages.
2010-05-14allow misctemplate callers to pass params to suppress actions etcJoey Hess
Suppress disiplay of small search for on search results page, and of Prefrences link on prefs page.
2010-05-14refactor template actionsJoey Hess
2010-05-14enable action bar on misctemplatesJoey Hess
So RecentChanges shows on the action bar there, convert recentchanges to use new pageactions hook, with compatability code to avoid breaking old templates.
2010-05-08Use xhtml friendly pubdate setting.Joey Hess
2010-05-07fix undef warning when page() tests a deleted fileJoey Hess
2010-05-06fix param passing to match_globJoey Hess
2010-05-06move meat of type checking to match_page where it belongsJoey Hess
2010-05-05refactorJoey Hess
2010-05-05rename ispage variableJoey Hess
2010-05-05remove unused indexlink function and template variableJoey Hess
2010-05-05remove misc.tmpl checkingJoey Hess
Turns out that users with a modified page.tmpl need to modify it on upgrade, at least to add the FORCEBASEURL (so edit preview works), so there is no point in trying to retain compatability.
2010-05-05allow search form visibility to be controlled on the templateJoey Hess
hide extrafooter from misctemplate display per default
2010-05-05no more misc.tmplJoey Hess
* Removed misc.tmpl. Now to theme ikiwiki, you only need to customise a single template, page.tmpl. * misc.tmpl will, however, still be read if a locally modified version exists. This is to avoid forcing users to update page.tmpl right now.
2010-05-02Add parameter to displaytime to specify that it is a pubdate, and in html5 ↵Joey Hess
mode, use time tag.
2010-05-01set html5 option as advanced for nowJoey Hess
2010-05-01html5 optionJoey Hess
* Ikiwiki can be configured to generate html5 instead of the default xhtml 1.0. The html5 output mode is experimental, not yet fully standards compliant, and will be subject to rapid change.
2010-04-30no need to use HTML::EntitiesJoey Hess
That module is unused now. Long long ago, it used to be used to encode data in the index. Checked all modules, and every module that uses it imports it.
2010-04-28TMPL_INCLUDE re-enabled for templates read from the templatedir. (But not ↵Joey Hess
in-wiki templates.)
2010-04-26Add page() PageSpec, which is like glob() but matches only pages, not other ↵Joey Hess
files.
2010-04-26Fix removal of rendered files in rebuild mode.Joey Hess
Needed to handle the move of the .js files into ikiwiki/, but also this is a longstanding bug. Old pagemtime is not remembered in rebuild mode, and changing that would need a lot of changes. So instead, loop on pagectime, which is remembered. Change to remembering old pagesources info in rebuild mode. This seems safe enough.
2010-04-24reword templatedir descriptionJoey Hess
2010-04-24add support for mass dependenciesJoey Hess
Registered by passing "" as page name to add_depends.
2010-04-24bugfixJoey Hess
2010-04-24template() - return params in list contextJoey Hess
I forgot CGI::Formbuilder's horrible interface that needs template parameters instead of a constructed object.
2010-04-24bugfixJoey Hess
2010-04-23fix return of tpageJoey Hess
2010-04-23allow template pages to not be under templates/Joey Hess
2010-04-23allow a bare page name to be specified as a templateJoey Hess
2010-04-22refactor to remove template_paramsJoey Hess
template_file will be kept separate, since it needs to be memoized
2010-04-22look for templates in srcdir and underlays, firstJoey Hess
This entailed changing template_params; it no longer takes the template filename as its first parameter. Add template_depends to api and replace calls to template() with template_depends() in appropriate places, where a dependency should be added on the template. Other plugins don't use template(), so will need further work. Also, includes are disabled for security. Enabling includes only when using templates from the templatedir would be nice, but would add a lot of complexity to the implementation.
2010-04-22remove add_templates optionJoey Hess
Templates are moving into the srcdir, and will also be searched for in configured underlays, so this is redundant.
2010-04-22only remove page from influences when influences are not staticJoey Hess
This matches what add_depends done
2010-04-22Merge branch 'autotag'Joey Hess
2010-04-22improved fix for depends_simple_mixupJoey Hess
Avoid adding the page matched against as an influence for currently failing pagespec matches, while still adding any other influences. This avoids bloating depends_simple with lots of bogus influences when matching eg, "!link(done)". It's only necessary for the page being tested to be an influence of that if the page matches.
2010-04-21indentJoey Hess
2010-04-21Merge branch 'master' into autotagJoey Hess
Conflicts: IkiWiki/Plugin/tag.pm
2010-04-21add missing undef guard in derelJoey Hess
2010-04-21Merge branch 'master' into autotagJoey Hess
2010-04-21layoutJoey Hess
2010-04-21Always give createlink class to links to nonexistent pagesGiuseppe Bilotta
With this change, the <span> with class createlink is always created around the link text, even when no CGI URL is defined. This allows styling of these 'links' in this case too. The same class is used as when CGI URL is defined so that e.g. clones of the same ikiwiki, one with CGI and one without, display in the same way (modulo the missing question mark link). (cherry picked from commit 290d1b498f00f63e6d41218ddb76d87e68ed5081)
2010-04-20Merge branch 'master' into autotagJoey Hess
2010-04-20remove 2 argument form of file_prunedJoey Hess
2010-04-17unfinished file_prune revampJoey Hess
Many calls to file_prune were incorrectly calling it with 2 parameters. In cases where the filename being checked is relative to the srcdir, that is not needed. Made absolute filenames be pruned. (This won't work for the 2 parameter call style.)
2010-04-17refactor autofilesJoey Hess
Made add_autofile take a generator function, and just register the autofile, for later possible creation. The testing is moved into Render, which allows cleaning up some stuff.
2010-04-17whitespaceJoey Hess
2010-04-17Merge remote branch 'davrieb/autotag' into autotagJoey Hess
Conflicts: IkiWiki.pm IkiWiki/Plugin/tag.pm