Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
23c6cf4
#549 altering the list links render to use bootstrap 5 styling and co…
markidox Dec 12, 2024
72e0a88
#487 Moving page 'created by' options
markidox Feb 19, 2025
87d919c
bumping numbers
markidox Feb 19, 2025
143be72
#998 ensuring translatable strings are in place
markidox Mar 5, 2025
ab99a60
#762 changing appropriate h2 tags to h1
markidox Mar 18, 2025
a851550
version 8.1
JimKerslake Mar 28, 2025
8d20b0c
Merge pull request #630 from cloudscribe/version_8.1
JimKerslake Mar 28, 2025
44f7cd8
Merge branch 'master' into develop
JimKerslake Apr 8, 2025
9edaa94
Merge branch 'master' into develop
JimKerslake Apr 11, 2025
0382e37
Merge branch 'develop' into 487-v4
JimKerslake Apr 14, 2025
02f7e30
bump to 8.1.1 - jk
JimKerslake Apr 14, 2025
a1550a0
Merge pull request #620 from cloudscribe/487-v4
JimKerslake Apr 14, 2025
4d47977
Merge branch 'develop' into feature/549
JimKerslake Apr 14, 2025
92a78a0
bump version of content templates views - jk
JimKerslake Apr 14, 2025
4c4771d
Merge pull request #615 from cloudscribe/feature/549
JimKerslake Apr 14, 2025
62c0fd0
Merge branch 'develop' into feature/762
JimKerslake Apr 16, 2025
e8a11c9
Update cloudscribe.SimpleContent.CompiledViews.Bootstrap5.csproj
JimKerslake Apr 16, 2025
6e46a05
Merge pull request #628 from cloudscribe/feature/762
JimKerslake Apr 16, 2025
b5235a2
Merge branch 'develop' into feature/998
JimKerslake Apr 17, 2025
db24271
Merge pull request #626 from cloudscribe/feature/998
JimKerslake Apr 17, 2025
a870db1
Update update_version.ps1
JimKerslake Apr 30, 2025
6bbeff6
Update README.md
JimKerslake Apr 30, 2025
428ee33
Update cloudscribe.Core.SimpleContent.csproj
JimKerslake Apr 30, 2025
d1eae48
cloudscribe.Core.Web reference update
JimKerslake Apr 30, 2025
bb8f2e2
Update cloudscribe.Core.SimpleContent.csproj
JimKerslake Apr 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cloudscribe SimpleContent

