private SyndicationItem TransformPost(PostEntry entry) { entry = RenderEntry(entry); SyndicationItem item = new SyndicationItem(); item.Id = entry.Name; item.Title = SyndicationContent.CreatePlaintextContent(entry.Title); item.Content = SyndicationContent.CreateHtmlContent(Transformer.Transform(entry.Content)); item.AddPermalink(new Uri("http://otakustay.com/" + entry.Name + "/")); item.PublishDate = new DateTimeOffset(entry.PostDate); item.LastUpdatedTime = new DateTimeOffset(entry.UpdateDate); item.Authors.Add(Author.Clone()); return item; }
private PostEntry RenderEntry(PostEntry entry) { entry = entry.Clone(); entry.Content = Transformer.Transform(entry.Content); return entry; }