mirror of
https://github.com/Damillora/Yuika
synced 2024-11-22 17:27:32 +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">
|
<div class="content-full">
|
||||||
{{content}}
|
{{content}}
|
||||||
</div>
|
</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>
|
</main>
|
||||||
<div class="my-4 w-full content-full">
|
<div class="my-4 w-full content-full">
|
||||||
<div class="flex flex-col md:flex-row justify-between">
|
<div class="flex flex-col md:flex-row justify-between">
|
||||||
@ -83,6 +68,21 @@
|
|||||||
{{/next_post}}
|
{{/next_post}}
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<div class="mx-auto px-4 my-4 w-full">
|
||||||
{{#if primary_tag}}
|
{{#if primary_tag}}
|
||||||
{{#get "posts" filter="tags:{{primary_tag.slug}}+id:-{{id}}" limit="3" as |related_posts|}}
|
{{#get "posts" filter="tags:{{primary_tag.slug}}+id:-{{id}}" limit="3" as |related_posts|}}
|
||||||
|
Loading…
Reference in New Issue
Block a user