Skip to content

Commit 40eb391

Browse files
committed
fixing disqus comments on tagged listing page
1 parent b15396a commit 40eb391

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

src/FunnelWeb.Web/FunnelWeb.Web.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@
312312
<Content Include="Content\themes\base\minified\jquery.ui.slider.min.css" />
313313
<Content Include="Content\themes\base\minified\jquery.ui.tabs.min.css" />
314314
<Content Include="Content\themes\base\minified\jquery.ui.theme.min.css" />
315+
<Content Include="Scripts\disqus-count.js" />
315316
<Content Include="Scripts\jquery-1.7.1-vsdoc.js" />
316317
<Content Include="Scripts\jquery-1.7.1.js" />
317318
<Content Include="Scripts\jquery-1.7.1.min.js" />
@@ -434,7 +435,9 @@
434435
<Content Include="Content\themes\base\Base.css" />
435436
<Content Include="Themes\AaronPowell\Content\Styles\Theme.css" />
436437
<Content Include="Themes\Default\Content\Styles\Theme.css" />
437-
<Content Include="Areas\Admin\Views\Web.config" />
438+
<Content Include="Areas\Admin\Views\Web.config">
439+
<SubType>Designer</SubType>
440+
</Content>
438441
<Content Include="Areas\Admin\Views\WikiAdmin\Edit.cshtml" />
439442
<Content Include="Areas\Admin\Views\_ViewStart.cshtml" />
440443
<Content Include="packages.config" />
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(function (window, document) {
2+
var s = document.createElement('script'); s.async = true;
3+
s.type = 'text/javascript';
4+
s.src = 'http://' + window.disqus_shortname + '.disqus.com/count.js';
5+
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
6+
})(window, document);

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@model EntrySummary
2-
2+
@{
3+
Html.RequiresJs("disqus-count.js", "Scripts");
4+
}
35
<div class='post-line @String.Join(" ", Html.CssKeywordsFor(Model))'>
46
@Html.DisplayFor(x => x.Published, new { @class = "revised" })
57
<div class='comments'>

src/FunnelWeb.Web/Views/Wiki/Recent.cshtml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,7 @@
88
{
99
@Html.RenderTrusted(Html.Settings().Introduction, Formats.Markdown)
1010
}
11-
@section Scripts {
12-
<script>
13-
/* * * DON'T EDIT BELOW THIS LINE * * */
14-
(function () {
15-
var s = document.createElement('script'); s.async = true;
16-
s.type = 'text/javascript';
17-
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
18-
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
19-
} ());
20-
</script>
21-
}
11+
2212
<h1>@Model.Title</h1>
2313

2414
@Html.DisplayFor(x => x.Results)

0 commit comments

Comments
 (0)