Browse Source

fix permalink, temporarily remove script field of Jekyll

main
Cheng Lou 11 years ago
committed by Connor McSheffrey
parent
commit
6a04b5aefd
  1. 3
      cookbook/cb-02-inline-styles tip.md
  2. 1
      cookbook/cb-02-inline-styles.md
  3. 3
      cookbook/cb-03-if-else-in-JSX tip.md
  4. 3
      cookbook/cb-03-if-else-in-JSX.md
  5. 5
      cookbook/cb-04-self-closing-tag tip.md
  6. 3
      cookbook/cb-04-self-closing-tag.md

3
cookbook/cb-02-inline-styles tip.md

@ -2,8 +2,7 @@
id: inline-styles-tip
title: Inline Styles
layout: docs
permalink: inline-styles.html
script: "cookbook/inline-styles.js"
permalink: inline-styles-tip.html
---
In React, inline styles are not specified as a string, but as an object whose key is the camelCased version of the style name, and whose value is the style's value in string:

1
cookbook/cb-02-inline-styles.md

@ -3,7 +3,6 @@ id: inline-styles
title: Inline Styles
layout: docs
permalink: inline-styles.html
script: "cookbook/inline-styles.js"
---
### Problem

3
cookbook/cb-03-if-else-in-JSX tip.md

@ -2,8 +2,7 @@
id: if-else-in-JSX-tip
title: If-Else in JSX
layout: docs
permalink: inline-styles.html
script: "cookbook/inline-styles.js"
permalink: if-else-in-JSX-tip.html
---
`if-else` statements don't work inside JSX, since JSX is really just sugar for functions:

3
cookbook/cb-03-if-else-in-JSX.md

@ -2,8 +2,7 @@
id: if-else-in-JSX
title: If-Else in JSX
layout: docs
permalink: inline-styles.html
script: "cookbook/inline-styles.js"
permalink: if-else-in-JSX.html
---
### Problem

5
cookbook/cb-04-self-closing-tag tip.md

@ -1,9 +1,8 @@
---
id: self-closing-tag
id: self-closing-tag-tip
title: Self-Closing Tag
layout: docs
permalink: inline-styles.html
script: "cookbook/inline-styles.js"
permalink: self-closing-tag-tip.html
---
In JSX, `<MyComponent />` alone is valid while `<MyComponent>` isn't.

3
cookbook/cb-04-self-closing-tag.md

@ -2,8 +2,7 @@
id: self-closing-tag
title: Self-Closing Tag
layout: docs
permalink: inline-styles.html
script: "cookbook/inline-styles.js"
permalink: self-closing-tag.html
---
### Problem

Loading…
Cancel
Save