Forráskód Böngészése

Move and fix comments

Riccardo Balbo 4 éve
szülő
commit
e032f25c82
2 módosított fájl, 6 hozzáadás és 2 törlés
  1. 5 1
      layouts/_default/default.html
  2. 1 1
      layouts/partials/comments.html

+ 5 - 1
layouts/_default/default.html

@@ -15,7 +15,6 @@
             <div class="content">
                 <span>
                 {{ .Content }}
-                {{ partial "comments.html" . }}
 
                 </span>
             {{ partial "articleNavPost.html" . }}
@@ -27,4 +26,9 @@
     </article>
 </section>
 
+<section class="full responsiveWidth">
+{{ partial "comments.html" . }}
+</section>
+
+
 {{ end }}

+ 1 - 1
layouts/partials/comments.html

@@ -2,7 +2,7 @@
 
 <script type="text/javascript">
   DiscourseEmbed = { discourseUrl: 'https://hub.jmonkeyengine.org/',
-                     discourseEmbedUrl: 'REPLACE_ME' };
+                     discourseEmbedUrl: window.location.href };
 
   (function() {
     var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;