Pārlūkot izejas kodu

详情页更改模块排序

懒得勤快 5 gadi atpakaļ
vecāks
revīzija
ef3af57aea

+ 1 - 0
.gitignore

@@ -273,3 +273,4 @@ Test
 /src/Masuit.MyBlogs.Core/*.DotSettings
 material_admin_v-1.5-2
 /src/Masuit.MyBlogs.Core/App_Data/subjects.json
+/src/Masuit.MyBlogs.Core/wwwroot/subjects.json

+ 3 - 3
src/Masuit.MyBlogs.Core/Masuit.MyBlogs.Core.csproj

@@ -30,14 +30,14 @@
     </ItemGroup>
 
     <ItemGroup>
-        <PackageReference Include="Aliyun.OSS.SDK.NetCore" Version="2.11.0" />
+        <PackageReference Include="Aliyun.OSS.SDK.NetCore" Version="2.12.0" />
         <PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.0.2" />
         <PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="4.0.1" />
-        <PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.0.1" />
+        <PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.0" />
         <PackageReference Include="CacheManager.Microsoft.Extensions.Caching.Memory" Version="2.0.0-beta-1629" />
         <PackageReference Include="CacheManager.Serialization.Json" Version="2.0.0-beta-1629" />
         <PackageReference Include="CSRedisCore" Version="3.6.5" />
-        <PackageReference Include="Hangfire" Version="1.7.15" />
+        <PackageReference Include="Hangfire" Version="1.7.16" />
         <PackageReference Include="Hangfire.Autofac" Version="2.3.1" />
         <PackageReference Include="Hangfire.MemoryStorage" Version="1.7.0" />
         <PackageReference Include="htmldiff.net-core" Version="1.3.6" />

+ 14 - 15
src/Masuit.MyBlogs.Core/Views/Post/Details.cshtml

@@ -224,20 +224,6 @@
                         }
                     </div>
                 </section>
-                <section class="wow padding-bot20 animated fadeIn">
-                    <h3>版权声明:</h3>
-                    <p class="text-red size16">
-                        @if (Model.DisableCopy)
-                        {
-                            <text>🈲⚠本文为作者原创,仅用于本站访客学习、研究和交流目的,未经授权禁止转载。️⚠🈲 </text>
-                        }
-                        else
-                        {
-                            <text>本文仅用于学习、研究和交流目的,欢迎非商业性质转载。本文链接:<a asp-controller="Post" asp-action="Details" asp-route-id="@Model.Id">@HttpUtility.UrlDecode(Context.Request.Scheme + "://" + Context.Request.Host + Context.Request.Path)</a>。</text>
-                            @Html.Raw(CommonHelper.SystemSettings["Disclaimer"])
-                        }
-                    </p>
-                </section>
                 @if (Model.PostHistoryVersion.Any())
                 {
                     <section class="wow margintop20 animated fadeIn">
@@ -266,7 +252,20 @@
                         </section>
                     }
                 }
-                <hr>
+                <section class="wow padding-bot20 animated fadeIn">
+                    <h3>版权声明:</h3>
+                    <p class="text-red size16">
+                        @if (Model.DisableCopy)
+                        {
+                            <text>🈲⚠本文为作者原创,仅用于本站访客学习、研究和交流目的,未经授权禁止转载。️⚠🈲 </text>
+                        }
+                        else
+                        {
+                            <text>本文仅用于学习、研究和交流目的,欢迎非商业性质转载。本文链接:<a asp-controller="Post" asp-action="Details" asp-route-id="@Model.Id">@HttpUtility.UrlDecode(Context.Request.Scheme + "://" + Context.Request.Host + Context.Request.Path)</a>。</text>
+                            @Html.Raw(CommonHelper.SystemSettings["Disclaimer"])
+                        }
+                    </p>
+                </section>
                 <section class="wow row animated fadeIn">
                     <div class="col-lg-12">
                         <h3>评论区:</h3>

+ 14 - 15
src/Masuit.MyBlogs.Core/Views/Post/Details_Admin.cshtml

@@ -219,20 +219,6 @@
                         </p>
                     </section>
                 }
-                <section class="wow padding-bot20 animated fadeIn">
-                    <h3>版权声明:</h3>
-                    <p class="text-red size16">
-                        @if (Model.DisableCopy)
-                        {
-                            <text>🈲⚠本文为作者原创,仅用于本站访客学习、研究和交流目的,未经授权禁止转载。️⚠🈲</text>
-                        }
-                        else
-                        {
-                            <text>本文仅用于学习、研究和交流目的,欢迎非商业性质转载。本文链接:<a asp-controller="Post" asp-action="Details" asp-route-id="@Model.Id">@HttpUtility.UrlDecode(Context.Request.Scheme + "://" + Context.Request.Host + Context.Request.Path)</a>。</text>
-                            @Html.Raw(CommonHelper.SystemSettings["Disclaimer"])
-                        }
-                    </p>
-                </section>
                 @{
                     var posts = (List<Post>)ViewBag.Related;
                     if (posts.Any())
@@ -251,7 +237,20 @@
                         </section>
                     }
                 }
-                <hr>
+                <section class="wow padding-bot20 animated fadeIn">
+                    <h3>版权声明:</h3>
+                    <p class="text-red size16">
+                        @if (Model.DisableCopy)
+                        {
+                            <text>🈲⚠本文为作者原创,仅用于本站访客学习、研究和交流目的,未经授权禁止转载。️⚠🈲</text>
+                        }
+                        else
+                        {
+                            <text>本文仅用于学习、研究和交流目的,欢迎非商业性质转载。本文链接:<a asp-controller="Post" asp-action="Details" asp-route-id="@Model.Id">@HttpUtility.UrlDecode(Context.Request.Scheme + "://" + Context.Request.Host + Context.Request.Path)</a>。</text>
+                            @Html.Raw(CommonHelper.SystemSettings["Disclaimer"])
+                        }
+                    </p>
+                </section>
                 <section class="wow row animated fadeIn">
                     <div class="col-lg-12">
                         <h3>评论区:</h3>