mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-24 02:38:58 +00:00
Merge pull request #287 from transloadit/blogpost-comments
Add Blogpost comments
This commit is contained in:
commit
055b201fe2
3 changed files with 16 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ language: English
|
|||
|
||||
# URL
|
||||
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
|
||||
url: http://uppy.io
|
||||
url: https://uppy.io
|
||||
root: /
|
||||
permalink: blog/:year/:month/:title/
|
||||
tag_dir: tags
|
||||
|
|
|
|||
12
website/themes/uppy/layout/partials/comments.ejs
Normal file
12
website/themes/uppy/layout/partials/comments.ejs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<div id='discourse-comments'></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
DiscourseEmbed = { discourseUrl: 'https://community.transloadit.com/',
|
||||
discourseEmbedUrl: '<%- site.url ? site.url : "https://uppy.io" %>/<%- page.path %>' };
|
||||
|
||||
(function() {
|
||||
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
|
||||
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
|
||||
})();
|
||||
</script>
|
||||
|
|
@ -31,4 +31,7 @@
|
|||
<h5 class="PostAuthor-tagline"><%- site.data.authors[page.author].tagline %></h5>
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<%- partial('partials/comments') %>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue