mirror of
https://github.com/Damillora/Yuika
synced 2024-12-25 13:43:46 +00:00
Refine comments position
This commit is contained in:
parent
ed728e0d47
commit
70b6cca633
30
post.hbs
30
post.hbs
@ -44,21 +44,6 @@
|
||||
<div class="content-full">
|
||||
{{content}}
|
||||
</div>
|
||||
<div class="content-full">
|
||||
<div class="my-4" id="comments">
|
||||
<div id='discourse-comments'></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
DiscourseEmbed = { discourseUrl: 'https://discourse.nanao.moe/',
|
||||
discourseEmbedUrl: '{{url absolute="true"}}' };
|
||||
(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>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<div class="my-4 w-full content-full">
|
||||
<div class="flex flex-col md:flex-row justify-between">
|
||||
@ -83,6 +68,21 @@
|
||||
{{/next_post}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="my-4 w-full content-full">
|
||||
<div class="my-4" id="comments">
|
||||
<div id='discourse-comments'></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
DiscourseEmbed = { discourseUrl: 'https://discourse.nanao.moe/',
|
||||
discourseEmbedUrl: '{{url absolute="true"}}' };
|
||||
(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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mx-auto px-4 my-4 w-full">
|
||||
{{#if primary_tag}}
|
||||
{{#get "posts" filter="tags:{{primary_tag.slug}}+id:-{{id}}" limit="3" as |related_posts|}}
|
||||
|
Loading…
Reference in New Issue
Block a user