From 228dc6683dab0966c3827ff214430d7ccef0e26a Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 11 Jul 2026 15:33:05 +0900 Subject: [PATCH] Simplify RSS for Naver compatibility --- src/TaxBaik.Web/Pages/Rss.cshtml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/TaxBaik.Web/Pages/Rss.cshtml b/src/TaxBaik.Web/Pages/Rss.cshtml index d230c45..2fb1cc3 100644 --- a/src/TaxBaik.Web/Pages/Rss.cshtml +++ b/src/TaxBaik.Web/Pages/Rss.cshtml @@ -5,22 +5,20 @@ Response.ContentType = "application/rss+xml; charset=utf-8"; var rssContent = new System.Text.StringBuilder(); rssContent.AppendLine(""); - rssContent.AppendLine(""); + rssContent.AppendLine(""); rssContent.AppendLine(" "); rssContent.AppendLine(" 백원숙 세무회계 - 블로그"); rssContent.AppendLine(" https://www.taxbaik.com"); rssContent.AppendLine(" 세무사 백원숙의 세금, 부동산, 가족자산 전문 블로그"); rssContent.AppendLine(" ko-KR"); rssContent.AppendLine($" {Model.LastBuildDate}"); - rssContent.AppendLine(" "); rssContent.AppendLine(" 60"); foreach (var post in Model.Posts) { var postUrl = $"https://www.taxbaik.com/blog/{Uri.EscapeDataString(post.Slug)}"; - var description = post.Content?.Substring(0, Math.Min(200, post.Content?.Length ?? 0)) ?? string.Empty; - var safeDescription = description.Replace("]]>", "]]]]>"); - var safeContent = post.Content?.Replace("]]>", "]]]]>"); + var fullDescription = post.Content ?? string.Empty; + var safeDescription = fullDescription.Replace("]]>", "]]]]>"); rssContent.AppendLine(" "); rssContent.AppendLine($" {System.Net.WebUtility.HtmlEncode(post.Title)}"); @@ -33,12 +31,6 @@ } rssContent.AppendLine($" "); - - if (!string.IsNullOrWhiteSpace(safeContent)) - { - rssContent.AppendLine($" "); - } - rssContent.AppendLine(" "); }