jekyll 0.4.1 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jekyll might be problematic. Click here for more details.

Files changed (51) hide show
  1. data/History.txt +31 -1
  2. data/README.textile +23 -457
  3. data/Rakefile +91 -0
  4. data/VERSION.yml +2 -2
  5. data/bin/jekyll +61 -57
  6. data/lib/jekyll.rb +48 -32
  7. data/lib/jekyll/albino.rb +13 -7
  8. data/lib/jekyll/converters/mephisto.rb +8 -8
  9. data/lib/jekyll/converters/mt.rb +8 -8
  10. data/lib/jekyll/converters/textpattern.rb +4 -4
  11. data/lib/jekyll/converters/typo.rb +8 -8
  12. data/lib/jekyll/converters/wordpress.rb +1 -2
  13. data/lib/jekyll/convertible.rb +33 -22
  14. data/lib/jekyll/core_ext.rb +5 -5
  15. data/lib/jekyll/filters.rb +15 -7
  16. data/lib/jekyll/layout.rb +9 -6
  17. data/lib/jekyll/page.rb +13 -10
  18. data/lib/jekyll/post.rb +108 -39
  19. data/lib/jekyll/site.rb +121 -51
  20. data/lib/jekyll/tags/highlight.rb +12 -9
  21. data/lib/jekyll/tags/include.rb +5 -5
  22. data/test/helper.rb +20 -6
  23. data/test/source/_posts/2008-02-02-not-published.textile +8 -0
  24. data/test/source/_posts/2008-02-02-published.textile +8 -0
  25. data/test/source/_posts/2009-01-27-array-categories.textile +10 -0
  26. data/test/source/_posts/2009-01-27-categories.textile +7 -0
  27. data/test/source/_posts/2009-01-27-category.textile +7 -0
  28. data/test/source/_posts/2009-03-12-hash-#1.markdown +6 -0
  29. data/test/test_filters.rb +39 -27
  30. data/test/test_generated_site.rb +32 -16
  31. data/test/test_post.rb +258 -102
  32. data/test/test_site.rb +60 -28
  33. data/test/test_tags.rb +103 -18
  34. metadata +25 -70
  35. data/test/dest/2008/10/18/foo-bar.html +0 -28
  36. data/test/dest/2008/11/21/complex.html +0 -29
  37. data/test/dest/2008/12/13/include.html +0 -30
  38. data/test/dest/_posts/2008-10-18-foo-bar.html +0 -28
  39. data/test/dest/_posts/2008-11-21-complex.html +0 -29
  40. data/test/dest/_posts/2008-12-03-permalinked-post.html +0 -2
  41. data/test/dest/_posts/2008-12-13-include.html +0 -30
  42. data/test/dest/category/2008/09/23/categories.html +0 -27
  43. data/test/dest/category/_posts/2008-9-23-categories.html +0 -27
  44. data/test/dest/css/screen.css +0 -76
  45. data/test/dest/foo/2008/12/12/topical-post.html +0 -28
  46. data/test/dest/foo/_posts/bar/2008-12-12-topical-post.html +0 -28
  47. data/test/dest/index.html +0 -60
  48. data/test/dest/my_category/permalinked-post +0 -2
  49. data/test/dest/z_category/2008/09/23/categories.html +0 -27
  50. data/test/dest/z_category/_posts/2008-9-23-categories.html +0 -27
  51. data/test/test_jekyll.rb +0 -0
