fix: use shared assets in root site
This commit is contained in:
parent
4c86a43a84
commit
419aae741d
@ -1,6 +1,7 @@
|
|||||||
using Markdig;
|
using Markdig;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NLog.Extensions.Logging;
|
using NLog.Extensions.Logging;
|
||||||
|
using OliverBooth.Common;
|
||||||
using OliverBooth.Common.Extensions;
|
using OliverBooth.Common.Extensions;
|
||||||
using OliverBooth.Data;
|
using OliverBooth.Data;
|
||||||
using OliverBooth.Markdown.Template;
|
using OliverBooth.Markdown.Template;
|
||||||
@ -13,6 +14,8 @@ builder.Configuration.AddTomlFile("data/config.toml", true, true);
|
|||||||
|
|
||||||
builder.Logging.ClearProviders();
|
builder.Logging.ClearProviders();
|
||||||
builder.Logging.AddNLog();
|
builder.Logging.AddNLog();
|
||||||
|
|
||||||
|
builder.Services.ConfigureOptions<OliverBoothConfigureOptions>();
|
||||||
builder.Services.AddHostedSingleton<LoggingService>();
|
builder.Services.AddHostedSingleton<LoggingService>();
|
||||||
builder.Services.AddSingleton<ConfigurationService>();
|
builder.Services.AddSingleton<ConfigurationService>();
|
||||||
builder.Services.AddSingleton<TemplateService>();
|
builder.Services.AddSingleton<TemplateService>();
|
||||||
|
Loading…
Reference in New Issue
Block a user