-
-
Notifications
You must be signed in to change notification settings - Fork 197
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 #443 from poppastring/fix-summary-themes
Fix summary portion of the theme
- Loading branch information
Showing
12 changed files
with
92 additions
and
130 deletions.
There are no files selected for viewing
42 changes: 11 additions & 31 deletions
42
source/DasBlog.Web.UI/Themes/darkly/_BlogItemSummary.cshtml
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,37 +1,17 @@ | ||
@model PostViewModel | ||
@{ | ||
ViewData["Title"] = @Model.Title; | ||
} | ||
|
||
<div class="post"> | ||
<div class="row post-title"> | ||
<div class="col-md-12 mb-6"> | ||
<h2><post-title-link post=@Model /></h2> | ||
<small class="text-muted"><post-created-date post="@Model" /></small> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="card flex-md-row mb-4 shadow-sm h-md-250"> | ||
<div class="card-body d-flex flex-column align-items-start"> | ||
<small class="text-muted"><post-categories-list post="@Model" /></small> | ||
<h3 class="mb-0"> | ||
<post-title-link post=@Model /> | ||
</h3> | ||
<small class="mb-1 text-muted"><post-created-date post="@Model" /></small> | ||
<p class="card-text mb-auto"><post-content post="@Model" strip-html="true" content-length="20" /></p> | ||
|
||
<div class="row post-body"> | ||
<div class="col-md-12 mb-6"> | ||
<post-content post="@Model" /> | ||
</div> | ||
</div> | ||
<div class="row post-footer"> | ||
<div class="col-md-12 mb-6"> | ||
Categories: <post-categories-list post="@Model" /> | ||
</div> | ||
<div class="col-md-12 mb-6"> | ||
Share on <post-to-twitter post="@Model">Twitter</post-to-twitter> or <post-to-facebook post="@Model">Facebook</post-to-facebook> | ||
</div> | ||
<div dasblog-authorized class="col-md-12 mb-6"> | ||
<post-edit-link post="@Model" /> | ||
<span style="display:inline-block; width: 1em;"></span> | ||
<post-delete-link post="@Model" /> | ||
</div> | ||
<div class="col-md-12 mb-6"> | ||
<post-comment-link post="@Model" /> | ||
<post-title-link post=@Model>Continue reading...</post-title-link> | ||
</div> | ||
<img class="card-img-right flex-auto d-none d-lg-block" style="width: 200px; height: 250px;" alt="Thumbnail [200x250]" src="data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%22200%22%20height%3D%22250%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%20250%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_166f4e7d3df%20text%20%7B%20fill%3A%23eceeef%3Bfont-weight%3Abold%3Bfont-family%3AArial%2C%20Helvetica%2C%20Open%20Sans%2C%20sans-serif%2C%20monospace%3Bfont-size%3A13pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_166f4e7d3df%22%3E%3Crect%20width%3D%22200%22%20height%3D%22250%22%20fill%3D%22%2355595c%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%2256.19000244140625%22%20y%3D%22130.97899951934815%22%3EThumbnail%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E" data-src="holder.js/200x250?theme=thumb" data-holder-rendered="true"> | ||
</div> | ||
</div> | ||
|
||
<hr /> |
12 changes: 9 additions & 3 deletions
12
source/DasBlog.Web.UI/Themes/darkly/_BlogPageSummary.cshtml
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,7 +1,13 @@ | ||
@using DasBlog.Web.Models.BlogViewModels; | ||
@model ListPostsViewModel | ||
|
||
<div class="row"> | ||
<div id="contents" class="container col-md-12"> | ||
<partial name="_BlogItemsSummary" model="Model" /> | ||
<div class="jumbotron p-3 p-md-5 text-white rounded bg-dark mt-lg-2"> | ||
<div class="col-md-6 px-0"> | ||
<h1 class="display-4 font-italic"><site-sub-title /></h1> | ||
<p class="lead my-3"><site-description /></p> | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-2"> | ||
<partial name="_BlogItemsSummary" model="Model" /> | ||
</div> |
42 changes: 11 additions & 31 deletions
42
source/DasBlog.Web.UI/Themes/dasblog/_BlogItemSummary.cshtml
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,37 +1,17 @@ | ||
@model PostViewModel | ||
@{ | ||
ViewData["Title"] = @Model.Title; | ||
} | ||
|
||
<div class="post"> | ||
<div class="row post-title"> | ||
<div class="col-md-12 mb-6"> | ||
<h2><post-title-link post=@Model /></h2> | ||
<small class="text-muted"><post-created-date post="@Model" /></small> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="card flex-md-row mb-4 shadow-sm h-md-250"> | ||
<div class="card-body d-flex flex-column align-items-start"> | ||
<small class="text-muted"><post-categories-list post="@Model" /></small> | ||
<h3 class="mb-0"> | ||
<post-title-link post=@Model /> | ||
</h3> | ||
<small class="mb-1 text-muted"><post-created-date post="@Model" /></small> | ||
<p class="card-text mb-auto"><post-content post="@Model" strip-html="true" content-length="20" /></p> | ||
|
||
<div class="row post-body"> | ||
<div class="col-md-12 mb-6"> | ||
<post-content post="@Model" /> | ||
</div> | ||
</div> | ||
<div class="row post-footer"> | ||
<div class="col-md-12 mb-6"> | ||
Categories: <post-categories-list post="@Model" /> | ||
</div> | ||
<div class="col-md-12 mb-6"> | ||
Share on <post-to-twitter post="@Model">Twitter</post-to-twitter> or <post-to-facebook post="@Model">Facebook</post-to-facebook> | ||
</div> | ||
<div dasblog-authorized class="col-md-12 mb-6"> | ||
<post-edit-link post="@Model" /> | ||
<span style="display:inline-block; width: 1em;"></span> | ||
<post-delete-link post="@Model" /> | ||
</div> | ||
<div class="col-md-12 mb-6"> | ||
<post-comment-link post="@Model" /> | ||
<post-title-link post=@Model>Continue reading...</post-title-link> | ||
</div> | ||
<img class="card-img-right flex-auto d-none d-lg-block" style="width: 200px; height: 250px;" alt="Thumbnail [200x250]" src="data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%22200%22%20height%3D%22250%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%20250%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_166f4e7d3df%20text%20%7B%20fill%3A%23eceeef%3Bfont-weight%3Abold%3Bfont-family%3AArial%2C%20Helvetica%2C%20Open%20Sans%2C%20sans-serif%2C%20monospace%3Bfont-size%3A13pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_166f4e7d3df%22%3E%3Crect%20width%3D%22200%22%20height%3D%22250%22%20fill%3D%22%2355595c%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%2256.19000244140625%22%20y%3D%22130.97899951934815%22%3EThumbnail%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E" data-src="holder.js/200x250?theme=thumb" data-holder-rendered="true"> | ||
</div> | ||
</div> | ||
|
||
<hr /> |
13 changes: 9 additions & 4 deletions
13
source/DasBlog.Web.UI/Themes/dasblog/_BlogPageSummary.cshtml
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,8 +1,13 @@ | ||
@using DasBlog.Web.Models.BlogViewModels; | ||
@model ListPostsViewModel | ||
|
||
<div class="row"> | ||
<div id="contents" class="container col-md-9"> | ||
<partial name="_BlogItemsSummary" model="Model" /> | ||
<div class="jumbotron p-3 p-md-5 text-white rounded bg-dark mt-lg-2"> | ||
<div class="col-md-6 px-0"> | ||
<h1 class="display-4 font-italic"><site-sub-title /></h1> | ||
<p class="lead my-3"><site-description /></p> | ||
</div> | ||
<site-search-box/> | ||
</div> | ||
|
||
<div class="row mb-2"> | ||
<partial name="_BlogItemsSummary" model="Model" /> | ||
</div> |
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
42 changes: 11 additions & 31 deletions
42
source/DasBlog.Web.UI/Themes/journal/_BlogItemSummary.cshtml
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,37 +1,17 @@ | ||
@model PostViewModel | ||
@{ | ||
ViewData["Title"] = @Model.Title; | ||
} | ||
|
||
<div class="post"> | ||
<div class="row post-title"> | ||
<div class="col-md-12 mb-6"> | ||
<h2><post-title-link post=@Model /></h2> | ||
<small class="text-muted"><post-created-date post="@Model" /></small> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="card flex-md-row mb-4 shadow-sm h-md-250"> | ||
<div class="card-body d-flex flex-column align-items-start"> | ||
<small class="text-muted"><post-categories-list post="@Model" /></small> | ||
<h3 class="mb-0"> | ||
<post-title-link post=@Model css="text-dark" /> | ||
</h3> | ||
<small class="mb-1 text-muted"><post-created-date post="@Model" /></small> | ||
<p class="card-text mb-auto"><post-content post="@Model" strip-html="true" content-length="20" /></p> | ||
|
||
<div class="row post-body"> | ||
<div class="col-md-12 mb-6"> | ||
<post-content post="@Model" /> | ||
</div> | ||
</div> | ||
<div class="row post-footer"> | ||
<div class="col-md-12 mb-6"> | ||
Categories: <post-categories-list post="@Model" /> | ||
</div> | ||
<div class="col-md-12 mb-6"> | ||
Share on <post-to-twitter post="@Model">Twitter</post-to-twitter> or <post-to-facebook post="@Model">Facebook</post-to-facebook> | ||
</div> | ||
<div dasblog-authorized class="col-md-12 mb-6"> | ||
<post-edit-link post="@Model" /> | ||
<span style="display:inline-block; width: 1em;"></span> | ||
<post-delete-link post="@Model" /> | ||
</div> | ||
<div class="col-md-12 mb-6"> | ||
<post-comment-link post="@Model" /> | ||
<post-title-link post=@Model>Continue reading...</post-title-link> | ||
</div> | ||
<img class="card-img-right flex-auto d-none d-lg-block" style="width: 200px; height: 250px;" alt="Thumbnail [200x250]" src="data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%22200%22%20height%3D%22250%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%20250%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_166f4e7d3df%20text%20%7B%20fill%3A%23eceeef%3Bfont-weight%3Abold%3Bfont-family%3AArial%2C%20Helvetica%2C%20Open%20Sans%2C%20sans-serif%2C%20monospace%3Bfont-size%3A13pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_166f4e7d3df%22%3E%3Crect%20width%3D%22200%22%20height%3D%22250%22%20fill%3D%22%2355595c%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%2256.19000244140625%22%20y%3D%22130.97899951934815%22%3EThumbnail%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E" data-src="holder.js/200x250?theme=thumb" data-holder-rendered="true"> | ||
</div> | ||
</div> | ||
|
||
<hr /> |
11 changes: 8 additions & 3 deletions
11
source/DasBlog.Web.UI/Themes/journal/_BlogPageSummary.cshtml
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,8 +1,13 @@ | ||
@using DasBlog.Web.Models.BlogViewModels; | ||
@model ListPostsViewModel | ||
|
||
<div class="row"> | ||
<div id="contents" class="container col-md-12"> | ||
<partial name="_BlogItemsSummary" model="Model" /> | ||
<div class="jumbotron p-3 p-md-5 text-white rounded bg-primary mt-lg-2"> | ||
<div class="col-md-6 px-0"> | ||
<h1 class="display-4 font-italic"><site-sub-title /></h1> | ||
<p class="lead my-3"><site-description /></p> | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-2"> | ||
<partial name="_BlogItemsSummary" model="Model" /> | ||
</div> |
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