Version 2.2.1 of the Gruta CMS, codenamed "Montecatini", has been released. The following changes were made:
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]