Serif version 0.5 released

I’m pleased to announce version 0.5 of Serif. (Note that this release
contains a change likely to break your pages. See below.)

Serif

Serif is a blogging system powered by markdown files and an optional
admin interface complete with drag-and-drop image uploading.

Project homepage: http://github.com/aprescott/serif
Issues: https://github.com/aprescott/serif/issues
Rubygems page: https://rubygems.org/gems/serif
Group/mailing list: https://groups.google.com/forum/#!forum/serif-rb
IRC: irc://irc.freenode.net/serif

For more information, see the README:

https://github.com/aprescott/serif#readme

Changes in version 0.5

The main change with this release is that generating a site will cause
errors whenever more than one post or draft would generate to the same
URL. You can see more about this at
https://github.com/aprescott/serif/pull/47 .

This release contains a breaking change: page.title in templates is
now a single string value, instead of an array of strings. If you were
previously using this in your templates:

{{ page.title | join: " - " }}

you should replace this with:

{{ page.title }}

page.title was previously a single-element array on all pages except
for individual posts, when it was

[ "Posts", post.title ]

For such pages, it is now simply post.title. If you were relying on
the value of “Posts” being present in page.title for post pages, you
should instead use the new post_page template variables. See:
https://github.com/aprescott/serif#template-variables

Summary:

  • Site generation will be blocked if any two posts or drafts lead to
    the same URL. (#47)
  • Bookmark links are generated with JavaScript instead of trying to
    detect Rack environment variables, which is buggy with some SSL
    configurations. (#52)
  • page.title is now a single value, instead of being an array. (#45)
  • post_page flag added for use in templates. Set to true when
    generating a post. (#45)
  • Better README documentation for headers and per-post permalinks. (#46)
  • serif with no arguments or -h or --help will now show usage.
    (#44)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs