README.md in toto-0.2.0 vs README.md in toto-0.2.1
- old
+ new
@@ -24,10 +24,12 @@
- toto is built right on top of **Rack**.
- comments are handled by [disqus](http://disqus.com)
- individual articles can be accessed through urls such as _/2009/11/21/blogging-with-toto_
- the archives can be accessed by year, month or day, wih the same format as above.
- arbitrary metadata can be included in articles files, and accessed from the templates.
+- summaries are generated intelligently by toto, following the `:max` setting you give it.
+- you can also define how long your summary is, by adding `~` at the end of it (`:delim`).
synopsis
--------
One would start by forking or cloning the `dorothy` repo, to get a basic skeleton:
@@ -111,9 +113,9 @@
set :title, Dir.pwd.split('/').last # site title
set :root, "index" # page to load on /
set :date, lambda {|now| now.strftime("%d/%m/%Y") } # date format for articles
set :markdown, :smart # use markdown + smart-mode
set :disqus, false # disqus id, or false
- set :summary, 150 # length of article summary
+ set :summary, :max => 150, :delim => /~\n/ # length of article summary and delimiter
set :ext, 'txt' # file extension for articles
Copyright (c) 2009 cloudhead. See LICENSE for details.