A simple, yet flexible content and blog engine for ASP.NET Core that can work with or without a database. This project has borrowed significantly from [Mads Kristensen's MiniBlog](https://github.com/madskristensen/MiniBlog) both for ideas and code but re-implemented and extended in the newer ASP.NET Core framework. Get the big picture at [cloudscribe.com](https://www.cloudscribe.com/docs/introduction)
A simple, yet flexible content and blog engine for ASP.NET Core that can work with or without a database. This project has borrowed significantly from [Mads Kristensen's MiniBlog](https://github.com/madskristensen/MiniBlog) both for ideas and code but re-implemented and extended in the newer ASP.NET Core framework. Get the big picture at [cloudscribe.com](https://www.cloudscribe.com/docs/introduction)

[Documentation](https://www.cloudscribe.com/docs/cloudscribe-simplecontent) - in progress so check back often. Also note that cloudscribe SimpleContent is being used to make the documentation on [cloudscribe.com](https://www.cloudscribe.com)

Expand Down
4 changes: 2 additions & 2 deletions src/cloudscribe.ContentUtils/cloudscribe.ContentUtils.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>Content utilities for html and markdown</Description>
<Version>8.0.0</Version>
<Version>8.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;blog,content</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Description>Bootstrap 3 pre-compiled views for cloudscribe Core and SimpleContent integration</Description>
<Version>8.0.0</Version>
<Version>8.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Description>Bootstrap 4 pre-compiled views for cloudscribe Core and SimpleContent integration</Description>
<Version>8.0.0</Version>
<Version>8.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>Bootstrap 5 pre-compiled views for cloudscribe Core and SimpleContent integration</Description>
<Version>8.0.3</Version>
<Version>8.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>integration library for integrating cloudscribe SimpleContent with cloudscribe Core multi-tenant web app foundation</Description>
<Version>8.0.2</Version>
<Version>8.1.1</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;blog</PackageTags>
Expand All @@ -28,17 +28,17 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="cloudscribe.Core.Models" Version="8.0.0" />
<PackageReference Include="cloudscribe.Core.Identity" Version="8.0.0" />
<PackageReference Include="cloudscribe.Core.Web" Version="8.0.0" />
<PackageReference Include="cloudscribe.Web.Common" Version="8.0.0" />
<PackageReference Include="cloudscribe.FileManager.Web" Version="8.0.0" />
<PackageReference Include="cloudscribe.Syndication.Web" Version="8.0.0" />
<PackageReference Include="cloudscribe.Core.Models" Version="8.1.0" />
<PackageReference Include="cloudscribe.Core.Identity" Version="8.1.0" />
<PackageReference Include="cloudscribe.Core.Web" Version="8.1.1" />
<PackageReference Include="cloudscribe.Web.Common" Version="8.1.0" />
<PackageReference Include="cloudscribe.FileManager.Web" Version="8.1.2" />
<PackageReference Include="cloudscribe.Syndication.Web" Version="8.1.0" />

<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/cloudscribe.MetaWeblog/cloudscribe.MetaWeblog.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>a re-useable implementation of the metaweblog api for asp.net core</Description>
<Version>8.0.0</Version>
<Version>8.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;metaweblog;api;asp.net core</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Description>Bootstrap 3 pre-compiled views for cloudscribe.SimpleContent.Web</Description>
<Version>8.0.0</Version>
<Version>8.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Description>Bootstrap 4 pre-compiled views for cloudscribe.SimpleContent.Web</Description>
<Version>8.0.0</Version>
<Version>8.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<header class="jumbotron">
@if (Model.ProjectSettings.ShowTitle)
{
<h2 itemprop="headline name">@Model.CurrentPost.Title</h2>
<h1 itemprop="headline name">@Model.CurrentPost.Title</h1>
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
<input asp-for="Author" class="form-control" />
<span asp-validation-for="Author" class="invalid-feedback"></span>
</div>
<partial name="EditorialShowHidePartial" model="@Model" />
</div>
<div class="tab-pane" id="tabSettings" role="tabpanel" aria-labelledby="tab2">
<div class="mb-3 mt-2">
Expand Down Expand Up @@ -105,6 +104,7 @@
<label asp-for="MenuOnly" class="form-check-label">@sr["No Content Only Show Child Menu"]</label>
</div>
</div>
<partial name="EditorialShowHidePartial" model="@Model" />
<partial name="EditCommentsEnabledPartial" model="Model" />
<div class="mb-3">
<label asp-for="PageOrder">@sr["Page Order"]</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
<legend class="w-auto">@legend</legend>
<partial name="@Model.Template.EditView" model="@Model.TemplateModel" />
</fieldset>
<partial name="EditorialShowHidePartialTemplates" model="@Model" />
</div>
<div class="tab-pane" id="tabSettings" role="tabpanel" aria-labelledby="tab2">
<div class="mb-3 mt-2">
Expand All @@ -91,7 +90,7 @@
</div>
</div>


<partial name="EditorialShowHidePartialTemplates" model="@Model" />
<partial name="EditWithTemplateCommentsEnabledPartial" model="Model" />
<div class="mb-3">
<label asp-for="PageOrder">@sr["Page Order"]</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@model cloudscribe.SimpleContent.Web.ViewModels.BlogViewModel
@using cloudscribe.SimpleContent.Models
@using cloudscribe.SimpleContent.Web

@inject IStringLocalizer<SimpleContent> sr

@{
var path = Url.Action("AjaxPostComment", "Blog");
Expand All @@ -10,28 +10,28 @@
}
<form id="commentform" asp-antiforgery="true" class="form-horizontal" data-blog-path="@path">
<fieldset>
<legend>Post comment</legend>
<legend>@sr["Post comment"]</legend>

<div class="mb-3 row">
<label for="commentname" class="control-label col-sm-2">Name</label>
<label for="commentname" class="control-label col-sm-2">@sr["Name"]</label>
<div class="col-sm-7">
<input id="commentname" class="form-control" type="text" placeholder="Name" required />
</div>
</div>
<div class="mb-3 row">
<label for="commentemail" class="control-label col-sm-2">Email</label>
<label for="commentemail" class="control-label col-sm-2">@sr["Email"]</label>
<div class="col-sm-7">
<input id="commentemail" class="form-control" type="email" placeholder="Email" required />
</div>
</div>
<div class="mb-3 row">
<label for="commenturl" class="control-label col-sm-2">Website</label>
<label for="commenturl" class="control-label col-sm-2">@sr["Website"]</label>
<div class="col-sm-7">
<input id="commenturl" class="form-control" type="url" placeholder="Website URL" />
</div>
</div>
<div class="mb-3 row">
<label for="commentcontent" class="control-label col-sm-2">Comment (no HTML allowed)</label>
<label for="commentcontent" class="control-label col-sm-2">@sr["Comment (no HTML allowed)"]</label>
<div class="col-sm-10">
<textarea id="commentcontent" class="form-control" rows="4" placeholder="Comment" required></textarea>
</div>
Expand All @@ -49,7 +49,7 @@
<div class="mb-3 row">
<div class="col-sm-offset-2 col-sm-10">
<input name="postId2" type="hidden" value="@Model.CurrentPost.Id" />
<button class="btn btn-primary">Post comment</button>
<button class="btn btn-primary">@sr["Post comment"]</button>
<span id="status" class="alert" role="status" aria-live="polite"></span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
@using cloudscribe.SimpleContent.Web
@addTagHelper "*, cloudscribe.Web.Common"
@model cloudscribe.SimpleContent.Web.ViewModels.BlogViewModel
@inject IStringLocalizer<SimpleContent> sr

<article data-id="@Model.TmpComment.Id" itemscope itemtype="http://schema.org/UserComments" itemprop="comment" class="@(Model.TmpComment.IsAdmin ? "self" : null)">
<img gravatar-email="@Model.TmpComment.Email" gravatar-size="50" alt="Comment by @Model.TmpComment.Author" />
<div class="comment-item">
Expand All @@ -17,7 +19,7 @@
}
@if (Model.CanEdit)
{
<button class="deletecomment btn btn-link">Delete</button>
<button class="deletecomment btn btn-link">@sr["Delete"]</button>
@if (Model.ProjectSettings.ModerateComments && !Model.TmpComment.IsApproved)
{
<button class="approvecomment btn btn-link">Approve</button>
Expand All @@ -26,6 +28,6 @@
</div>
@if (Model.ProjectSettings.ModerateComments && !Model.TmpComment.IsApproved && !Model.CanEdit)
{
<div itemprop="approvalWarning">! The comment will not be visible until a moderator approves it !</div>
<div itemprop="approvalWarning">@sr["! The comment will not be visible until a moderator approves it !"]</div>
}
</article>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Description>Bootstrap 5 pre-compiled views for cloudscribe.SimpleContent.Web</Description>
<Version>8.0.6</Version>
<Version>8.1.2</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Description>A set of Content Templates for cloudscribe.SimpleContent using Bootstrap 4</Description>
<Version>8.0.0</Version>
<Version>8.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,48 @@
@using cloudscribe.SimpleContent.ContentTemplates.ViewModels
@inject IStringLocalizer<ContentTemplateResources> sr
@inject ILinkListOptionsProvider optionsProvider
@inject IOptions<IconCssClasses> iconClassesAccessor

@{

var icons = iconClassesAccessor.Value;
var sorted = Model.Items.OrderBy(x => x.Sort).ToList();
var options = await optionsProvider.ResolveLinkListOptions(Context.Request.Host.Host, Context.Request.Path);
var imageStyle = "height:" + options.ImageRenderMaxHeight.ToString() + "px;";
}
@functions {
public string GetTarget(ListItemModel item)
{
if (item.OpensInNewWindow) { return "_blank"; }
return null;
}
public string GetTarget(ListItemModel item)
{
if (item.OpensInNewWindow) { return "_blank"; }
return null;
}
}
<div class="content-top">
@Html.Raw(Model.ContentAbove)
</div>
<div class="links-wrap">
<ul class="list-group">
@for (int i = 0; i < Model.Items.Count; i++)
{
<div class="clearfix linklist-item">
<h2 class="h4"><a href="@sorted[i].LinkUrl" target="@GetTarget(sorted[i])">@sorted[i].Title</a></h2>

@if (!string.IsNullOrWhiteSpace(sorted[i].ResizedUrl))
{
<a target="@GetTarget(sorted[i])" href="@sorted[i].LinkUrl">
<img class="float-start me-2" src="@sorted[i].ResizedUrl" style="@imageStyle" alt="@sorted[i].AltText" />
</a>
}
<p class="linklist-item-description">@sorted[i].Description</p>
</div>
<li class="list-group-item d-flex justify-content-between align-items-start flex-column">
<div>
<h4 class="d-flex align-items-start"><a href="@sorted[i].LinkUrl" target="@GetTarget(sorted[i])">@sorted[i].Title</a>
@if (GetTarget(sorted[i]) == "_blank")
{
<span class="@icons.OpenInNewWindow ms-2 fs-6" aria-hidden="true"></span>
}
</h4>
</div>
<div class="d-flex me-auto">
@if (!string.IsNullOrWhiteSpace(sorted[i].ResizedUrl))
{
<a target="@GetTarget(sorted[i])" href="@sorted[i].LinkUrl">
<img class="flex-start me-2" src="@sorted[i].ResizedUrl" style="@imageStyle" alt="@sorted[i].AltText" />
</a>
}
<p class="list-group-item-description">@sorted[i].Description</p>
</div>
</li>
}
</div>
</ul>
<div class="mt-3 content-bottom">
@Html.Raw(Model.ContentBelow)
</div>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Description>A set of Content Templates for cloudscribe.SimpleContent using Bootstrap 5</Description>
<Version>8.0.0</Version>
<Version>8.1.1</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>cloudscribe.SimpleContent.MetaWeblog Class Library</Description>
<Version>8.0.0</Version>
<Version>8.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;metaweblog;blog;cms</PackageTags>
Expand All @@ -25,9 +25,9 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
<PackageReference Include="cloudscribe.DateTimeUtils" Version="8.0.0" />
<PackageReference Include="cloudscribe.Web.Navigation" Version="8.0.0" />
<PackageReference Include="cloudscribe.Versioning" Version="8.0.0" />
<PackageReference Include="cloudscribe.DateTimeUtils" Version="8.1.0" />
<PackageReference Include="cloudscribe.Web.Navigation" Version="8.1.0" />
<PackageReference Include="cloudscribe.Versioning" Version="8.1.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>cloudscribe.SimpleContent.Models Class Library</Description>
<Version>8.0.2</Version>
<Version>8.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Joe Audette</Authors>
<PackageTags>cloudscribe;blog;cms</PackageTags>
Expand All @@ -24,7 +24,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

<PackageReference Include="cloudscribe.Pagination.Models" Version="8.0.0" />
<PackageReference Include="cloudscribe.Pagination.Models" Version="8.1.0" />

<PackageReference Include="System.Security.Claims" Version="4.3.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>cloudscribe.SimpleContent.Security.SimpleAuth Class Library</Description>
Expand Down
Loading
Loading