@page "/feed.xml" @model TaxBaik.Web.Pages.RssModel @{ Response.ContentType = "application/rss+xml; charset=utf-8"; }@{ var rssContent = new System.Text.StringBuilder(); rssContent.AppendLine(""); rssContent.AppendLine(""); rssContent.AppendLine(" "); rssContent.AppendLine(" 백원숙 세무회계 - 블로그"); rssContent.AppendLine(" https://www.taxbaik.com/taxbaik"); rssContent.AppendLine(" 세무사 백원숙의 세금, 부동산, 가족자산 전문 블로그"); rssContent.AppendLine(" ko-kr"); rssContent.AppendLine($" {Model.LastBuildDate}"); rssContent.AppendLine(" 60"); foreach (var post in Model.Posts) { rssContent.AppendLine(" "); rssContent.AppendLine($" {System.Net.WebUtility.HtmlEncode(post.Title)}"); rssContent.AppendLine($" https://www.taxbaik.com/taxbaik/blog/{post.Slug}"); rssContent.AppendLine($" https://www.taxbaik.com/taxbaik/blog/{post.Slug}"); rssContent.AppendLine($" {post.PublishedAt?.ToString("R")}"); var desc = post.Content?.Substring(0, Math.Min(200, post.Content?.Length ?? 0)) ?? ""; rssContent.AppendLine($" {System.Net.WebUtility.HtmlEncode(desc)}"); if (!string.IsNullOrEmpty(post.Content)) { rssContent.AppendLine($" "); } rssContent.AppendLine(" "); } rssContent.AppendLine(" "); rssContent.AppendLine(""); }@rssContent.ToString()