jekyll 2.0.0.alpha.1 → 2.0.0.alpha.2

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 (132) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +15 -0
  3. data/.travis.yml +27 -0
  4. data/History.markdown +66 -1
  5. data/LICENSE +2 -2
  6. data/README.markdown +2 -2
  7. data/Rakefile +4 -44
  8. data/bin/jekyll +10 -113
  9. data/docs/jp/CONTRIBUTING.jp.markdown +93 -0
  10. data/docs/jp/README.jp.markdown +69 -0
  11. data/features/create_sites.feature +12 -12
  12. data/features/drafts.feature +23 -2
  13. data/features/embed_filters.feature +7 -5
  14. data/features/include_tag.feature +7 -7
  15. data/features/markdown.feature +4 -4
  16. data/features/pagination.feature +2 -2
  17. data/features/permalinks.feature +7 -7
  18. data/features/post_data.feature +21 -21
  19. data/features/post_excerpts.feature +6 -6
  20. data/features/site_configuration.feature +17 -17
  21. data/features/site_data.feature +15 -15
  22. data/features/step_definitions/jekyll_steps.rb +4 -4
  23. data/features/support/env.rb +2 -2
  24. data/jekyll.gemspec +17 -284
  25. data/lib/jekyll.rb +21 -5
  26. data/lib/jekyll/command.rb +72 -20
  27. data/lib/jekyll/commands/build.rb +82 -58
  28. data/lib/jekyll/commands/docs.rb +30 -0
  29. data/lib/jekyll/commands/doctor.rb +18 -1
  30. data/lib/jekyll/commands/new.rb +19 -6
  31. data/lib/jekyll/commands/serve.rb +80 -49
  32. data/lib/jekyll/configuration.rb +3 -3
  33. data/lib/jekyll/converters/markdown/kramdown_parser.rb +1 -1
  34. data/lib/jekyll/converters/markdown/redcarpet_parser.rb +1 -0
  35. data/lib/jekyll/convertible.rb +19 -21
  36. data/lib/jekyll/draft.rb +5 -0
  37. data/lib/jekyll/excerpt.rb +5 -5
  38. data/lib/jekyll/layout.rb +2 -2
  39. data/lib/jekyll/layout_reader.rb +15 -2
  40. data/lib/jekyll/page.rb +17 -17
  41. data/lib/jekyll/post.rb +33 -33
  42. data/lib/jekyll/related_posts.rb +5 -5
  43. data/lib/jekyll/site.rb +84 -85
  44. data/lib/jekyll/static_file.rb +13 -0
  45. data/lib/jekyll/stevenson.rb +1 -1
  46. data/lib/jekyll/tags/highlight.rb +16 -6
  47. data/lib/jekyll/tags/include.rb +17 -17
  48. data/lib/jekyll/url.rb +2 -0
  49. data/lib/jekyll/utils.rb +79 -0
  50. data/lib/jekyll/version.rb +3 -0
  51. data/lib/site_template/_config.yml +3 -1
  52. data/lib/site_template/_includes/footer.html +61 -0
  53. data/lib/site_template/_includes/head.html +12 -0
  54. data/lib/site_template/_includes/header.html +27 -0
  55. data/lib/site_template/_layouts/default.html +9 -34
  56. data/lib/site_template/_layouts/page.html +14 -0
  57. data/lib/site_template/_layouts/post.html +11 -5
  58. data/lib/site_template/_posts/0000-00-00-this-post-demonstrates-post-content-styles.md +88 -0
  59. data/lib/site_template/about/index.md +10 -0
  60. data/lib/site_template/css/main.css +333 -100
  61. data/lib/site_template/feed.xml +21 -0
  62. data/lib/site_template/index.html +8 -4
  63. data/lib/site_template/projects/index.md +14 -0
  64. data/script/cibuild +0 -1
  65. data/script/rebund +1 -1
  66. data/site/_includes/analytics.html +2 -2
  67. data/site/_includes/css/normalize.css +1 -1
  68. data/site/_includes/css/style.css +28 -4
  69. data/site/_includes/docs_option.html +1 -1
  70. data/site/_includes/docs_ul.html +3 -3
  71. data/site/_includes/footer.html +1 -1
  72. data/site/_includes/header.html +2 -2
  73. data/site/_includes/news_item.html +1 -1
  74. data/site/_includes/primary-nav-items.html +4 -4
  75. data/site/_includes/section_nav.html +2 -2
  76. data/site/_includes/top.html +6 -7
  77. data/site/_layouts/news_item.html +1 -1
  78. data/site/_posts/2013-07-25-jekyll-1-0-4-released.markdown +1 -1
  79. data/site/_posts/2013-07-25-jekyll-1-1-2-released.markdown +1 -1
  80. data/site/_posts/2013-09-14-jekyll-1-2-1-released.markdown +1 -1
  81. data/site/_posts/2014-03-24-jekyll-1-5-0-released.markdown +19 -0
  82. data/site/docs/assets.md +14 -0
  83. data/site/docs/configuration.md +65 -56
  84. data/site/docs/contributing.md +7 -2
  85. data/site/docs/deployment-methods.md +1 -1
  86. data/site/docs/github-pages.md +1 -1
  87. data/site/docs/history.md +21 -0
  88. data/site/docs/index.md +7 -1
  89. data/site/docs/installation.md +28 -0
  90. data/site/docs/migrations.md +1 -1
  91. data/site/docs/plugins.md +6 -0
  92. data/site/docs/structure.md +3 -3
  93. data/site/docs/templates.md +44 -44
  94. data/site/docs/usage.md +1 -1
  95. data/site/docs/variables.md +15 -2
  96. data/site/favicon.png +0 -0
  97. data/site/feed.xml +0 -1
  98. data/site/img/article-footer.png +0 -0
  99. data/site/img/footer-arrow.png +0 -0
  100. data/site/img/footer-logo.png +0 -0
  101. data/site/img/logo-2x.png +0 -0
  102. data/site/img/octojekyll.png +0 -0
  103. data/site/img/tube.png +0 -0
  104. data/site/img/tube1x.png +0 -0
  105. data/site/index.html +5 -5
  106. data/site/js/modernizr-2.7.1.min.js +4 -0
  107. data/test/helper.rb +11 -0
  108. data/test/source/_drafts/draft-properties.text +11 -0
  109. data/test/source/_posts/2011-04-12-md-extension.md +1 -1
  110. data/test/source/_posts/2014-01-06-permalink-traversal.md +5 -0
  111. data/test/source/exploit.md +5 -0
  112. data/test/source/static_files.html +4 -0
  113. data/test/test_configuration.rb +2 -2
  114. data/test/test_draft.rb +56 -0
  115. data/test/test_excerpt.rb +2 -2
  116. data/test/test_filters.rb +1 -1
  117. data/test/test_generated_site.rb +10 -1
  118. data/test/test_kramdown.rb +1 -1
  119. data/test/test_layout_reader.rb +17 -0
  120. data/test/test_page.rb +10 -0
  121. data/test/test_pager.rb +4 -2
  122. data/test/test_path_sanitization.rb +14 -0
  123. data/test/test_post.rb +12 -1
  124. data/test/test_sass.rb +1 -64
  125. data/test/test_site.rb +26 -1
  126. data/test/test_tags.rb +39 -2
  127. data/test/{test_core_ext.rb → test_utils.rb} +12 -12
  128. metadata +200 -86
  129. data/lib/jekyll/converters/sass.rb +0 -58
  130. data/lib/jekyll/core_ext.rb +0 -55
  131. data/lib/site_template/css/syntax.css +0 -60
  132. data/site/js/modernizr-2.5.3.min.js +0 -4