@@ -1,2 +0,0 @@
1
- <h1>Post with Permalink</h1>
2
- <p>Best <strong>post</strong> ever</p>
@@ -1,30 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
5
- <head>
6
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7
- <title>Include</title>
8
- <meta name="author" content="<%= @page.author %>" />
9
-
10
- <!-- CodeRay syntax highlighting CSS -->
11
- <link rel="stylesheet" href="/css/coderay.css" type="text/css" />
12
-
13
- <!-- Homepage CSS -->
14
- <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
15
- </head>
16
- <body>
17
-
18
- <div class="site">
19
- <div class="title">
20
- Tom Preston-Werner
21
- </div>
22
-
23
- <hr />
24
- <p>Tom Preston-Werner github.com/mojombo</p>
25
-
26
- <p>This <em>is</em> cool</p>
27
- </div>
28
-
29
- </body>
30
- </html>
@@ -1,27 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
5
- <head>
6
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7
- <title>Categories</title>
8
- <meta name="author" content="<%= @page.author %>" />
9
-
10
- <!-- CodeRay syntax highlighting CSS -->
11
- <link rel="stylesheet" href="/css/coderay.css" type="text/css" />
12
-
13
- <!-- Homepage CSS -->
14
- <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
15
- </head>
16
- <body>
17
-
18
- <div class="site">
19
- <div class="title">
20
- Tom Preston-Werner
21
- </div>
22
-
23
- <p>Categories <em>should</em> work</p>
24
- </div>
25
-
26
- </body>
27
- </html>
@@ -1,27 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
5
- <head>
6
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7
- <title>Categories</title>
8
- <meta name="author" content="<%= @page.author %>" />
9
-
10
- <!-- CodeRay syntax highlighting CSS -->
11
- <link rel="stylesheet" href="/css/coderay.css" type="text/css" />
12
-
13
- <!-- Homepage CSS -->
14
- <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
15
- </head>
16
- <body>
17
-
18
- <div class="site">
19
- <div class="title">
20
- Tom Preston-Werner
21
- </div>
22
-
23
- <p>Categories <em>should</em> work</p>
24
- </div>
25
-
26
- </body>
27
- </html>
@@ -1,76 +0,0 @@
1
- /*****************************************************************************/
2
- /*
3
- /* Common
4
- /*
5
- /*****************************************************************************/
6
-
7
- /* Global Reset */
8
-
9
- * {
10
- margin: 0;
11
- padding: 0;
12
- }
13
-
14
- html, body {
15
- height: 100%;
16
- }
17
-
18
- body {
19
- background-color: white;
20
- font: 13.34px helvetica, arial, clean, sans-serif;
21
- *font-size: small;
22
- text-align: center;
23
- }
24
-
25
- h1, h2, h3, h4, h5, h6 {
26
- font-size: 100%;
27
- }
28
-
29
- h1 {
30
- margin-bottom: 1em;
31
- }
32
-
33
- p {
34
- margin: 1em 0;
35
- }
36
-
37
- a {
38
- color: #00a;
39
- }
40
-
41
- a:hover {
42
- color: black;
43
- }
44
-
45
- a:visited {
46
- color: #a0a;
47
- }
48
-
49
- table {
50
- font-size: inherit;
51
- font: 100%;
52
- }
53
-
54
- /*****************************************************************************/
55
- /*
56
- /* Site
57
- /*
58
- /*****************************************************************************/
59
-
60
- .site {
61
- font-size: 110%;
62
- text-align: justify;
63
- width: 40em;
64
- margin: 3em auto 2em auto;
65
- line-height: 1.5em;
66
- }
67
-
68
- .title {
69
- color: #a00;
70
- font-weight: bold;
71
- margin-bottom: 2em;
72
- }
73
-
74
- .site .meta {
75
- color: #aaa;
76
- }
@@ -1,28 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
5
- <head>
6
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7
- <title>Topical Post</title>
8
- <meta name="author" content="<%= @page.author %>" />
9
-
10
- <!-- CodeRay syntax highlighting CSS -->
11
- <link rel="stylesheet" href="/css/coderay.css" type="text/css" />
12
-
13
- <!-- Homepage CSS -->
14
- <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
15
- </head>
16
- <body>
17
-
18
- <div class="site">
19
- <div class="title">
20
- Tom Preston-Werner
21
- </div>
22
-
23
- <h1>Topical Post</h1>
24
- <p>This post has a topic.</p>
25
- </div>
26
-
27
- </body>
28
- </html>
@@ -1,28 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
5
- <head>
6
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7
- <title>Topical Post</title>
8
- <meta name="author" content="<%= @page.author %>" />
9
-
10
- <!-- CodeRay syntax highlighting CSS -->
11
- <link rel="stylesheet" href="/css/coderay.css" type="text/css" />
12
-
13
- <!-- Homepage CSS -->
14
- <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
15
- </head>
16
- <body>
17
-
18
- <div class="site">
19
- <div class="title">
20
- Tom Preston-Werner
21
- </div>
22
-
23
- <h1>Topical Post</h1>
24
- <p>This post has a topic.</p>
25
- </div>
26
-
27
- </body>
28
- </html>
@@ -1,60 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
5
- <head>
6
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7
- <title>Tom Preston-Werner</title>
8
- <meta name="author" content="<%= @page.author %>" />
9
-
10
- <!-- CodeRay syntax highlighting CSS -->
11
- <link rel="stylesheet" href="/css/coderay.css" type="text/css" />
12
-
13
- <!-- Homepage CSS -->
14
- <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
15
- </head>
16
- <body>
17
-
18
- <div class="site">
19
- <div class="title">
20
- Tom Preston-Werner
21
- </div>
22
-
23
-
24
- h1. Welcome to my site
25
-
26
- h2. Please read our 7 Posts
27
-
28
- <ul>
29
-
30
- <li>Sat Dec 13 00:00:00 -0800 2008 <a href="/2008/12/13/include.html">Include</a></li>
31
-
32
- <li>Fri Dec 12 00:00:00 -0800 2008 <a href="/foo/2008/12/12/topical-post.html">Topical Post</a></li>
33
-
34
- <li>Wed Dec 03 00:00:00 -0800 2008 <a href="my_category/permalinked-post">Post with Permalink</a></li>
35
-
36
- <li>Fri Nov 21 00:00:00 -0800 2008 <a href="/2008/11/21/complex.html">Complex</a></li>
37
-
38
- <li>Sat Oct 18 00:00:00 -0700 2008 <a href="/2008/10/18/foo-bar.html">Foo Bar</a></li>
39
-
40
- <li>Tue Sep 23 00:00:00 -0700 2008 <a href="/z_category/2008/09/23/categories.html">Categories</a></li>
41
-
42
- <li>Tue Sep 23 00:00:00 -0700 2008 <a href="/category/2008/09/23/categories.html">Categories</a></li>
43
-
44
- </ul>
45
-
46
-
47
- <div id="first_post">
48
- <h1>Include</h1>
49
- <div>
50
- <hr />
51
- <p>Tom Preston-Werner github.com/mojombo</p>
52
-
53
- <p>This <em>is</em> cool</p>
54
- </div>
55
- </div>
56
-
57
- </div>
58
-
59
- </body>
60
- </html>
@@ -1,2 +0,0 @@
1
- <h1>Post with Permalink</h1>
2
- <p>Best <strong>post</strong> ever</p>
@@ -1,27 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
5
- <head>
6
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7
- <title>Categories</title>
8
- <meta name="author" content="<%= @page.author %>" />
9
-
10
- <!-- CodeRay syntax highlighting CSS -->
11
- <link rel="stylesheet" href="/css/coderay.css" type="text/css" />
12
-
13
- <!-- Homepage CSS -->
14
- <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
15
- </head>
16
- <body>
17
-
18
- <div class="site">
19
- <div class="title">
20
- Tom Preston-Werner
21
- </div>
22
-
23
- <p>Categories <em>should</em> work. Even if ordered after index.</p>
24
- </div>
25
-
26
- </body>
27
- </html>
@@ -1,27 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
5
- <head>
6
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7
- <title>Categories</title>
8
- <meta name="author" content="<%= @page.author %>" />
9
-
10
- <!-- CodeRay syntax highlighting CSS -->
11
- <link rel="stylesheet" href="/css/coderay.css" type="text/css" />
12
-
13
- <!-- Homepage CSS -->
14
- <link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />
15
- </head>
16
- <body>
17
-
18
- <div class="site">
19
- <div class="title">
20
- Tom Preston-Werner
21
- </div>
22
-
23
- <p>Categories <em>should</em> work. Even if ordered after index.</p>
24
- </div>
25
-
26
- </body>
27
- </html>
File without changes