class Announcement include MongoMapper::Document key :title_en, String key :content_en, String key :content_zh_tw, String def to_liquid { "id" => self.id, "title" => self.title, "content" => self.content } end end