Figure out theme problems!

This commit is contained in:
2023-03-24 10:03:19 -05:00
parent b63d7f546c
commit 8876e34473
43 changed files with 73 additions and 79 deletions

View File

@@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrchardCore.Cms.MarkdownImport.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
}
}

View File

@@ -0,0 +1,10 @@
using OrchardCore.Modules.Manifest;
[assembly: Module(
Name = "OrchardCore.Cms.MarkdownImport",
Author = "Ben Ramey",
Website = "https://benramey.com",
Version = "0.0.1",
Description = "Provides mechanism to import markdown files.",
Category = "Content Management"
)]

View File

@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="OrchardCore.Module.Targets" Version="1.5.0" />
<PackageReference Include="OrchardCore.ContentManagement" Version="1.5.0" />
<PackageReference Include="OrchardCore.ContentTypes.Abstractions" Version="1.5.0" />
<PackageReference Include="OrchardCore.DisplayManagement" Version="1.5.0" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,25 @@
using Fluid;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Modules;
namespace OrchardCore.Cms.MarkdownImport
{
public class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
}
public override void Configure(IApplicationBuilder builder, IEndpointRouteBuilder routes, IServiceProvider serviceProvider)
{
routes.MapAreaControllerRoute(
name: "Home",
areaName: "OrchardCore.Cms.MarkdownImport",
pattern: "Home/Index",
defaults: new { controller = "Home", action = "Index" }
);
}
}
}

View File

@@ -0,0 +1 @@
Template