Commit graph

120 commits

Author SHA1 Message Date
Uriel
b5800c33ef Strip title from rss/atom 'summary'(ie., body).
This used to look really ugly in most feed readers.
2009-06-13 15:59:43 +02:00
Uriel
a1c0c70f36 Allo to set blagh conf_ options from initrc.local as well. 2009-06-12 23:59:47 +02:00
Uriel
e197bfb743 Optimization/fix to only pass the content of all blog posts at once to $formatter
This seems to some how fix a strange bug I have seen on my test setup, need to investigate more.
2009-06-12 23:56:48 +02:00
Uriel
6eee7a07aa New configuration variable for blagh: conf_max_posts_per_page sets the maximum numbers to display in a blog feed, default is 32. Note that this also affects rss feeds. 2009-06-12 23:44:21 +02:00
Uriel
9d7ac1c517 Do not set handler if man page doesn't exist so we can provide proper 404 (or other fall-back)
Make 'Intro' page title fixing case-insensitive to deal with Plan B man pages.
2009-05-29 10:04:27 +00:00
Uriel
fd2f9540c9 Don't add extra / to url when we redirect to proper path in wman 2009-04-19 23:56:05 +00:00
Uriel
de077b0e51 Merge 2009-04-19 15:23:15 +00:00
Uriel
a954647be4 Fix umask for newly created dirdir pages. 2009-03-17 01:02:35 +00:00
Uriel
5470a678f7 Fix null concat in wman search code. 2009-03-16 23:42:44 +00:00
Uriel
e6f200a5a2 Clean up dirdir, less code, and less bugs! 2009-03-14 14:25:54 +01:00
Uriel
673bdaf664 Reorg headers, http headers now are echo-ed from werc.rc instead of being part of headers.tpl.
This fixes some bugs in the handling HEAD and makes things a bit more clear.
2009-03-13 13:04:25 +01:00
Uriel
3836ee8f56 More wman updates, new search functionality and handle better corner cases. 2009-03-13 10:51:07 +00:00
Uriel
8488a0b651 Yet another version of wman, templatized, and now Unix man pages use the same path style as Plan 9/Inferno. 2009-03-10 01:16:13 +00:00
Uriel
d12a6910c0 Big update to wman app. Many fixes and improvements. 2009-03-09 22:16:39 +00:00
Uriel
ebfd6561cf First draft of wman app to browse and display manpages. 2009-03-06 16:32:33 +00:00
Uriel
5d4157063c Reverse the RSS/ATOM discovery tag order, make ATOM the default. 2009-03-06 00:15:26 +00:00
Uriel
ada935e42b Only display Edit button when no other handler_body_main has been set (ie., if file really doesn't exist). 2009-03-04 09:05:40 +01:00
Uriel
6c88960330 Implement file creation for dirdir. 2009-03-04 03:12:54 +01:00
Uriel
2a34765dbc Add mising </p>. 2009-03-03 21:37:36 +00:00
Uriel
c9b9e4e9bf Preserve ifs when calling other functions after temporary altering it. Fixes a couple of minor bugs.
Added difs env var that can be used anywhere to restore default ifs.
2009-03-03 20:23:00 +00:00
Uriel
8c932c3a55 Rename $blog_editors to $conf_blog_editors and give it the default value of 'blog-editors'. 2009-02-28 13:26:40 +00:00
Uriel
a3c2c71275 Big overhaul of dirdir rewriting most code to be much simpler, reliable and efficient.
Now we have a wiki engine in ~20 lines of code!
2009-02-26 11:50:18 +01:00
Uriel
b00107e3b8 Make bridge app more correct: only activated when GET-ing pages which can have comments and don't get confused by other apps POSTs. Simplify code along the way. 2009-02-26 11:42:20 +01:00
Uriel
b9d64d6bd2 Fix incorrect recording of author on edits. And write a note on a very minnor bug that adds extra new lines at the end of edited files. 2009-02-25 17:15:00 +00:00
Uriel
32dd50dff9 Add hr abobe comments login request message. 2009-02-23 08:23:35 +00:00
Uriel
ef3eeca673 Minor correction to atom and rss link urls. 2009-02-20 23:15:08 +00:00
Uriel
bab24f9cdf Improve the atom and rss templates: fix bugs in link attirbutes, simplify code, and include html posts in rss feeds instead of raw markdown. 2009-02-18 09:28:20 +00:00
Uriel
77f2dcce59 Move comments display to a template. Show a link to login page when required for posting comments. 2009-02-16 03:46:21 +00:00
Uriel
47955dd43a Replace switch with series of if, makes the code slightly cleaner, I think. 2009-02-16 02:27:28 +00:00
Uriel
5c9fadef99 Remove xml comments from atom feed output and convert them to rc comments instead. Remove limit on atom post sized. 2009-02-15 14:50:50 +00:00
Uriel
a57e5f6a5a Fix dates display in blogs. 2009-02-14 20:34:23 +00:00
Uriel
a646e5bf99 Fix silly html syntax error that all browsers but opera ignored. 2009-02-13 23:22:02 +00:00
Uriel
58982018d4 Updates to blagh: Allow setting date of new posts, blog-editors default group, provide better error repporting using new notification framework, plus other bug fixes. 2009-02-13 23:21:15 +00:00
Uriel
070ba578f4 Use correct post title in rss feeds. 2009-02-13 23:19:24 +00:00
Uriel
e9aacb8ff4 Brown papperbag bug: do not include html headers in rss/atom feeds! 2009-02-13 13:23:19 +00:00
Uriel
9604018c42 Add blog header and rss/atom feed links, and fix a bug for agregated blog dirs. 2009-02-12 22:03:57 +00:00
Uriel
7151777d9b Add conf_enable_app to add items to $enabled_apps, used from conf_enable_xxx functions so one doesn't need to both add stuff to $eanbled_apps and then call conf_enable_xxx, and to avoid enabling the same app twice.
New conf_enable_wiki function to follow the interface of other apps.
2009-02-08 00:22:46 +00:00
Uriel
64e3d86654 Display date in post listing. 2009-02-01 20:03:27 +01:00
Uriel
64311bb30b Store and display comment posted date/time. 2009-02-01 20:02:22 +01:00
Uriel
7069e2af93 add comment about how note is never displayed due to subsequent redirect. 2009-01-30 16:48:49 +01:00
Uriel
f71c7866f4 New version of comments module, must more reliable and polished. 2009-01-30 16:10:14 +01:00
Uriel
f5af1b5fe8 Be smarter about when to enable comments, and make it configurable. 2009-01-26 06:12:45 +01:00
Uriel
219ec79f69 Only allow comments for .md files, this avoids silly things like comments for
loggin form pages, but will need to be improved to become more general.

Simplify some code a bit and cosmetic improvements.
2009-01-26 04:56:05 +01:00
Uriel
93d4483939 Upgrade and cleanup dirdir, move to app framework, and its implementation more elegant and reliable. 2009-01-26 03:37:47 +01:00
Uriel
a7c9b41901 Fix syntax error, and some cosmetic improvments to html form. 2009-01-25 16:54:03 +01:00
Uriel
86af4c88d2 Add tempalte for blog posting via web interface. 2009-01-25 16:53:21 +01:00
Uriel
5755022405 Move blagh feed templates to app dir, be smarter when enabling 'implicit' blogs, and upgrade the web interface for blog posting. 2009-01-25 16:52:19 +01:00
Uriel
4b43af43ff Make comments form look less hideous 2009-01-24 07:22:43 +01:00
Uriel
f87339e98b Add some comments and replace get_post_args with load_post_args 2009-01-24 07:11:39 +01:00
Uriel
7028e84bf0 Simplify init code to take advantage of the new blagh_root variable. Fix and cleanup various things. 2009-01-23 16:44:42 +01:00