-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #682 from poppastring/pin-to-home
Pin to home - Allows you to pin a single post to the home page for a more static entry point in the site.
- Loading branch information
Showing
12 changed files
with
88 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ pool: | |
|
||
variables: | ||
buildConfiguration: 'Release' | ||
version: 3.3 | ||
version: 3.4 | ||
|
||
steps: | ||
- task: UseDotNet@2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
source/DasBlog.Web.UI/Models/AdminViewModels/BlogPostListViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using DasBlog.Web.Models.BlogViewModels; | ||
|
||
namespace DasBlog.Web.Models.AdminViewModels | ||
{ | ||
public class BlogPostListViewModel | ||
{ | ||
public string Name { get; set; } | ||
|
||
public string Id { get; set; } | ||
|
||
public List<BlogPostListViewModel> Init(List<PostViewModel> posts) | ||
{ | ||
var allposts = posts.Select(p => new BlogPostListViewModel { Name = p.Title, Id = p.EntryId }).ToList(); | ||
|
||
allposts.Insert(0, new BlogPostListViewModel { Name = "--Disable Pinning--", Id = "" }); | ||
|
||
return allposts; | ||
} | ||
} | ||
} |
7 changes: 3 additions & 4 deletions
7
source/DasBlog.Web.UI/Models/AdminViewModels/DasBlogSettingsViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Collections.Generic; | ||
using DasBlog.Web.Models.BlogViewModels; | ||
|
||
namespace DasBlog.Web.Models.AdminViewModels | ||
{ | ||
public class DasBlogSettingsViewModel | ||
{ | ||
public MetaViewModel MetaConfig { get; set; } | ||
public SiteViewModel SiteConfig { get; set; } | ||
public List<PostViewModel> Posts { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters