Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (21 sloc) 985 Bytes
@using Daniel15.Shared.Configuration
@using Newtonsoft.Json
@model Daniel15.Web.ViewModels.Blog.PostViewModel
@inject ISiteConfiguration Config
<div id="comments">
<div id="disqus_thread">
<h3>Comments</h3>
@Html.Partial("_CommentList", Model.Comments)
</div>
</div>
<script type="text/javascript">
var disqus_shortname = @Html.Raw(JsonConvert.SerializeObject(Config.DisqusShortname)),
disqus_title = @Html.Raw(JsonConvert.SerializeObject(Model.Post.Title)),
disqus_identifier = @Model.Post.DisqusIdentifier,
disqus_url = @Html.Raw(JsonConvert.SerializeObject(Url.BlogPostAbsolute(Model.Post)));
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>