-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows you to pin a specific post to your home page. Your RSS feed wi…
…ll continue to be updated but the home page is more versatile.
- Loading branch information
1 parent
df36b23
commit 43b33c9
Showing
11 changed files
with
87 additions
and
13 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
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