@@ -0,0 +1,69 @@
1
+ # [Jekyll](http://jekyllrb.com/)
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/jekyll.png)](http://badge.fury.io/rb/jekyll)
4
+
5
+ [![Build Status](https://secure.travis-ci.org/jekyll/jekyll.png?branch=master)](https://travis-ci.org/jekyll/jekyll)
6
+ [![Code Climate](https://codeclimate.com/github/jekyll/jekyll.png)](https://codeclimate.com/github/jekyll/jekyll)
7
+ [![Dependency Status](https://gemnasium.com/jekyll/jekyll.png)](https://gemnasium.com/jekyll/jekyll)
8
+ [![Coverage Status](https://coveralls.io/repos/jekyll/jekyll/badge.png)](https://coveralls.io/r/jekyll/jekyll)
9
+
10
+ Tom Preston-Werner, Nick Quaranto や多くの[素晴らしいコントリビュータ](https://github.com/jekyll/jekyll/graphs/contributors)によって作成されています!
11
+
12
+ Jekyll は個人プロジェクトや組織のサイトに最適な、シンプルで、ブログを意識した静的サイトジェネレータです。
13
+ 複雑さを排除したファイルベースのCMSのようなものと考えてください。
14
+ Jekyll はコンテンツを受け取り、 Markdown や Liquid テンプレート をレンダリングし、
15
+ Apache や Nginx やその他の Web サーバに提供する準備ができた静的な Web サイトを完全に出力してくれます。
16
+ Jekyll は [GitHub Pages](http://pages.github.com) の背後にあるエンジンなので、
17
+ あなたの GitHub リポジトリからサイトをホストするために使用する事ができます。
18
+
19
+ ## 原理
20
+
21
+ Jekyll あなたがするように伝えたことをします ― それ以上でもそれ以下でもありません。
22
+ それは、大胆な仮定によってユーザの裏をかこうとせず、
23
+ また、不必要な複雑さや設定をユーザに負担しません。
24
+ 簡単に言えば、 Jekyll はあなたの道を開け、
25
+ 真に重要なもの: コンテンツに集中することができます。
26
+
27
+ ## 開始方法
28
+
29
+ * gem を[インストール](http://jekyllrb.com/docs/installation/)します
30
+ * [使用方法](http://jekyllrb.com/docs/usage/) と [設定方法](http://jekyllrb.com/docs/configuration/) を読みます
31
+ * 既存の [Jekyll で作られたサイト](http://wiki.github.com/jekyll/jekyll/sites) をチラッと見ます
32
+ * Fork し、あなたの変更を [コントリビュート](http://jekyllrb.com/docs/contributing/) します
33
+ * 質問があったら? irc.freenode.net の `#jekyll` チャンネルをチェックしてください
34
+
35
+ ## より深く
36
+
37
+ * 以前のシステムからの[移行](http://jekyllrb.com/docs/migrations/)
38
+ * [YAML Front Matter](http://jekyllrb.com/docs/frontmatter/) がどのように働くかを学ぶ
39
+ * [変数](http://jekyllrb.com/docs/variables/)を使ってサイトに情報を表示する
40
+ * posts が生成される時の[パーマリンク](http://jekyllrb.com/docs/permalinks/)をカスタマイズ
41
+ * 人生を容易にするために、組み込みの [Liquid 拡張](http://jekyllrb.com/docs/templates/)を使用する
42
+ * あなたのサイト固有のコンテンツを生成するために、カスタム[プラグイン](http://jekyllrb.com/docs/plugins/)を使用する
43
+
44
+ ## 実行時の依存関係
45
+
46
+ * Commander: コマンドラインインターフェース構築 (Ruby)
47
+ * Colorator: コマンドライン出力に色付け (Ruby)
48
+ * Classifier: posts の関連を生成 (Ruby)
49
+ * Directory Watcher: サイトの自動再生成 (Ruby)
50
+ * Kramdown: デフォルトの Markdown エンジン (Ruby)
51
+ * Liquid: テンプレートシステム (Ruby)
52
+ * Pygments.rb: シンタックスハイライト (Ruby/Python)
53
+ * RedCarpet: Markdown エンジン (Ruby)
54
+ * Safe YAML: セキュリティのために構築された YAML パーサ (Ruby)
55
+
56
+ ## 開発時の依存関係
57
+
58
+ * Launchy: クロスプラットフォーム ファイルランチャ (Ruby)
59
+ * Maruku: Markdown スーパーセット インタプリタ (Ruby)
60
+ * RDiscount: Discount Markdown プロセッサ (Ruby)
61
+ * RedCloth: Textile サポート (Ruby)
62
+ * RedGreen: よりよいテスト出力 (Ruby)
63
+ * RR: モック (Ruby)
64
+ * Shoulda: テストフレームワーク (Ruby)
65
+ * SimpleCov: カバレッジフレームワーク (Ruby)
66
+
67
+ ## ライセンス
68
+
69
+ [ライセンス](https://github.com/jekyll/jekyll/blob/master/LICENSE)を見てください。
@@ -19,7 +19,7 @@ Feature: Create sites
19
19
  Scenario: Basic site with a post
20
20
  Given I have a _posts directory
21
21
  And I have the following post:
22
- | title | date | content |
22
+ | title | date | content |
23
23
  | Hackers | 2009-03-27 | My First Exploit |
24
24
  When I run jekyll
25
25
  Then the _site directory should exist
@@ -37,7 +37,7 @@ Feature: Create sites
37
37
  Given I have a _layouts directory
38
38
  And I have a _posts directory
39
39
  And I have the following posts:
40
- | title | date | layout | content |
40
+ | title | date | layout | content |
41
41
  | Wargames | 2009-03-27 | default | The only winning move is not to play. |
42
42
  And I have a default layout that contains "Post Layout: {{ content }}"
43
43
  When I run jekyll
@@ -48,7 +48,7 @@ Feature: Create sites
48
48
  Given I have a _layouts directory
49
49
  And I have a _posts directory
50
50
  And I have the following posts:
51
- | title | date | layout | content |
51
+ | title | date | layout | content |
52
52
  | Wargames | 2009-03-27 | post/simple | The only winning move is not to play. |
53
53
  And I have a post/simple layout that contains "Post Layout: {{ content }}"
54
54
  When I run jekyll
@@ -66,14 +66,14 @@ Feature: Create sites
66
66
  And I have an "another_file" file that contains ""
67
67
  And I have a _posts directory
68
68
  And I have the following posts:
69
- | title | date | layout | content |
70
- | entry1 | 2009-03-27 | post | content for entry1. |
71
- | entry2 | 2009-04-27 | post | content for entry2. |
69
+ | title | date | layout | content |
70
+ | entry1 | 2009-03-27 | post | content for entry1. |
71
+ | entry2 | 2009-04-27 | post | content for entry2. |
72
72
  And I have a category/_posts directory
73
73
  And I have the following posts in "category":
74
- | title | date | layout | content |
75
- | entry3 | 2009-05-27 | post | content for entry3. |
76
- | entry4 | 2009-06-27 | post | content for entry4. |
74
+ | title | date | layout | content |
75
+ | entry3 | 2009-05-27 | post | content for entry3. |
76
+ | entry4 | 2009-06-27 | post | content for entry4. |
77
77
  When I run jekyll
78
78
  Then the _site directory should exist
79
79
  And I should see "Page : Site contains 2 pages and 4 posts" in "_site/index.html"
@@ -116,9 +116,9 @@ Feature: Create sites
116
116
  And I have a configuration file with "permalink" set to "pretty"
117
117
  And I have a _posts directory
118
118
  And I have the following posts:
119
- | title | date | layout | content |
120
- | entry1 | 2007-12-31 | post | content for entry1. |
121
- | entry2 | 2020-01-31 | post | content for entry2. |
119
+ | title | date | layout | content |
120
+ | entry1 | 2007-12-31 | post | content for entry1. |
121
+ | entry2 | 2020-01-31 | post | content for entry2. |
122
122
  When I run jekyll
123
123
  Then the _site directory should exist
124
124
  And I should see "URL: /2020/01/31/entry2/" in "_site/index.html"
@@ -7,7 +7,7 @@ Feature: Draft Posts
7
7
  Given I have a configuration file with "permalink" set to "none"
8
8
  And I have a _drafts directory
9
9
  And I have the following draft:
10
- | title | date | layout | content |
10
+ | title | date | layout | content |
11
11
  | Recipe | 2009-03-27 | default | Not baked yet. |
12
12
  When I run jekyll with drafts
13
13
  Then the _site directory should exist
@@ -18,8 +18,29 @@ Feature: Draft Posts
18
18
  And I have an "index.html" page that contains "Totally index"
19
19
  And I have a _drafts directory
20
20
  And I have the following draft:
21
- | title | date | layout | content |
21
+ | title | date | layout | content |
22
22
  | Recipe | 2009-03-27 | default | Not baked yet. |
23
23
  When I run jekyll
24
24
  Then the _site directory should exist
25
25
  And the "_site/recipe.html" file should not exist
26
+
27
+ Scenario: Don't preview a draft that is not published
28
+ Given I have a configuration file with "permalink" set to "none"
29
+ And I have an "index.html" page that contains "Totally index"
30
+ And I have a _drafts directory
31
+ And I have the following draft:
32
+ | title | date | layout | published | content |
33
+ | Recipe | 2009-03-27 | default | false | Not baked yet. |
34
+ When I run jekyll with drafts
35
+ Then the _site directory should exist
36
+ And the "_site/recipe.html" file should not exist
37
+
38
+ Scenario: Use page.path variable
39
+ Given I have a configuration file with "permalink" set to "none"
40
+ And I have a _drafts directory
41
+ And I have the following draft:
42
+ | title | date | layout | content |
43
+ | Recipe | 2009-03-27 | simple | Post path: {{ page.path }} |
44
+ When I run jekyll with drafts
45
+ Then the _site directory should exist
46
+ And I should see "Post path: _drafts/recipe.textile" in "_site/recipe.html"
@@ -7,7 +7,7 @@ Feature: Embed filters
7
7
  Given I have a _posts directory
8
8
  And I have a _layouts directory
9
9
  And I have the following post:
10
- | title | date | layout | content |
10
+ | title | date | layout | content |
11
11
  | Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
12
12
  And I have a default layout that contains "{{ site.time | date_to_xmlschema }}"
13
13
  When I run jekyll
@@ -18,8 +18,10 @@ Feature: Embed filters
18
18
  Given I have a _posts directory
19
19
  And I have a _layouts directory
20
20
  And I have the following post:
21
- | title | date | layout | content |
21
+ | title | date | layout | content |
22
22
  | Star & Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
23
+
24
+
23
25
  And I have a default layout that contains "{{ page.title | xml_escape }}"
24
26
  When I run jekyll
25
27
  Then the _site directory should exist
@@ -29,7 +31,7 @@ Feature: Embed filters
29
31
  Given I have a _posts directory
30
32
  And I have a _layouts directory
31
33
  And I have the following post:
32
- | title | date | layout | content |
34
+ | title | date | layout | content |
33
35
  | Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
34
36
  And I have a default layout that contains "{{ content | xml_escape }}"
35
37
  When I run jekyll
@@ -40,7 +42,7 @@ Feature: Embed filters
40
42
  Given I have a _posts directory
41
43
  And I have a _layouts directory
42
44
  And I have the following post:
43
- | title | date | layout | tags | content |
45
+ | title | date | layout | tags | content |
44
46
  | Star Wars | 2009-03-27 | default | [scifi, movies, force] | These aren't the droids you're looking for. |
45
47
  And I have a default layout that contains "{{ page.tags | array_to_sentence_string }}"
46
48
  When I run jekyll
@@ -51,7 +53,7 @@ Feature: Embed filters
51
53
  Given I have a _posts directory
52
54
  And I have a _layouts directory
53
55
  And I have the following post:
54
- | title | date | layout | content |
56
+ | title | date | layout | content |
55
57
  | Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. |
56
58
  And I have a default layout that contains "By {{ '_Obi-wan_' | textilize }}"
57
59
  When I run jekyll
@@ -10,14 +10,14 @@ Feature: Include tags
10
10
  And I have an "_includes/ignore.html" file that contains "<footer>My blog footer</footer>"
11
11
  And I have a _posts directory
12
12
  And I have the following post:
13
- | title | date | layout | content |
14
- | Include Files | 2013-03-21 | default | {% include header.html param="myparam" %} |
15
- | Ignore params if unused | 2013-03-21 | default | {% include ignore.html date="today" %} |
16
- | List multiple parameters | 2013-03-21 | default | {% include params.html date="today" start="tomorrow" %} |
17
- | Dont keep parameters | 2013-03-21 | default | {% include ignore.html param="test" %}\n{% include header.html %} |
13
+ | title | date | layout | content |
14
+ | Include Files | 2013-03-21 | default | {% include header.html param="myparam" %} |
15
+ | Ignore params if unused | 2013-03-21 | default | {% include ignore.html date="today" %} |
16
+ | List multiple parameters | 2013-03-21 | default | {% include params.html date="today" start="tomorrow" %} |
17
+ | Dont keep parameters | 2013-03-21 | default | {% include ignore.html param="test" %}\n{% include header.html %} |
18
18
  | Allow params with spaces and quotes | 2013-04-07 | default | {% include params.html cool="param with spaces" super="\"quoted\"" single='has "quotes"' escaped='\'single\' quotes' %} |
19
- | Parameter syntax | 2013-04-12 | default | {% include params.html param1_or_2="value" %} |
20
- | Pass a variable | 2013-06-22 | default | {% assign var = 'some text' %}{% include params.html local=var layout=page.layout %} |
19
+ | Parameter syntax | 2013-04-12 | default | {% include params.html param1_or_2="value" %} |
20
+ | Pass a variable | 2013-06-22 | default | {% assign var = 'some text' %}{% include params.html local=var layout=page.layout %} |
21
21
  When I run jekyll
22
22
  Then the _site directory should exist
23
23
  And I should see "<header>My awesome blog header: myparam</header>" in "_site/2013/03/21/include-files.html"
@@ -8,7 +8,7 @@ Feature: Markdown
8
8
  And I have an "index.html" page that contains "Index - {% for post in site.posts %} {{ post.content }} {% endfor %}"
9
9
  And I have a _posts directory
10
10
  And I have the following post:
11
- | title | date | content | type |
11
+ | title | date | content | type |
12
12
  | Hackers | 2009-03-27 | # My Title | markdown |
13
13
  When I run jekyll
14
14
  Then the _site directory should exist
@@ -21,13 +21,13 @@ Feature: Markdown
21
21
  And I have an "index.html" page that contains "Index - {% for post in paginator.posts %} {{ post.content }} {% endfor %}"
22
22
  And I have a _posts directory
23
23
  And I have the following post:
24
- | title | date | content | type |
24
+ | title | date | content | type |
25
25
  | Hackers | 2009-03-27 | # My Title | markdown |
26
26
  When I run jekyll
27
27
  Then the _site directory should exist
28
28
  And I should see "Index" in "_site/index.html"
29
29
  And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/index.html"
30
-
30
+
31
31
  Scenario: Maruku fenced codeblocks
32
32
  Given I have a configuration file with "markdown" set to "maruku"
33
33
  And I have an "index.markdown" file with content:
@@ -46,7 +46,7 @@ Feature: Markdown
46
46
  Then the _site directory should exist
47
47
  And I should see "My awesome code" in "_site/index.html"
48
48
  And I should see "<pre><code>\nMy awesome code\n</code></pre>" in "_site/index.html"
49
-
49
+
50
50
  Scenario: Maruku fenced codeblocks
51
51
  Given I have a configuration file with "markdown" set to "maruku"
52
52
  And I have an "index.markdown" file with content:
@@ -9,7 +9,7 @@ Feature: Site pagination
9
9
  And I have an "index.html" page that contains "{{ paginator.posts.size }}"
10
10
  And I have a _posts directory
11
11
  And I have the following posts:
12
- | title | date | layout | content |
12
+ | title | date | layout | content |
13
13
  | Wargames | 2009-03-27 | default | The only winning move is not to play. |
14
14
  | Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
15
15
  | Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
@@ -36,7 +36,7 @@ Feature: Site pagination
36
36
  And I have an "blog/index.html" page that contains "{{ paginator.posts.size }}"
37
37
  And I have a _posts directory
38
38
  And I have the following posts:
39
- | title | date | layout | content |
39
+ | title | date | layout | content |
40
40
  | Wargames | 2009-03-27 | default | The only winning move is not to play. |
41
41
  | Wargames2 | 2009-04-27 | default | The only winning move is not to play2. |
42
42
  | Wargames3 | 2009-05-27 | default | The only winning move is not to play3. |
@@ -6,7 +6,7 @@ Feature: Fancy permalinks
6
6
  Scenario: Use none permalink schema
7
7
  Given I have a _posts directory
8
8
  And I have the following post:
9
- | title | date | content |
9
+ | title | date | content |
10
10
  | None Permalink Schema | 2009-03-27 | Totally nothing. |
11
11
  And I have a configuration file with "permalink" set to "none"
12
12
  When I run jekyll
@@ -16,7 +16,7 @@ Feature: Fancy permalinks
16
16
  Scenario: Use pretty permalink schema
17
17
  Given I have a _posts directory
18
18
  And I have the following post:
19
- | title | date | content |
19
+ | title | date | content |
20
20
  | Pretty Permalink Schema | 2009-03-27 | Totally wordpress. |
21
21
  And I have a configuration file with "permalink" set to "pretty"
22
22
  When I run jekyll
@@ -37,7 +37,7 @@ Feature: Fancy permalinks
37
37
  Scenario: Use custom permalink schema with prefix
38
38
  Given I have a _posts directory
39
39
  And I have the following post:
40
- | title | category | date | content |
40
+ | title | category | date | content |
41
41
  | Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
42
42
  And I have a configuration file with "permalink" set to "/blog/:year/:month/:day/:title"
43
43
  When I run jekyll
@@ -47,7 +47,7 @@ Feature: Fancy permalinks
47
47
  Scenario: Use custom permalink schema with category
48
48
  Given I have a _posts directory
49
49
  And I have the following post:
50
- | title | category | date | content |
50
+ | title | category | date | content |
51
51
  | Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
52
52
  And I have a configuration file with "permalink" set to "/:categories/:title.html"
53
53
  When I run jekyll
@@ -57,7 +57,7 @@ Feature: Fancy permalinks
57
57
  Scenario: Use custom permalink schema with squished date
58
58
  Given I have a _posts directory
59
59
  And I have the following post:
60
- | title | category | date | content |
60
+ | title | category | date | content |
61
61
  | Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. |
62
62
  And I have a configuration file with "permalink" set to "/:month-:day-:year/:title.html"
63
63
  When I run jekyll
@@ -67,7 +67,7 @@ Feature: Fancy permalinks
67
67
  Scenario: Use per-post permalink
68
68
  Given I have a _posts directory
69
69
  And I have the following post:
70
- | title | date | permalink | content |
70
+ | title | date | permalink | content |
71
71
  | Some post | 2013-04-14 | /custom/posts/1 | bla bla |
72
72
  When I run jekyll
73
73
  Then the _site directory should exist
@@ -77,7 +77,7 @@ Feature: Fancy permalinks
77
77
  Scenario: Use per-post ending in .html
78
78
  Given I have a _posts directory
79
79
  And I have the following post:
80
- | title | date | permalink | content |
80
+ | title | date | permalink | content |
81
81
  | Some post | 2013-04-14 | /custom/posts/some.html | bla bla |
82
82
  When I run jekyll
83
83
  Then the _site directory should exist
@@ -7,7 +7,7 @@ Feature: Post data
7
7
  Given I have a _posts directory
8
8
  And I have a _layouts directory
9
9
  And I have the following post:
10
- | title | date | layout | content |
10
+ | title | date | layout | content |
11
11
  | Star Wars | 2009-03-27 | simple | Luke, I am your father. |
12
12
  And I have a simple layout that contains "Post title: {{ page.title }}"
13
13
  When I run jekyll
@@ -18,7 +18,7 @@ Feature: Post data
18
18
  Given I have a _posts directory
19
19
  And I have a _layouts directory
20
20
  And I have the following post:
21
- | title | date | layout | content |
21
+ | title | date | layout | content |
22
22
  | Star Wars | 2009-03-27 | simple | Luke, I am your father. |
23
23
  And I have a simple layout that contains "Post url: {{ page.url }}"
24
24
  When I run jekyll
@@ -29,7 +29,7 @@ Feature: Post data
29
29
  Given I have a _posts directory
30
30
  And I have a _layouts directory
31
31
  And I have the following post:
32
- | title | date | layout | content |
32
+ | title | date | layout | content |
33
33
  | Star Wars | 2009-03-27 | simple | Luke, I am your father. |
34
34
  And I have a simple layout that contains "Post date: {{ page.date | date_to_string }}"
35
35
  When I run jekyll
@@ -40,7 +40,7 @@ Feature: Post data
40
40
  Given I have a _posts directory
41
41
  And I have a _layouts directory
42
42
  And I have the following post:
43
- | title | date | layout | content |
43
+ | title | date | layout | content |
44
44
  | Star Wars | 2009-03-27 | simple | Luke, I am your father. |
45
45
  And I have a simple layout that contains "Post id: {{ page.id }}"
46
46
  When I run jekyll
@@ -51,7 +51,7 @@ Feature: Post data
51
51
  Given I have a _posts directory
52
52
  And I have a _layouts directory
53
53
  And I have the following post:
54
- | title | date | layout | content |
54
+ | title | date | layout | content |
55
55
  | Star Wars | 2009-03-27 | simple | Luke, I am your father. |
56
56
  And I have a simple layout that contains "Post content: {{ content }}"
57
57
  When I run jekyll
@@ -63,7 +63,7 @@ Feature: Post data
63
63
  And I have a movies/_posts directory
64
64
  And I have a _layouts directory
65
65
  And I have the following post in "movies":
66
- | title | date | layout | content |
66
+ | title | date | layout | content |
67
67
  | Star Wars | 2009-03-27 | simple | Luke, I am your father. |
68
68
  And I have a simple layout that contains "Post category: {{ page.categories }}"
69
69
  When I run jekyll
@@ -74,7 +74,7 @@ Feature: Post data
74
74
  Given I have a _posts directory
75
75
  And I have a _layouts directory
76
76
  And I have the following post:
77
- | title | date | layout | tag | content |
77
+ | title | date | layout | tag | content |
78
78
  | Star Wars | 2009-05-18 | simple | twist | Luke, I am your father. |
79
79
  And I have a simple layout that contains "Post tags: {{ page.tags }}"
80
80
  When I run jekyll
@@ -87,7 +87,7 @@ Feature: Post data
87
87
  And I have a scifi/movies/_posts directory
88
88
  And I have a _layouts directory
89
89
  And I have the following post in "scifi/movies":
90
- | title | date | layout | content |
90
+ | title | date | layout | content |
91
91
  | Star Wars | 2009-03-27 | simple | Luke, I am your father. |
92
92
  And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
93
93
  When I run jekyll
@@ -100,7 +100,7 @@ Feature: Post data
100
100
  And I have a scifi/Movies/_posts directory
101
101
  And I have a _layouts directory
102
102
  And I have the following post in "scifi/Movies":
103
- | title | date | layout | content |
103
+ | title | date | layout | content |
104
104
  | Star Wars | 2009-03-27 | simple | Luke, I am your father. |
105
105
  And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
106
106
  When I run jekyll
@@ -111,7 +111,7 @@ Feature: Post data
111
111
  Given I have a _posts directory
112
112
  And I have a _layouts directory
113
113
  And I have the following post:
114
- | title | date | layout | category | content |
114
+ | title | date | layout | category | content |
115
115
  | Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
116
116
  And I have a simple layout that contains "Post category: {{ page.categories }}"
117
117
  When I run jekyll
@@ -122,7 +122,7 @@ Feature: Post data
122
122
  Given I have a _posts directory
123
123
  And I have a _layouts directory
124
124
  And I have the following post:
125
- | title | date | layout | category | content |
125
+ | title | date | layout | category | content |
126
126
  | Star Wars | 2009-03-27 | simple | Movies | Luke, I am your father. |
127
127
  And I have a simple layout that contains "Post category: {{ page.categories }}"
128
128
  When I run jekyll
@@ -133,7 +133,7 @@ Feature: Post data
133
133
  Given I have a _posts directory
134
134
  And I have a _layouts directory
135
135
  And I have the following post:
136
- | title | date | layout | category | content |
136
+ | title | date | layout | category | content |
137
137
  | Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. |
138
138
  And I have a simple layout that contains "Post category: {{ page.categories }}"
139
139
  When I run jekyll
@@ -144,7 +144,7 @@ Feature: Post data
144
144
  Given I have a _posts directory
145
145
  And I have a _layouts directory
146
146
  And I have the following posts:
147
- | title | date | layout | categories | content |
147
+ | title | date | layout | categories | content |
148
148
  | Star Wars | 2009-03-27 | simple | ['scifi', 'Movies'] | Luke, I am your father. |
149
149
  | Star Trek | 2013-03-17 | simple | ['SciFi', 'movies'] | Jean Luc, I am your father. |
150
150
  And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}"
@@ -156,22 +156,22 @@ Feature: Post data
156
156
  Scenario Outline: Use page.path variable
157
157
  Given I have a <dir>/_posts directory
158
158
  And I have the following post in "<dir>":
159
- | title | type | date | content |
159
+ | title | type | date | content |
160
160
  | my-post | html | 2013-04-12 | Source path: {{ page.path }} |
161
161
  When I run jekyll
162
162
  Then the _site directory should exist
163
163
  And I should see "Source path: <path_prefix>_posts/2013-04-12-my-post.html" in "_site/<dir>/2013/04/12/my-post.html"
164
164
 
165
165
  Examples:
166
- | dir | path_prefix |
167
- | . | |
168
- | dir | dir/ |
166
+ | dir | path_prefix |
167
+ | . | |
168
+ | dir | dir/ |
169
169
  | dir/nested | dir/nested/ |
170
170
 
171
171
  Scenario: Override page.path variable
172
172
  Given I have a _posts directory
173
173
  And I have the following post:
174
- | title | date | path | content |
174
+ | title | date | path | content |
175
175
  | override | 2013-04-12 | override-path.html | Custom path: {{ page.path }} |
176
176
  When I run jekyll
177
177
  Then the _site directory should exist
@@ -181,7 +181,7 @@ Feature: Post data
181
181
  Given I have a _posts directory
182
182
  And I have an "index.html" file that contains "Published!"
183
183
  And I have the following post:
184
- | title | date | layout | published | content |
184
+ | title | date | layout | published | content |
185
185
  | Star Wars | 2009-03-27 | simple | false | Luke, I am your father. |
186
186
  When I run jekyll
187
187
  Then the _site directory should exist
@@ -192,7 +192,7 @@ Feature: Post data
192
192
  Given I have a _posts directory
193
193
  And I have a _layouts directory
194
194
  And I have the following post:
195
- | title | date | layout | author | content |
195
+ | title | date | layout | author | content |
196
196
  | Star Wars | 2009-03-27 | simple | Darth Vader | Luke, I am your father. |
197
197
  And I have a simple layout that contains "Post author: {{ page.author }}"
198
198
  When I run jekyll
@@ -203,7 +203,7 @@ Feature: Post data
203
203
  Given I have a _posts directory
204
204
  And I have a _layouts directory
205
205
  And I have the following posts:
206
- | title | date | layout | author | content |
206
+ | title | date | layout | author | content |
207
207
  | Star Wars | 2009-03-27 | ordered | Darth Vader | Luke, I am your father. |
208
208
  | Some like it hot | 2009-04-27 | ordered | Osgood | Nobody is perfect. |
209
209
  | Terminator | 2009-05-27 | ordered | Arnold | Sayonara, baby |