Skip to content

Commit

Permalink
update to beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tesar-tech committed Jan 22, 2024
1 parent 9a2b421 commit d41f6b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Components/Layout/NavMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
("Home", ""),
("About", "about"),
("Tags", "tags"),
("Github",WebsiteKeys.GitHubRepo ),
("Github \u2b67",WebsiteKeys.GitHubRepo ),
};


Expand Down
4 changes: 3 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using BlazorStatic;
using Microsoft.Extensions.FileProviders;
using System.ComponentModel.DataAnnotations;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
using Zodoc;
using Zodoc.Components;

var builder = WebApplication.CreateBuilder(args);

builder.WebHost.UseStaticWebAssets();

builder.Services.AddBlazorStaticService(opt => {
opt.SuppressFileGeneration = false;
opt.IgnoredPathsOnContentCopy.AddRange(new[] { "app.css" });//pre-build version for tailwind
Expand All @@ -22,6 +23,7 @@
opt.MediaFolderRelativeToContentPath = "../media";
opt.AfterBlogParsedAndAddedAction = () => {
const string path = "Content/Blog/media/imgs_intro";
//Taking care of intro images
var extensions = new[] { "*.jpg", "*.png", "*.gif" };
var imageFiles = extensions.SelectMany(ext => Directory.GetFiles(path, ext));
var imagesIntro = imageFiles
Expand Down
5 changes: 1 addition & 4 deletions src/Zodoc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
<Folder Include="Content\Blog\" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\BlazorStatic\src\BlazorStatic.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="BlazorStatic" Version="1.0.0-beta.2" />
<PackageReference Include="BlazorStatic" Version="1.0.0-beta.4" />
</ItemGroup>

</Project>

0 comments on commit d41f6b9

Please sign in to comment.