diff --git a/nuspec/Piranha.Templates.nuspec b/nuspec/Piranha.Templates.nuspec index 73d69ee..743b988 100644 --- a/nuspec/Piranha.Templates.nuspec +++ b/nuspec/Piranha.Templates.nuspec @@ -2,7 +2,7 @@ Piranha.Templates - 10.3.0 + 11.0.0 Piranha CMS Templates Piranha CMS Piranha CMS diff --git a/src/empty/Empty.csproj b/src/empty/Empty.csproj index b01a5a0..bf025a0 100644 --- a/src/empty/Empty.csproj +++ b/src/empty/Empty.csproj @@ -1,28 +1,28 @@ - net6.0 + net8.0 enable - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/src/module/TemplateModule.csproj b/src/module/TemplateModule.csproj index 570f0ec..6343283 100644 --- a/src/module/TemplateModule.csproj +++ b/src/module/TemplateModule.csproj @@ -1,15 +1,15 @@  - net6.0 + net8.0 enable true - - - + + + diff --git a/src/web/mvc/Controllers/SetupController.cs b/src/web/mvc/Controllers/SetupController.cs index d2c3c03..54e70ae 100644 --- a/src/web/mvc/Controllers/SetupController.cs +++ b/src/web/mvc/Controllers/SetupController.cs @@ -214,60 +214,6 @@ await _api.Media.SaveAsync(new Piranha.Models.StreamMediaContent() }); await _api.Posts.SaveAsync(post2); - var post3 = await StandardPost.CreateAsync(_api); - post3.Id = Guid.NewGuid(); - post3.BlogId = blogPage.Id; - post3.Category = "Piranha"; - post3.Tags.Add("Development", "Release Info"); - post3.Title = "What's New In 10.0"; - post3.Slug = "whats-new"; - post3.MetaKeywords = "Piranha, Version, Information"; - post3.MetaDescription = "Here you can find information about what's included in the current release."; - post3.PrimaryImage = images["bird-s-eye-view-photography-of-lighted-city-3573383.jpg"]; - post3.Excerpt = "Here you can find information about what's included in the current release."; - post3.Published = DateTime.Now; - - post3.Blocks.Add(new HtmlBlock - { - Body = - "

Big thanks to @aatmmr, @brianpopow and @tedvanderveen for their contributions and all of the people who has helped with translating the manager.

" - }); - post3.Blocks.Add(new ColumnBlock - { - Items = new List - { - new MarkdownBlock - { - Body = - "#### Core\n\n" + - "* Remove the need to use MARS for SQL Server [#1417](https://github.com/piranhacms/piranha.core/issues/1417)\n" + - "* Detect EXIF orientation on mobile pictures [#1442](https://github.com/piranhacms/piranha.core/issues/1442)\n" + - "* Update BlobStorage to use Azure.Storage.Blobs [#1564](https://github.com/piranhacms/piranha.core/pull/1564)\n" + - "* Update Pomelo.EntityFrameworkCore.MySql [#1646](https://github.com/piranhacms/piranha.core/pull/1646)\n" + - "* Add sort order to fields [#1732](https://github.com/piranhacms/piranha.core/issues/1732)\n" + - "* Update to .NET 6 [#1733](https://github.com/piranhacms/piranha.core/issues/1733)\n" + - "* Use Identify to get image width and height [#1734](https://github.com/piranhacms/piranha.core/pull/1734)\n" + - "* Clean up application startup [#1738](https://github.com/piranhacms/piranha.core/issues/1738)\n" + - "* Add markdown block [#1744](https://github.com/piranhacms/piranha.core/issues/1744)\n" + - "* Remove description attributes [#1747](https://github.com/piranhacms/piranha.core/issues/1747)\n\n" + - "#### Manager\n\n" + - "* Add content settings (with region support) [#1524](https://github.com/piranhacms/piranha.core/issues/1524)\n" + - "* Update Summernote package [#1730](https://github.com/piranhacms/piranha.core/issues/1730)\n" + - "* Manager security update [#1741](https://github.com/piranhacms/piranha.core/issues/1741)\n" + - "* Redesign Add page button in manager [#1748](https://github.com/piranhacms/piranha.core/issues/1748)\n\n" + - "#### Bugfixes\n\n" + - "* Cannot access disposed object [#1701](https://github.com/piranhacms/piranha.core/issues/1701)\n" + - "* Invalid PageField URL in Manager [#1705](https://github.com/piranhacms/piranha.core/issues/1705)\n" - }, - new ImageBlock - { - Body = images["person-looking-at-phone-and-at-macbook-pro-1181244.jpg"] - } - } - }); - - await _api.Posts.SaveAsync(post3); - var comment = new Piranha.Models.PostComment { Author = "Håkan Edling", @@ -276,7 +222,7 @@ await _api.Media.SaveAsync(new Piranha.Models.StreamMediaContent() Body = "Awesome to see that the project is up and running! Now maybe it's time to start customizing it to your needs. You can find a lot of information in the official docs.", IsApproved = true }; - await _api.Posts.SaveCommentAsync(post3.Id, comment); + await _api.Posts.SaveCommentAsync(post2.Id, comment); return Redirect("~/"); } diff --git a/src/web/mvc/MvcWeb.csproj b/src/web/mvc/MvcWeb.csproj index b01a5a0..bf025a0 100644 --- a/src/web/mvc/MvcWeb.csproj +++ b/src/web/mvc/MvcWeb.csproj @@ -1,28 +1,28 @@ - net6.0 + net8.0 enable - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/src/web/razor/Controllers/SetupController.cs b/src/web/razor/Controllers/SetupController.cs index 2c414f5..7c244d0 100644 --- a/src/web/razor/Controllers/SetupController.cs +++ b/src/web/razor/Controllers/SetupController.cs @@ -214,60 +214,6 @@ await _api.Media.SaveAsync(new Piranha.Models.StreamMediaContent() }); await _api.Posts.SaveAsync(post2); - var post3 = await StandardPost.CreateAsync(_api); - post3.Id = Guid.NewGuid(); - post3.BlogId = blogPage.Id; - post3.Category = "Piranha"; - post3.Tags.Add("Development", "Release Info"); - post3.Title = "What's New In 10.0"; - post3.Slug = "whats-new"; - post3.MetaKeywords = "Piranha, Version, Information"; - post3.MetaDescription = "Here you can find information about what's included in the current release."; - post3.PrimaryImage = images["bird-s-eye-view-photography-of-lighted-city-3573383.jpg"]; - post3.Excerpt = "Here you can find information about what's included in the current release."; - post3.Published = DateTime.Now; - - post3.Blocks.Add(new HtmlBlock - { - Body = - "

Big thanks to @aatmmr, @brianpopow and @tedvanderveen for their contributions and all of the people who has helped with translating the manager.

" - }); - post3.Blocks.Add(new ColumnBlock - { - Items = new List - { - new MarkdownBlock - { - Body = - "#### Core\n\n" + - "* Remove the need to use MARS for SQL Server [#1417](https://github.com/piranhacms/piranha.core/issues/1417)\n" + - "* Detect EXIF orientation on mobile pictures [#1442](https://github.com/piranhacms/piranha.core/issues/1442)\n" + - "* Update BlobStorage to use Azure.Storage.Blobs [#1564](https://github.com/piranhacms/piranha.core/pull/1564)\n" + - "* Update Pomelo.EntityFrameworkCore.MySql [#1646](https://github.com/piranhacms/piranha.core/pull/1646)\n" + - "* Add sort order to fields [#1732](https://github.com/piranhacms/piranha.core/issues/1732)\n" + - "* Update to .NET 6 [#1733](https://github.com/piranhacms/piranha.core/issues/1733)\n" + - "* Use Identify to get image width and height [#1734](https://github.com/piranhacms/piranha.core/pull/1734)\n" + - "* Clean up application startup [#1738](https://github.com/piranhacms/piranha.core/issues/1738)\n" + - "* Add markdown block [#1744](https://github.com/piranhacms/piranha.core/issues/1744)\n" + - "* Remove description attributes [#1747](https://github.com/piranhacms/piranha.core/issues/1747)\n\n" + - "#### Manager\n\n" + - "* Add content settings (with region support) [#1524](https://github.com/piranhacms/piranha.core/issues/1524)\n" + - "* Update Summernote package [#1730](https://github.com/piranhacms/piranha.core/issues/1730)\n" + - "* Manager security update [#1741](https://github.com/piranhacms/piranha.core/issues/1741)\n" + - "* Redesign Add page button in manager [#1748](https://github.com/piranhacms/piranha.core/issues/1748)\n\n" + - "#### Bugfixes\n\n" + - "* Cannot access disposed object [#1701](https://github.com/piranhacms/piranha.core/issues/1701)\n" + - "* Invalid PageField URL in Manager [#1705](https://github.com/piranhacms/piranha.core/issues/1705)\n" - }, - new ImageBlock - { - Body = images["person-looking-at-phone-and-at-macbook-pro-1181244.jpg"] - } - } - }); - - await _api.Posts.SaveAsync(post3); - var comment = new Piranha.Models.PostComment { Author = "Håkan Edling", @@ -276,7 +222,7 @@ await _api.Media.SaveAsync(new Piranha.Models.StreamMediaContent() Body = "Awesome to see that the project is up and running! Now maybe it's time to start customizing it to your needs. You can find a lot of information in the official docs.", IsApproved = true }; - await _api.Posts.SaveCommentAsync(post3.Id, comment); + await _api.Posts.SaveCommentAsync(post2.Id, comment); return Redirect("~/"); } diff --git a/src/web/razor/RazorWeb.csproj b/src/web/razor/RazorWeb.csproj index b01a5a0..bf025a0 100644 --- a/src/web/razor/RazorWeb.csproj +++ b/src/web/razor/RazorWeb.csproj @@ -1,28 +1,28 @@ - net6.0 + net8.0 enable - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + +