Skip to content

Commit

Permalink
✨Added basic frontmatter support
Browse files Browse the repository at this point in the history
  • Loading branch information
koeeenig committed Feb 7, 2024
1 parent 7520d17 commit 53841c6
Show file tree
Hide file tree
Showing 123 changed files with 3,289 additions and 3,036 deletions.
1 change: 1 addition & 0 deletions .frontmatter/database/mediaDb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions .frontmatter/database/pinnedItemsDb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions .frontmatter/database/taxonomyDb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
28 changes: 17 additions & 11 deletions BlazeKit.sln
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,21 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Reactivity.Tests",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{6B6EFC67-31B4-4D2E-98D5-1A731AF98B0B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazeKit.Reactivity", "src\BlazeKit.Reactivity\BlazeKit.Reactivity.csproj", "{3CD31A61-9A86-4D79-A7A6-B6A4AD0BF7D8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Reactivity", "src\BlazeKit.Reactivity\BlazeKit.Reactivity.csproj", "{3CD31A61-9A86-4D79-A7A6-B6A4AD0BF7D8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazeKit.Routing.TestApp", "tests\BlazeKit.Routing.TestApp\BlazeKit.Routing.TestApp.csproj", "{196C36B5-D580-4C2D-BDFF-AFD530255F2E}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Routing.TestApp", "tests\BlazeKit.Routing.TestApp\BlazeKit.Routing.TestApp.csproj", "{196C36B5-D580-4C2D-BDFF-AFD530255F2E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{98E8084D-CE3D-429D-97B4-A7E41EDF1431}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazeKit.Static", "src\BlazeKit.Static\BlazeKit.Static.csproj", "{B28BBCD3-5A90-447E-8BAD-D78D7517AAD7}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Static", "src\BlazeKit.Static\BlazeKit.Static.csproj", "{B28BBCD3-5A90-447E-8BAD-D78D7517AAD7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazeKit.Site.Static", "src\BlazeKit.Site.Static\BlazeKit.Site.Static.csproj", "{FB0F7358-8500-46DF-B213-3E8980F70856}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Website", "src\BlazeKit.Website\BlazeKit.Website.csproj", "{AB38EF74-D766-4A77-A7F2-EA8B74AEA495}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazeKit.Website", "src\BlazeKit.Website\BlazeKit.Website.csproj", "{AB38EF74-D766-4A77-A7F2-EA8B74AEA495}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Website.Islands", "src\BlazeKit.Website.Islands\BlazeKit.Website.Islands.csproj", "{1C224EA5-8DE8-46E4-A0BE-20AEDB8ACB1D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazeKit.Website.Islands", "src\BlazeKit.Website.Islands\BlazeKit.Website.Islands.csproj", "{1C224EA5-8DE8-46E4-A0BE-20AEDB8ACB1D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Web", "src\BlazeKit.Web\BlazeKit.Web.csproj", "{788D739C-CA07-4E74-9F13-F3DA1A49C3A5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazeKit.Hydration", "src\BlazeKit.Hydration\BlazeKit.Hydration.csproj", "{90DC8A52-7AD7-4C60-AEE8-5E1F11C1F4AD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -91,10 +93,6 @@ Global
{B28BBCD3-5A90-447E-8BAD-D78D7517AAD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B28BBCD3-5A90-447E-8BAD-D78D7517AAD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B28BBCD3-5A90-447E-8BAD-D78D7517AAD7}.Release|Any CPU.Build.0 = Release|Any CPU
{FB0F7358-8500-46DF-B213-3E8980F70856}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FB0F7358-8500-46DF-B213-3E8980F70856}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FB0F7358-8500-46DF-B213-3E8980F70856}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FB0F7358-8500-46DF-B213-3E8980F70856}.Release|Any CPU.Build.0 = Release|Any CPU
{AB38EF74-D766-4A77-A7F2-EA8B74AEA495}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AB38EF74-D766-4A77-A7F2-EA8B74AEA495}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AB38EF74-D766-4A77-A7F2-EA8B74AEA495}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -103,6 +101,14 @@ Global
{1C224EA5-8DE8-46E4-A0BE-20AEDB8ACB1D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1C224EA5-8DE8-46E4-A0BE-20AEDB8ACB1D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1C224EA5-8DE8-46E4-A0BE-20AEDB8ACB1D}.Release|Any CPU.Build.0 = Release|Any CPU
{788D739C-CA07-4E74-9F13-F3DA1A49C3A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{788D739C-CA07-4E74-9F13-F3DA1A49C3A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{788D739C-CA07-4E74-9F13-F3DA1A49C3A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{788D739C-CA07-4E74-9F13-F3DA1A49C3A5}.Release|Any CPU.Build.0 = Release|Any CPU
{90DC8A52-7AD7-4C60-AEE8-5E1F11C1F4AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90DC8A52-7AD7-4C60-AEE8-5E1F11C1F4AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90DC8A52-7AD7-4C60-AEE8-5E1F11C1F4AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90DC8A52-7AD7-4C60-AEE8-5E1F11C1F4AD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -113,9 +119,9 @@ Global
{4D98C97D-CFCC-4473-BFD8-B28DA3199EF6} = {952B525D-297C-4F66-85E2-967C9982771F}
{196C36B5-D580-4C2D-BDFF-AFD530255F2E} = {952B525D-297C-4F66-85E2-967C9982771F}
{B28BBCD3-5A90-447E-8BAD-D78D7517AAD7} = {98E8084D-CE3D-429D-97B4-A7E41EDF1431}
{FB0F7358-8500-46DF-B213-3E8980F70856} = {98E8084D-CE3D-429D-97B4-A7E41EDF1431}
{AB38EF74-D766-4A77-A7F2-EA8B74AEA495} = {98E8084D-CE3D-429D-97B4-A7E41EDF1431}
{1C224EA5-8DE8-46E4-A0BE-20AEDB8ACB1D} = {98E8084D-CE3D-429D-97B4-A7E41EDF1431}
{788D739C-CA07-4E74-9F13-F3DA1A49C3A5} = {98E8084D-CE3D-429D-97B4-A7E41EDF1431}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8F0560BE-EE70-4DE3-8ACA-590A2B56C96A}
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>0.2.0</VersionPrefix>
<VersionPrefix>0.2.1</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Author>Andreas König</Author>
<Company>BlazeKit</Company>
Expand Down
66 changes: 66 additions & 0 deletions frontmatter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"$schema": "https://frontmatter.codes/frontmatter.schema.json",
"frontMatter.taxonomy.contentTypes": [
{
"name": "default",
"pageBundle": false,
"previewPath": null,
"fields": [
{
"title": "Title",
"name": "title",
"type": "string"
},
{
"title": "Description",
"name": "description",
"type": "string"
},
{
"title": "Publishing date",
"name": "date",
"type": "datetime",
"default": "{{now}}",
"isPublishDate": true
},
{
"title": "Content preview",
"name": "preview",
"type": "image"
},
{
"title": "Is in draft",
"name": "draft",
"type": "draft"
},
{
"title": "Tags",
"name": "tags",
"type": "tags"
},
{
"title": "Categories",
"name": "categories",
"type": "categories"
},
{
"title": "Author",
"name": "author",
"type": "string"
}
]
}
],
"frontMatter.framework.id": "other",
"frontMatter.content.publicFolder": "",
"frontMatter.content.pageFolders": [
{
"title": "Blog",
"path": "[[workspace]]/src/BlazeKit.Website/Content/Blog"
},
{
"title": "News",
"path": "[[workspace]]/src/BlazeKit.Website/Content/News"
}
]
}
1 change: 1 addition & 0 deletions src/BlazeKit.Abstraction/Config/BkConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public BkConfig()
public string Routes { get; set; }
public TailwindcssConfig Tailwindcss { get; set; }

public bool PreRender { get; set; } = false;

public static bool TryLoad(out BkConfig config)
{
Expand Down
10 changes: 10 additions & 0 deletions src/BlazeKit.Abstraction/IServerLoad.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Threading.Tasks;

namespace BlazeKit.Abstraction;

public interface IServerLoad<TResult>
{
Task<TResult> LoadAsync();

TResult Load();
}
12 changes: 12 additions & 0 deletions src/BlazeKit.CLI/AnsiConsoleExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Spectre.Console;

namespace BlazeKit.CLI;

public static class AnsiConsoleExtensions
{
[System.Diagnostics.Conditional("DEBUG")]
public static void Debug(this IAnsiConsole console, string message)
{
console.MarkupLine($"[bold yellow on blue] DEBUG: {message.EscapeMarkup()}[/]");
}
}
10 changes: 10 additions & 0 deletions src/BlazeKit.CLI/BlazeKit.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackAsTool>true</PackAsTool>
<VersionPrefix>0.2.1</VersionPrefix>
<ToolCommandName>bkit</ToolCommandName>
</PropertyGroup>

Expand Down Expand Up @@ -39,4 +40,13 @@
<PackageReference Include="Yaapii.Atoms" Version="3.0.0" />
</ItemGroup>

<ItemGroup>
<Folder Include="Commands\Run\Dev\" />
<Folder Include="Commands\Run\Tailwind\" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\BlazeKit.Static\BlazeKit.Static.csproj" />
</ItemGroup>

</Project>
Loading

0 comments on commit 53841c6

Please sign in to comment.