diff --git a/docs/_config.yml b/docs/_config.yml index 2bd9d9494c..9798a429e1 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -12,3 +12,4 @@ exclude: - README.md - Rakefile baseurl: /react +permalink: /blog/:year/:month/:day/:title.html diff --git a/docs/_css/react.scss b/docs/_css/react.scss index 72577c495d..f3548130cc 100644 --- a/docs/_css/react.scss +++ b/docs/_css/react.scss @@ -505,6 +505,12 @@ p { margin: 0 auto; } +/* Blog */ + +.post-list-item + .post-list-item { + margin-top: 60px; +} + /* Code Mirror */ div.CodeMirror pre, div.CodeMirror-linenumber, code { diff --git a/docs/_includes/blog_post.html b/docs/_includes/blog_post.html index 508a13b335..4fb6231c99 100644 --- a/docs/_includes/blog_post.html +++ b/docs/_includes/blog_post.html @@ -3,7 +3,7 @@
{% if content != '' %} - {{ content }} + {{ page.excerpt }} {% else %} {{ page.content }} {% endif %} diff --git a/docs/_layouts/blog.html b/docs/_layouts/blog.html deleted file mode 100644 index 84be39f58c..0000000000 --- a/docs/_layouts/blog.html +++ /dev/null @@ -1,14 +0,0 @@ ---- -layout: default -sectionid: blog ---- - -
- {% include nav_blog.html %} -
- {% for page in site.posts %} - {% include blog_post.html %} - {% endfor %} -
-
- diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index d12322c3a4..ef81e98dd8 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -41,7 +41,7 @@
  • docs
  • support
  • download
  • -
  • blog
  • +
  • blog
  • github diff --git a/docs/_layouts/post.html b/docs/_layouts/post.html index 84e7bb2ac5..808e0bf9f9 100644 --- a/docs/_layouts/post.html +++ b/docs/_layouts/post.html @@ -6,6 +6,13 @@ sectionid: blog
    {% include nav_blog.html %}
    - {% include blog_post.html %} +

    {{ page.title }}

    +

    {{ page.date | date: "%B %e, %Y" }} by {{ page.author }}

    + +
    + +
    + {{ content }} +
    diff --git a/docs/_posts/2013-06-02-jsfiddle-integration.md b/docs/_posts/2013-06-02-jsfiddle-integration.md index 06f45c96a4..3dbb054773 100644 --- a/docs/_posts/2013-06-02-jsfiddle-integration.md +++ b/docs/_posts/2013-06-02-jsfiddle-integration.md @@ -1,10 +1,11 @@ --- title: JSFiddle Integration layout: post -author: Vjeux +author: Christopher Chedeau --- -[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/kb3gN/)**, fork it and share it! A [fiddle without JSX](http://jsfiddle.net/vjeux/VkebS/) is also available . +[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/kb3gN/)**, fork it and share it! A [fiddle without JSX](http://jsfiddle.net/vjeux/VkebS/) is also available. + diff --git a/docs/_posts/2013-06-03-why-react.md b/docs/_posts/2013-06-03-why-react.md index a631a9ac74..c52c16d882 100644 --- a/docs/_posts/2013-06-03-why-react.md +++ b/docs/_posts/2013-06-03-why-react.md @@ -1,12 +1,13 @@ --- -title: Why should you care about React? +title: Why Should You Care About React? layout: post -author: petehunt +author: Pete Hunt --- There are a lot of JavaScript MVC frameworks out there. Why did we build React, and why would you want to use it? + ## React is not an MVC framework. It's a library designed for building big UIs. The type where you have diff --git a/docs/blog.md b/docs/blog.md deleted file mode 100644 index b3e64e10d9..0000000000 --- a/docs/blog.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: Blog -layout: blog ---- diff --git a/docs/blog/index.html b/docs/blog/index.html new file mode 100644 index 0000000000..ee73ad036a --- /dev/null +++ b/docs/blog/index.html @@ -0,0 +1,28 @@ +--- +title: Blog +layout: default +sectionid: blog +--- + +
    + {% include nav_blog.html %} +
    + {% for page in site.posts %} +
    +

    {{ page.title }}

    +

    {{ page.date | date: "%B %e, %Y" }} by {{ page.author }}

    + +
    + +
    + {{ page.excerpt }} + {% if page.excerpt != page.content %} +

    + Continue Reading → +

    + {% endif %} +
    +
    + {% endfor %} +
    +