Commit Graph

14341 Commits (f695bdd843520729aa73cd063c22f1ebd1a01f1f)

Author SHA1 Message Date
Simon McVittie f695bdd843 tag test: write tag pages into the transient underlay 2011-01-07 20:11:19 +00:00
Simon McVittie 2a60cda172 tag: optionally write autocreated tags to the transient underlay
For the moment, have the tag test keep the old behaviour.
2011-01-07 20:09:52 +00:00
Simon McVittie 040038b655 Merge branch 'ready/tag-test' into transient-tag 2011-01-07 20:09:09 +00:00
Simon McVittie 44b0cea85f Assume obsolete transient pages have the same extension as the changed page 2011-01-07 19:50:34 +00:00
Simon McVittie c7bf305c81 GC unused pages in the transient underlay 2011-01-07 18:53:27 +00:00
Simon McVittie 8250c3a457 Add transient plugin, which adds ~/.ikiwiki/transient as an underlay
This can contain auto-generated things, like tag pages; if edited
they'll automatically migrate into source code control.
2011-01-07 18:53:27 +00:00
Joey Hess 657dc54457 add news item for ikiwiki 3.20110105 2011-01-05 18:20:25 -04:00
Joey Hess 2cd8988648 releasing version 3.20110105 2011-01-05 18:19:26 -04:00
Joey Hess a3605a90d5 fix urlto(undef) 2011-01-05 18:08:03 -04:00
Joey Hess 4391c41af2 mention 2 remaining cases for completeness
leaving bug closed
2011-01-05 17:35:34 -04:00
Joey Hess d991ccf134 use cgitemplate, remove misctemplate 2011-01-05 17:15:38 -04:00
Joey Hess 4a6ac6b485 add cgitemplate
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-05 17:06:11 -04:00
Joey Hess ea734d451c better handling of relative permalinks
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-05 16:26:09 -04:00
Joey Hess 885bff7239 make urlabs a noop if base url is not provided
This allows urlabs($foo, $config{url}) to be used safely, even if
no url is configured.
2011-01-05 16:23:05 -04:00
Joey Hess c91b39fdb5 factored out an urlabs from aggregate and cgi 2011-01-05 16:18:25 -04:00
Joey Hess 49928906b0 oops 2011-01-05 16:11:54 -04:00
Joey Hess 4dbb8120f7 Export three cgi env vars needed for CGI->url to work. 2011-01-05 16:08:21 -04:00
Joey Hess c11b1226ca oops 2011-01-05 15:43:03 -04:00
Joey Hess b216f42e8e goto permalink issue 2011-01-05 15:34:35 -04:00
Joey Hess 3eabf323f0 Fix permalinks to recentchanges items and comments, broken by last release.
permalinks always need to be full urls
2011-01-05 15:22:55 -04:00
Joey Hess 7a88638c6c typo 2011-01-05 15:12:23 -04:00
Joey Hess 6b5b0a3282 Temporarily revert one part of the multiple url support in the last release. Non-edit pages are now back to having `<base>` set to the site's main url. 2011-01-05 15:01:31 -04:00
Joey Hess 9efe370fa0 remove old unused baseurl parameter
This was I think a relic from when BASEURL was used in more templates than
use it now.
2011-01-05 14:57:26 -04:00
Joey Hess 270cbd7cf5 Fix redirect to use a full url.
Was broken (in theory) by baseurl changes in last release.
2011-01-05 14:57:04 -04:00
Joey Hess 8c9c3915ec Fix base url when previewing. Was broken by urlto changes in last release.
Added a showform_preview that is like showform, but sets forcebaseurl
to point to the page being previewed.
2011-01-05 13:50:42 -04:00
Joey Hess a554a3d538 reopening, reverting part of this for now 2011-01-05 13:47:35 -04:00
Joey Hess b3eb7fdf82 it gets worse 2011-01-05 13:34:44 -04:00
Joey Hess 841cc576db doesn't only affect preview 2011-01-05 13:19:26 -04:00
Joey Hess a3769c6001 response 2011-01-05 12:25:58 -04:00
Giuseppe Bilotta 2c94420c34 generic insert links: it's a Markdown file
(cherry picked from commit 139c050ca48c2fe7bdcd4ea22623739cbb25ceda)
2011-01-05 12:19:18 -04:00
Giuseppe Bilotta 5365a72e42 unescape tag names
Since tag names are now retrieved from the file names, we must revert
the escaping process that santizes the file names. Solve by adding a
`pagetitle()` call at the end of the tagname()
(cherry picked from commit 0ee0612b1ab11d76eb3790c8db7a2ba992c54f6b)
2011-01-05 12:06:36 -04:00
Simon McVittie 3d893db65f respond 2011-01-05 12:17:17 +00:00
Simon McVittie b79e993d86 wrap lines 2011-01-05 11:48:48 +00:00
http://oblomov.myopenid.com/ 84c7d907e8 absolute base url in cgi forms 2011-01-05 10:18:16 +00:00
Joey Hess 3841d709d7 bugfix 2011-01-04 16:02:31 -04:00
Joey Hess 1b1b3927ee fix patch to not strip a leading "." unless it's part of a path
For correctness only, since a tag named ".foo" is very unlikely.
2011-01-04 15:59:28 -04:00
Joey Hess fc6c0e8b5b fix patch to not expose config setting as a regexp 2011-01-04 15:59:00 -04:00
Giuseppe Bilotta a17469e388 tag name sanitation
The use of typed links for tags and some of the consequent changes
introduced some unwanted functionality variations in the tag system. Two
problems in particular could be observed, when compared to the use of
tags in older versions of IkiWiki:

