Browse Source

Facebook comments integration on Docs and Blog

main
Vjeux 12 years ago
parent
commit
495ba6fd6d
  1. 4
      _css/react.scss
  2. 10
      _layouts/default.html
  3. 2
      _layouts/docs.html
  4. 3
      _layouts/post.html

4
_css/react.scss

@ -678,3 +678,7 @@ p code {
padding-top: 0; padding-top: 0;
} }
} }
.post {
margin-bottom: 30px;
}

10
_layouts/default.html

@ -72,6 +72,7 @@
<div class="right">&copy; 2013 Facebook Inc.</div> <div class="right">&copy; 2013 Facebook Inc.</div>
</footer> </footer>
</div> </div>
<div id="fb-root"></div>
<script> <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@ -81,7 +82,14 @@
ga('send', 'pageview'); ga('send', 'pageview');
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=623268441017527";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script> </script>
</body> </body>
</html> </html>

2
_layouts/docs.html

@ -19,5 +19,7 @@ sectionid: docs
<a class="docs-next" href="/react/docs/{{ page.next }}">Next &rarr;</a> <a class="docs-next" href="/react/docs/{{ page.next }}">Next &rarr;</a>
{% endif %} {% endif %}
</div> </div>
<div class="fb-comments" data-width="650" data-num-posts="10" data-href="/react{{ page.url }}"></div>
</div> </div>
</section> </section>

3
_layouts/post.html

@ -14,5 +14,8 @@ sectionid: blog
<div class="post"> <div class="post">
{{ content }} {{ content }}
</div> </div>
<div class="fb-like" data-send="true" data-width="650" data-show-faces="false"></div>
<div class="fb-comments" data-width="650" data-num-posts="10" data-href="/react{{ page.url }}"></div>
</div> </div>
</section> </section>

Loading…
Cancel
Save