Adding markdown examples to Pages

Fix for #3824
This commit is contained in:
Samuel Wright 2015-12-21 11:56:13 +07:00
parent 05285798be
commit cc63354367
1 changed files with 8 additions and 3 deletions

View File

@ -27,12 +27,14 @@ homepage of your Jekyll-generated site.
## Where additional pages live ## Where additional pages live
Where you put HTML files for pages depends on how you want the pages to work. Where you put HTML or [Markdown](http://daringfireball.net/projects/markdown/)
files for pages depends on how you want the pages to work.
There are two main ways of creating pages: There are two main ways of creating pages:
- Place named HTML files for each page in your site's root folder. - Place named HTML or [Markdown](http://daringfireball.net/projects/markdown/)
files for each page in your site's root folder.
- Create a folder in the site's root for each page, and place an index.html - Create a folder in the site's root for each page, and place an index.html
file in each page folder. or index.md file in each page folder.
Both methods work fine (and can be used in conjunction with each other), Both methods work fine (and can be used in conjunction with each other),
with the only real difference being the resulting URLs. with the only real difference being the resulting URLs.
@ -53,6 +55,7 @@ and associated URLs might look like:
|-- _site/ |-- _site/
|-- about.html # => http://example.com/about.html |-- about.html # => http://example.com/about.html
|-- index.html # => http://example.com/ |-- index.html # => http://example.com/
|-- other.md # => http://example.com/other.html
└── contact.html # => http://example.com/contact.html └── contact.html # => http://example.com/contact.html
{% endhighlight %} {% endhighlight %}
@ -77,6 +80,8 @@ might look like:
| └── index.html # => http://example.com/about/ | └── index.html # => http://example.com/about/
├── contact/ ├── contact/
| └── index.html # => http://example.com/contact/ | └── index.html # => http://example.com/contact/
|── other/
| └── index.md # => http://example.com/other.html
└── index.html # => http://example.com/ └── index.html # => http://example.com/
{% endhighlight %} {% endhighlight %}