Added left-right menu, removed list
This commit is contained in:
parent
1bba76b71a
commit
158f06b3ad
16
FastBlog.sln
16
FastBlog.sln
|
|
@ -9,6 +9,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FastBlog.Web", "src\FastBlo
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FastBlog.Core", "src\FastBlog.Core\FastBlog.Core.csproj", "{B8CDA182-8097-4EF5-8EE2-CB73AF4B58AC}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "lib", "lib", "{240F51ED-532D-4980-8091-D9250EC7E7BD}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FastBlog.PluginBase", "lib\FastBlog.PluginBase\FastBlog.PluginBase.csproj", "{79C5D3D1-2ACB-4640-B8B0-A2B67514D041}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FastBlog.PluginLoader", "src\FastBlog.PluginLoader\FastBlog.PluginLoader.csproj", "{55384AAF-FCC5-4014-BABE-855575436217}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
|
@ -26,9 +32,19 @@ Global
|
|||
{B8CDA182-8097-4EF5-8EE2-CB73AF4B58AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B8CDA182-8097-4EF5-8EE2-CB73AF4B58AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B8CDA182-8097-4EF5-8EE2-CB73AF4B58AC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{79C5D3D1-2ACB-4640-B8B0-A2B67514D041}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{79C5D3D1-2ACB-4640-B8B0-A2B67514D041}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{79C5D3D1-2ACB-4640-B8B0-A2B67514D041}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{79C5D3D1-2ACB-4640-B8B0-A2B67514D041}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{55384AAF-FCC5-4014-BABE-855575436217}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{55384AAF-FCC5-4014-BABE-855575436217}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{55384AAF-FCC5-4014-BABE-855575436217}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{55384AAF-FCC5-4014-BABE-855575436217}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{C9A19395-1E93-488F-AD10-2C7D2DB78EB0} = {D7A1C18D-CC03-4704-B5B7-2F8B1A04E279}
|
||||
{B8CDA182-8097-4EF5-8EE2-CB73AF4B58AC} = {D7A1C18D-CC03-4704-B5B7-2F8B1A04E279}
|
||||
{79C5D3D1-2ACB-4640-B8B0-A2B67514D041} = {240F51ED-532D-4980-8091-D9250EC7E7BD}
|
||||
{55384AAF-FCC5-4014-BABE-855575436217} = {D7A1C18D-CC03-4704-B5B7-2F8B1A04E279}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
namespace FastBlog.PluginLoader;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
|
@ -4,5 +4,6 @@ public class DisplayOptions
|
|||
{
|
||||
public string Title { get; init; } = "FastBlog";
|
||||
|
||||
public Dictionary<string, string> Links { get; init; } = [];
|
||||
public Dictionary<string, string> LeftLinks { get; init; } = [];
|
||||
public Dictionary<string, string> RightLinks { get; init; } = [];
|
||||
}
|
||||
|
|
@ -58,12 +58,15 @@
|
|||
<h1>@options.Value.Title</h1>
|
||||
</a>
|
||||
</li>
|
||||
@foreach (var link in options.Value.LeftLinks)
|
||||
{
|
||||
<li>
|
||||
<a href="~/list">Blog</a>
|
||||
<a href="@link.Value">@link.Key</a>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
<ul>
|
||||
@foreach (var link in options.Value.Links)
|
||||
@foreach (var link in options.Value.RightLinks)
|
||||
{
|
||||
<li>
|
||||
<a href="@link.Value">@link.Key</a>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,11 @@
|
|||
},
|
||||
"Display": {
|
||||
"Title": "FastBlog",
|
||||
"Links": {
|
||||
"LeftLinks": {
|
||||
"GitHub": "https://github.com",
|
||||
"Mail": "mailto:mail@example.com"
|
||||
},
|
||||
"RightLinks": {
|
||||
"GitHub": "https://github.com",
|
||||
"Mail": "mailto:mail@example.com"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue