Prechádzať zdrojové kódy

More comments styling

Riccardo Balbo 4 rokov pred
rodič
commit
57ca39d398
2 zmenil súbory, kde vykonal 17 pridanie a 12 odobranie
  1. 0 2
      layouts/_default/default.html
  2. 17 10
      layouts/partials/comments.html

+ 0 - 2
layouts/_default/default.html

@@ -26,9 +26,7 @@
     </article>
 </section>
 
-<section class="full responsiveWidth">
 {{ partial "comments.html" . }}
-</section>
 
 
 {{ end }}

+ 17 - 10
layouts/partials/comments.html

@@ -1,12 +1,19 @@
-<div id='discourse-comments'></div>
+<section class="full responsiveWidth">
 
-<script type="text/javascript">
-  DiscourseEmbed = { discourseUrl: 'https://hub.jmonkeyengine.org/',
-                     discourseEmbedUrl: window.location.href };
+  <article>
+    <h1 id="comments">Comments</h1>
+      <div class="content" id='discourse-comments'></div>
 
-  (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>
+      <script type="text/javascript">
+        DiscourseEmbed = { discourseUrl: 'https://hub.jmonkeyengine.org/',
+                           discourseEmbedUrl: window.location.href };
+      
+        (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>
+
+</article>
+</section>