* tags in feeds (both rss and atom) would use the file path as their
  name (e.g. you would have <category term="tags/sometag" /> in an atom
  item for a page tagged sometag with a tagbase of tags), whereas they
  appeared pure before
* tags containing a slash character would appear without the slash
  character but be used with the slash character in other circumstances
  (effect visible by tagging a page with a name such as "with/slash")

Both of these issues are fixed by introducing a tagname() function that
takes a tag link and effectively reverses (as well as possible) the
effects of taglink().

A possible alternative route would have been the reintroduction of the
global %tags hash, but the new approach as the (arguable) benefit of
introducing a small layer of sanitation for tag names.
2011-01-04 15:58:42 -04:00
Joey Hess 866486b7a3 markup 2011-01-04 15:51:26 -04:00
http://oblomov.myopenid.com/ 528ca2b670 tag behavior changes introduced by typed link feature 2011-01-04 18:45:49 +00:00
http://oblomov.myopenid.com/ d3a79a2c24 feed enhancements for inline pages 2011-01-04 14:40:30 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkMqhJ4mAWPpJQ2kvTvBM_icMQdvMhctJA 17940099b7 2011-01-04 13:05:02 +00:00
Simon McVittie a6943ba2cc Revert spam
This reverts commit 2bf9d8dc82.
2011-01-03 11:20:10 +00:00
https://me.yahoo.com/a/3hUnH9Qi24uk3RwCwHATJBWKVyqc#7d8b8 2bf9d8dc82 2011-01-03 11:07:03 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkIfDOOUJ0h_niLRZZL5HsHHOuQfUrVcQo 86a0f004d7 Added a comment: Works with mathjax, with a little help 2011-01-02 22:59:27 +00:00
Joey Hess 69b9fd132d remove second parameter to include_javascript
function used to take a second parameter to control absoluteness, no longer
does
2011-01-02 18:33:05 -04:00
http://lovesgoodfood.com/jason/ d245567765 Thanks! 2011-01-02 20:47:24 +00:00
http://mcfrisk.myopenid.com/ 37682a1cad Flowplayer question 2011-01-02 20:32:29 +00:00
Joey Hess c005091634 response 2011-01-02 15:53:46 -04:00
https://me.yahoo.com/a/tWUEtyB81ObIiNjLGnzBGEBKPviv#30f24 1741752d02 2011-01-01 20:20:40 +00:00