cfg_disable_comments in the config template to 0) and can also be enabled or disabled on a per story basis. Comments are never automatically published: they require approval one by one, unless it's posted by an identified user that also has section editor capabilities.
strftime(), so its full set of percent-prefixed commands is available.
status has been added to set the HTTP status.
gruta_mksite helper scripts has been renamed to gruta-mksite and it's also installed in /usr/local/bin.
gruta command line tool.
img tag if the Image::Size Perl module is detected and installed.
query_timeout argument.
set_date, to force a date to be assumed as today, to be used to take a look at how would a page be shown in the given date. Only usable by a logged-in admin user.
gruta_mksite, to help in the creation of a new site.
set_story_date, has been added to bin/gruta.
mod_rewrite keywords to be used if static_urls is set has been expanded.
RewriteRule ^/([0-9]+)\.html$ /?t=INDEX&offset=$1 [PT,L] RewriteRule ^/([0-9]+)-([0-9]+)\.html$ /?t=SEARCH_BY_DATE&from=$1&to=$2 [PT,L] RewriteRule ^/tag/(.+)\.html$ /?t=SEARCH_BY_TAG&tag=$1 [PT,L] RewriteRule ^/tag/$ /?t=TAGS [PT,L] RewriteRule ^/top/$ /?t=TOP_TEN [PT,L] RewriteRule ^/(.+)/$ /?t=TOPIC&topic=$1 [PT,L] RewriteRule ^/(.+)/index\.html$ /?t=TOPIC&topic=$1 [PT,L] RewriteRule ^/(.+)/([0-9]+)\.html$ /?t=TOPIC&topic=$1&offset=$2 [PT,L] RewriteRule ^/(.+)/(.+)\.html$ /?t=STORY&topic=$1&id=$2 [PT,L] RewriteRule ^/rss\.xml$ /?t=RSS [PT,L] RewriteRule ^/sitemap\.xml$ /?t=SITEMAP [PT,L] RewriteRule ^/style\.css$ /?t=CSS [PT,L]
Please note that version 4.1.2 of the Artemus template toolkit is required for this release to work properly.
stories_by_date has changed the order of their output values; now they are topic_id, id and date.
tag, to get feeds on stories by tag.
sources argument is still supported (only the first one is used, though), but the scalar source is preferred now.
.META extension has been changed to .M, and .TAGS to .T. Also, new files appear in the stories directory with the .A and .B extensions, holding the rendered abstract and story body, respectively. The transition is made automatically on the first run, no manual operation is needed.
hard_top_ten_limit to Gruta::Source::FS, to set the maximum number of stories to be tested when generating the top read stories index (previously hardcoded to 100).
min_size_for_gzip to Gruta::CGI, to set the minimum size for the output body to be Gzip compressed (previously hardcoded to 10000).
CSS, RSS and SITEMAP pages. The following mod_rewrite rule must be added to the ones suggested in the previous version:
RewriteRule ^/style\.css$ /?t=CSS [PT]
abstract, to paste a story's abstract, and body, to paste the full body of another one.
html_title, html_description and html_keywords.
index is present in a topic, the 'TOPIC' template shows its body instead of the list of stories in it.
gruta command line tool; new_story (to create a new story from STDIN), import_rss (to import an RSS file into a topic), update_story (to update a story from STDIN).
description, that is used in the HTML description meta tag in TOPIC or STORY.
%w to print the week day as a number.
dummy_touch to avoid updating the hits count of each story.
static_urls, that forces some urls (mainly links to topics and stories) to use a simplified, static-like look. You need to have the following Apache's mod_rewrite keywords for these urls to be re-converted to usable ones:
RewriteEngine On RewriteRule /(img|download)/.* - [L] RewriteRule ^/(.+)/index\.html$ /?t=TOPIC&topic=$1 [PT] RewriteRule ^/(.+)/(.+)\.html$ /?t=STORY&topic=$1&id=$2 [PT] RewriteRule ^/(.+)/$ /?t=TOPIC&topic=$1 [PT] RewriteRule ^/rss\.xml$ /?t=RSS [PT] RewriteRule ^/sitemap\.xml$ /?t=SITEMAP [PT]