From 180179303515cf82ed99503fedfe6f3f5497657b Mon Sep 17 00:00:00 2001 From: Jakob Krigovsky Date: Wed, 11 Jul 2018 16:01:17 +0200 Subject: [PATCH] Use .markdown for page templates (#7126) Merge pull request 7126 --- docs/_docs/themes.md | 4 ++-- lib/site_template/{about.md => about.markdown} | 0 lib/site_template/{index.md => index.markdown} | 0 test/test_new_command.rb | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename lib/site_template/{about.md => about.markdown} (100%) rename lib/site_template/{index.md => index.markdown} (100%) diff --git a/docs/_docs/themes.md b/docs/_docs/themes.md index b8f469e5..a2fcc4c9 100644 --- a/docs/_docs/themes.md +++ b/docs/_docs/themes.md @@ -19,8 +19,8 @@ In the case of Minima, you see only the following files in your Jekyll site dire ├── _config.yml ├── _posts │ └── 2016-12-04-welcome-to-jekyll.markdown -├── about.md -└── index.md +├── about.markdown +└── index.markdown ``` The `Gemfile` and `Gemfile.lock` files are used by Bundler to keep track of the required gems and gem versions you need to build your Jekyll site. diff --git a/lib/site_template/about.md b/lib/site_template/about.markdown similarity index 100% rename from lib/site_template/about.md rename to lib/site_template/about.markdown diff --git a/lib/site_template/index.md b/lib/site_template/index.markdown similarity index 100% rename from lib/site_template/index.md rename to lib/site_template/index.markdown diff --git a/test/test_new_command.rb b/test/test_new_command.rb index 632ad3d5..6bb6ed3c 100644 --- a/test/test_new_command.rb +++ b/test/test_new_command.rb @@ -57,7 +57,7 @@ class TestNewCommand < JekyllUnitTest capture_output { Jekyll::Commands::New.process(@args) } new_site_files = dir_contents(@full_path).reject do |f| - File.extname(f) == ".markdown" + f.end_with?("welcome-to-jekyll.markdown") end assert_same_elements static_template_files, new_site_files