Joey Hess
915d9281db
call delete hook even if only internal pages are deleted
2010-05-07 00:26:59 -04:00
Joey Hess
1678604fe3
avoid redir loop when going to an internal page that has no permalink
2010-05-07 00:22:05 -04:00
Joey Hess
575080d6ef
respect permalinks
2010-05-06 23:28:40 -04:00
Joey Hess
14826ad927
Delete hooks are passed deleted internal pages.
...
Necessary so search can remove its indexes for internal pages.
But also, it seems it was an omission not to pass the deleted
pages before.
2010-05-06 23:25:27 -04:00
Joey Hess
ea4967f184
inline: Call indexhtml when inlining internal pages, so their text can be indexed for searching.
2010-05-06 23:20:48 -04:00
Joey Hess
121e2ffc2f
Renamed postscan hook to indexhtml, to reflect its changed position.
...
Probably only the search plugin uses it, so this seemed safe.
2010-05-06 23:14:36 -04:00
Joey Hess
4c320176c0
simplify formbuilder stylesheet specification
...
Since all forms are wrapped in a template that defines the actual
stylesheets, formbuilder just has to be told to turn on stylesheet mode,
not what file is the style sheet.
2010-05-06 22:27:12 -04:00
Joey Hess
d3aaf6e01f
fix pagediff to not display as "preview"
...
I think originally, the page preview header was not displayed,
so diff was hacked in using it.
2010-05-06 22:19:14 -04:00
Joey Hess
cb2025af45
refactor
2010-05-05 22:41:23 -04:00
Joey Hess
ee9a4e06fc
rename ispage variable
2010-05-05 22:36:50 -04:00
Joey Hess
1193759568
remove unused indexlink function and template variable
2010-05-05 20:42:56 -04:00
Joey Hess
66c787658e
remove unused
2010-05-05 18:53:03 -04:00
Joey Hess
8aa5f2d23e
add ISPAGE variable to page.tmpl
...
Plugins will also be able to use this to tell if the template
is being used to generate a wiki page, when misctemplate starts
also using page.tmpl.
2010-05-05 18:17:25 -04:00
Joey Hess
d0a5945000
Fixes a bug in skipping of illegal source files introduced in 3.20100427.
2010-05-04 20:26:17 -04:00
Joey Hess
76a5dbe7cb
note that tcc workaround is for bug fixed in tcc now
2010-05-04 18:41:55 -04:00
Joey Hess
ab575a4b69
graphviz: Fix display of preexisting images in preview mode.
2010-05-04 16:54:58 -04:00
Joey Hess
9699f16b51
websetup: Only display Setup button on admins' preferences page.
...
Renamed it from "Wiki Setup" to just "Setup" for good measure.
2010-05-03 13:59:43 -04:00
Joey Hess
0fc32c8b2f
allow do=setup to log a user in if necessary
2010-05-03 13:46:52 -04:00
Joey Hess
2f22ee85e5
Add ACTIONS variable to page.tmpl, which allows plugins to add arbitrary links to the action bar without modifying the template further.
...
(COMMENTSLINK and DISCUSSIONLINK could be folded into this, but are kept
separate for now to avoid breaking modified templates.)
2010-05-03 12:46:52 -04:00
Joey Hess
adf182669d
add a missing space
2010-05-02 22:43:55 -04:00
Joey Hess
154732dc42
adapt comment.tmpl to html5
...
Note that I put comment-header in a <header> despite it being
below the comment. Using a <footer> would be confusing given
the class name. Also, the content is semantically closer to
a header than a footer.
2010-05-02 16:12:08 -04:00
Joey Hess
932fc0c25f
use a div, not a p .. and in html5, a nav
2010-05-02 14:41:20 -04:00
Joey Hess
b21df5029b
Add placeholder text in search form (in html5 mode only).
2010-05-02 13:49:56 -04:00
Joey Hess
970373548f
Add parameter to displaytime to specify that it is a pubdate, and in html5 mode, use time tag.
2010-05-02 13:44:13 -04:00
Joey Hess
a547d26858
html5 option
...
* 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-05-01 20:49:18 -04:00
Joey Hess
ccafb10007
enable hidden attribute
2010-05-01 19:59:16 -04:00
Joey Hess
790a339db1
htmlscrubber: Also allow some other html5 tags: canvas, progress, meter, ruby, rt, rp, details, summary.
2010-05-01 19:28:28 -04:00
Joey Hess
f1e2d0af12
more html5 attributes
2010-05-01 19:11:03 -04:00
Joey Hess
78cee5140a
add rest of html5 form attributes
...
It's easy to imagine pattern being used to freeze or crash browsers, if
they implement it stupidly. Let's hope not..
2010-05-01 18:44:37 -04:00
Joey Hess
80f9a2a087
add figure and figcaption
2010-05-01 18:31:33 -04:00
Joey Hess
0a139aba82
htmlscrubber: Allow the html5 form attributes: placeholder autofocus, min, max, step.
2010-05-01 18:27:53 -04:00
Joey Hess
442bc59a15
htmlscrubber: Allow the placeholder attribute.
2010-05-01 18:14:50 -04:00
Joey Hess
73c8209484
more html5
...
* htmlscrubber: Also allow html5 canvas tags.
* htmlscrubber: Round out html5 video support with the preload
attribute and the source tag.
2010-05-01 17:56:35 -04:00
Joey Hess
80f2042464
htmlscrubber: Allow html5 semantic tags: section nav article aside hgroup header footer time mark
2010-05-01 16:34:47 -04:00
Joey Hess
0e7a3640ae
template: Fix typo.
2010-04-27 12:10:58 -04:00
Joey Hess
194824ce29
loop on pagesources, not ctime
2010-04-26 18:32:06 -04:00
Joey Hess
97b0c6e455
Fix removal of rendered files in rebuild mode.
...
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-26 17:14:03 -04:00
Joey Hess
7f3047f67c
added match_guid function to meta plugin
...
(cherry picked from commit 8b6fde73669ddf9204acb3d334c3984566f3c59d)
Conflicts:
IkiWiki/Plugin/meta.pm
2010-04-26 13:47:01 -04:00
Joey Hess
e05c9653ef
rebuild on template removal
2010-04-24 21:13:53 -04:00
Joey Hess
a1575b0c83
bugfixes
2010-04-24 20:41:35 -04:00
Joey Hess
ca9c6cc254
add support for mass dependencies
...
Registered by passing "" as page name to add_depends.
2010-04-24 20:22:20 -04:00
Joey Hess
4321b30139
Merge branch 'master' into templatemove
2010-04-24 16:46:30 -04:00
Joey Hess
cce3042457
po: fix some uninitalized value warnings when used by websetup
2010-04-24 16:44:45 -04:00
Joey Hess
c2656f08f3
template() - return params in list context
...
I forgot CGI::Formbuilder's horrible interface that needs template
parameters instead of a constructed object.
2010-04-24 16:15:47 -04:00
Joey Hess
df012e54c7
chomp template values
...
Before the template reorg, this was done by a template filter.
2010-04-24 01:13:58 -04:00
Joey Hess
998f47ed13
Merge branch 'master' into templatemove
2010-04-24 00:55:09 -04:00
Joey Hess
e90d67d3c9
Moved javascript files under the ikiwiki/ directory, to avoid cluttering the top of the web root. This is another things that requires a wiki rebuild on upgrade to this version.
2010-04-24 00:54:59 -04:00
Joey Hess
6486452e4c
special case for page.tmpl dependency handling
...
Rather than wasting resources recording that every page depends on
page.tmpl, add a special case. The special case curretly rebuilds non-page
files too when page.tmpl changes, but that's minor.
2010-04-23 16:41:07 -04:00
Joey Hess
0e68f76a9a
update
2010-04-23 15:23:34 -04:00
Joey Hess
d1cc7e81c8
use template() rather than rolling it by hand
2010-04-23 15:11:25 -04:00