浏览代码

Update _Layout.cshtml

KIM-JINO5 4 月之前
父节点
当前提交
df4233c025
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Views/Shared/_Layout.cshtml

+ 3 - 2
Views/Shared/_Layout.cshtml

@@ -5,7 +5,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>
         @ViewData["Title"]
-        @if (ViewData["Title"] != "")
+        @if (!string.IsNullOrEmpty(ViewData["Title"] as string))
         {
             <text>-</text>
         }
@@ -117,7 +117,7 @@
                         <div class="flex-none mb-2 sm:mb-0">
                             <span>Copyright &copy; @DateTime.Now.Year Kim jino All rights reserved.</span>
                         </div>
-                        <div class="flex-grow text-center sm:text-right"">
+                        <div class="flex-grow text-center sm:text-right">
                             <small>※ 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.</small>
                         </div>
                     </div>
@@ -130,5 +130,6 @@
     <script src="@Url.Content("~/js/site.js")"></script>
 
     @await RenderSectionAsync("Scripts", required: false)
+
 </body>
 </html>