Browse Source

Initial version of the blog

main
Vjeux 12 years ago
parent
commit
0cb36084ac
  1. 10
      _includes/blog_post.html
  2. 13
      _layouts/blog.html
  3. 1
      _layouts/default.html
  4. 10
      _layouts/post.html
  5. 10
      _posts/2013-06-02-jsfiddle-integration.md
  6. 5
      blog.md

10
_includes/blog_post.html

@ -0,0 +1,10 @@
<h2><a href="/react{{ page.url }}">{{ page.title }}</a></h2>
<p class="meta">{{ page.date | date_to_string }} by {{ page.author }}</p>
<div id="post">
{% if content != '' %}
{{ content }}
{% else %}
{{ page.content }}
{% endif %}
</div>

13
_layouts/blog.html

@ -0,0 +1,13 @@
---
layout: default
sectionid: blog
---
<section class="content wrap nosidebar">
<div class="inner-content">
{% for page in site.posts %}
{% include blog_post.html %}
{% endfor %}
</div>
</section>

1
_layouts/default.html

@ -41,6 +41,7 @@
<li><a href="/react/docs/getting-started.html"{% if page.sectionid == 'docs' %} class="active"{% endif %}>docs</a></li>
<li><a href="/react/support.html"{% if page.id == 'support' %} class="active"{% endif %}>support</a></li>
<li><a href="/react/downloads.html"{% if page.id == 'downloads' %} class="active"{% endif %}>download</a></li>
<li><a href="/react/blog.html"{% if page.sectionid == 'blog' %} class="active"{% endif %}>blog</a></li>
<li><a href="http://github.com/facebook/react">github</a>
</ul>
<!-- <iframe src="http://ghbtns.com/github&#45;btn.html?user=facebook&#38;repo=react.js&#38;type=fork"allowtransparency="true" frameborder="0" scrolling="0" width="62" height="20"></iframe> -->

10
_layouts/post.html

@ -1,12 +1,10 @@
---
layout: default
sectionid: blog
---
<section class="content wrap">
<h2>{{ page.title }}</h2>
<p class="meta">{{ page.date | date_to_string }}</p>
<div id="post">
{{ content }}
<section class="content wrap nosidebar">
<div class="inner-content">
{% include blog_post.html %}
</div>
</section>

10
_posts/2013-06-02-jsfiddle-integration.md

@ -0,0 +1,10 @@
---
title: JSFiddle Integration
layout: post
author: Vjeux
---
[JSFiddle](http://jsfiddle.net) just announced support for React. This is an exciting news as it makes collaboration on snippets of code a lot easier. You can play around this **[base React JSFiddle](http://jsfiddle.net/vjeux/25Rhk/)**, fork it and share it!
<blockquote class="twitter-tweet" align="center"><p>React (by Facebook) is now available on JSFiddle. <a href="http://t.co/wNQf9JPv5u" title="http://facebook.github.io/react/">facebook.github.io/react/</a></p>&mdash; JSFiddle (@jsfiddle) <a href="https://twitter.com/jsfiddle/status/341114115781177344">June 2, 2013</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

5
blog.md

@ -0,0 +1,5 @@
---
id: blog
title: Blog
layout: blog
---
Loading…
Cancel
Save