Skip to content

Commit 409ddcb

Browse files
committed
moving the disqus script add into a check for disqus
1 parent fe1ba50 commit 409ddcb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/FunnelWeb.Web/Views/Shared/DisplayTemplates/EntrySummary.cshtml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
@model EntrySummary
2-
@{
3-
Html.RequiresJs("disqus-count.js", "Scripts");
4-
}
2+
53
<div class='post-line @String.Join(" ", Html.CssKeywordsFor(Model))'>
64
@Html.DisplayFor(x => x.Published, new { @class = "revised" })
75
<div class='comments'>
86
@if (Html.Settings().EnableDisqusCommenting)
97
{
8+
Html.RequiresJs("disqus-count.js", "Scripts");
109
<a href="@Url.Action("Page", "Wiki", new { page = Model.Name })#disqus_thread" data-disqus-identifier="@(Model.Title == null ? "" : (Model.Title + " - "))@Html.Settings().SiteTitle">Comment(s)</a>
1110
}
1211
else

0 commit comments

Comments
 (0)