Skip to content

Commit

Permalink
move Dublin Core Metadata section
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 8, 2024
1 parent 577b81b commit 0ea91e0
Showing 1 changed file with 33 additions and 32 deletions.
65 changes: 33 additions & 32 deletions src/Moonglade.Web/Pages/Settings/General.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
</div>
</div>

<div>
<div class="mb-3">
<h4 class="admin-subtitle fw-bold mb-2">
@SharedLocalizer["Footer"]
</h4>
Expand All @@ -255,6 +255,38 @@
<label class="form-label" asp-for="ViewModel.FooterCustomizedHtmlPitch"></label>
</div>
</div>

<div>
<h4 class="admin-subtitle fw-bold mb-2">
@SharedLocalizer["Dublin Core Metadata"]
</h4>
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi bi-globe settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@BlogConfig.GeneralSettings.UseDublinCoreMetaData" class="form-check-label"></label>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-switch form-control-lg">
<input type="hidden" name="UseDublinCoreMetaData" value="false">
<input type="checkbox" name="UseDublinCoreMetaData" value="true" class="form-check-input" @(BlogConfig.GeneralSettings.UseDublinCoreMetaData ? "checked" : null)>
</div>
</div>
</div>

<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-link settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@BlogConfig.GeneralSettings.DcLicenseUrl"></label>
</div>
<div class="col-md-5 text-end">
<input asp-for="@BlogConfig.GeneralSettings.DcLicenseUrl" class="form-control" />
</div>
</div>
</div>
</div>
<div class="col-6">
<div class="mb-3">
Expand Down Expand Up @@ -435,37 +467,6 @@
</div>
</div>
</div>
<div>
<h4 class="admin-subtitle fw-bold mb-2">
@SharedLocalizer["Dublin Core Metadata"]
</h4>
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi bi-globe settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@BlogConfig.GeneralSettings.UseDublinCoreMetaData" class="form-check-label"></label>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-switch form-control-lg">
<input type="hidden" name="UseDublinCoreMetaData" value="false">
<input type="checkbox" name="UseDublinCoreMetaData" value="true" class="form-check-input" @(BlogConfig.GeneralSettings.UseDublinCoreMetaData ? "checked" : null)>
</div>
</div>
</div>

<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-link settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@BlogConfig.GeneralSettings.DcLicenseUrl"></label>
</div>
<div class="col-md-5 text-end">
<input asp-for="@BlogConfig.GeneralSettings.DcLicenseUrl" class="form-control" />
</div>
</div>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 0ea91e0

Please sign in to comment.