summaryrefslogtreecommitdiff
path: root/IkiWiki
AgeCommit message (Collapse)Author
2011-02-22inline: allow assigning an id to postform/feedlinkGiuseppe Bilotta
This allows per-form/feedlink group customization without having to resort to counting. (cherry picked from commit b134feb0dc2d9a8ff7ae447537fa8bc02811aabd)
2011-02-22inline: base feed urls on included page nameGiuseppe Bilotta
Second (forgotten) half of bb8f76a4a04686def8cc6f21bcca80cb2cc3b2c9. This ensures that the link URL and page title in the feed are the correct ones.
2011-02-21Fix broken baseurl in cgi mode when usedirs is disabled. Bug introduced in ↵Joey Hess
3.20101231.
2011-02-09Merge remote branch 'smcv/ready/transient-recentchanges'Joey Hess
2011-02-09map: don't create useless </ul><ul> sequencesGiuseppe Bilotta
With the previous logic, same-level items would go down one level and then again up one level closing and re-opening UL tags each time. The resulting redundant lists caused whitespace layout issues in the rendered pages. Adjust the "moving up?" logic to check if the current item base is different from the previous item _base_. Adjust the "going down?" logic by moving it to an earlier phase and checking for (1) parent item not being what it should be and (2) remaining bits; the root is grown unconditionally as long as (2) is verified.
2011-02-09Merge remote branch 'smcv/ready/transient-tag'Joey Hess
Conflicts: t/tag.t
2011-02-09Merge remote branch 'smcv/ready/transient-autoindex'Joey Hess
2011-02-09minor optimisationJoey Hess
Assume the aggregated content is only going to be in one of the directories, and so stop if it's successfully removed from the transientdir.
2011-02-09Merge remote branch 'smcv/ready/transient-aggregate'Joey Hess
2011-02-09Merge remote branch 'smcv/transient-relative-api'Joey Hess
2011-02-09Merge remote branch 'smcv/ready/transient'Joey Hess
2011-02-03htmltidy: Avoid breaking the sidebar when websetup is running.Joey Hess
Problem was this: websetup loads all plugins, but does not checkconfig them. So, htmltidy's recently added configurable command setting was unset; this resulted in its sanitize hook failing; the sanitize hook is called when a sidebar was enabled, and this caused the sidebar to not display. I put in a fix, but the underlying problem is that websetup loads all plugins but leaves them in an unconfigured and possibly broken state while trying to display its forms. Probably the long-term fix is to have it cache the original hook states from before loading the plugins, and restore it after getting their configuration. Or, even to get the configuration using a subprocess, as plugins may do things outside the hook system.
2011-02-01editpage: Avoid inheriting internal page types.Joey Hess
2011-01-25run po checkconfig last so it can see underlays added in other checkconfig hooksJoey Hess
2011-01-24inline: Fix regression in feed titles. Closes: #610878 (Thanks, Paul Wise)Joey Hess
2011-01-24blogspam: Don't check modifications from admins for spam, and also allow the ↵Joey Hess
blogspam_pagespec to do other matches against who the user is.
2011-01-24bleaghJoey Hess
2011-01-23fix uninitilized value warning on bad page nameJoey Hess
properly this time
2011-01-23Revert "fix uninitilized value warning on bad page name"Joey Hess
This reverts commit 5d3998555ffbeb1c20b84dd4cdc46c825c07bec8. That broke posting via blog form.
2011-01-22autoindex: default to autoindex_commit=1 as intendedSimon McVittie
2011-01-22Don't create autoindex pages just because of transient thingsSimon McVittie
2011-01-22Allow autoindex files to be written into the transient underlaySimon McVittie
As with the tag plugin, for the moment keep the old behaviour in the test.
2011-01-22Merge branch 'ready/autoindex-autofile' into HEADSimon McVittie
2011-01-22autoindex: stop tracking deletions, use generic autofile tracking insteadSimon McVittie
- Migrate the set of deletions to the {autofile} set, since it has more or less the same effect. This affects the "deleted" case in the test. - If a page has just been deleted, add it as an autofile anyway: by the time gen_autofile is called, it'll be in the list of deleted files, so it'll just be added to {autofile}. This affects the "gone" case in the test. - Behaviour change: we don't forget that a page with no reason to be re-created was deleted. This affects the 'expunged' and 'reinstated' cases in the test.
2011-01-22autoindex: use add_autofileSimon McVittie
This does cause a minor regression: index pages are now committed individually rather than being a single commit per rebuild. This also means the autoindex regression test needs to trigger the autofile generation pass.
2011-01-22rename: Fix crash when renaming a page that is linked to by a page in an ↵Joey Hess
underlay. Skip fixing links in such pages. The user will get a list of pages that still link to the old page.
2011-01-22comments: Fix XSS security hole due to missing validation of page name.Joey Hess
Values have to be checked against wiki_file_regexp, not just file_pruned. Audited the rest of the code base for similar problems, found none.
2011-01-22fix uninitilized value warning on bad page nameJoey Hess
2011-01-07Put newly aggregated pages in the transient underlaySimon McVittie
2011-01-07Only unlink excess recentchanges from srcdir if not in transientdirSimon McVittie
2011-01-07Put recent changes in the transient underlaySimon McVittie
2011-01-07tag: default to tag_autocreate_commit=1 as intendedSimon McVittie
2011-01-07tag: optionally write autocreated tags to the transient underlaySimon McVittie
For the moment, have the tag test keep the old behaviour.
2011-01-07Add add_literal_underlay and use it for the transient underlaySimon McVittie
This means we don't need to import Cwd and use abs_path.
2011-01-07Assume obsolete transient pages have the same extension as the changed pageSimon McVittie
2011-01-07GC unused pages in the transient underlaySimon McVittie
2011-01-07Add transient plugin, which adds ~/.ikiwiki/transient as an underlaySimon McVittie
This can contain auto-generated things, like tag pages; if edited they'll automatically migrate into source code control.
2011-01-06reword feed descsJoey Hess
2011-01-06inline: pass the Atom/RSS titles to the templatesGiuseppe Bilotta
The default templates are also updated to make use of this information. The rel="alternate" attribute is also inserted, for completeness. (cherry picked from commit 618ade535e6a7967a510d9e210edaef3d37cc9bc)
2011-01-05fix urlto(undef)Joey Hess
2011-01-05use cgitemplate, remove misctemplateJoey Hess
2011-01-05add cgitemplateJoey Hess
cgitemplate is a modified misctemplate that takes an optional cgi object and uses it to set the baseurl, and also optionally the forcebaseurl, if a page is provided. If no cgi object is provided, it will fall back to using $config{url}. I expect this will only be needed in exceptional cases where that doesn't much matter, such as cgierror(). showform uses cgitemplate, so there is no more need for showform_preview.
2011-01-05better handling of relative permalinksJoey Hess
This way, do=goto will go to the page relative to the current location, while the permalinks in feeds will be absolute (unless an url is not configured at all).
2011-01-05factored out an urlabs from aggregate and cgiJoey Hess
2011-01-05oopsJoey Hess
2011-01-05Export three cgi env vars needed for CGI->url to work.Joey Hess
2011-01-05Fix permalinks to recentchanges items and comments, broken by last release.Joey Hess
permalinks always need to be full urls
2011-01-05typoJoey Hess
2011-01-05remove old unused baseurl parameterJoey Hess
This was I think a relic from when BASEURL was used in more templates than use it now.
2011-01-05Fix redirect to use a full url.Joey Hess
Was broken (in theory) by baseurl changes in last release.