0
votes

I am new to Jekyll. I am developing a static website. I am following the basic setup for a Blog, About, and Contact pages. Below is my file structure. I am using a Markdown approach for generating the Contact and About pages. I execute this command to generate my site: bundle exec jekyll serve From the file structure image you can see not about or contact directory is generate under the _site directory.

I have been trying to follow Josh Powell's example.

Any suggestion are greatly appreciated.

Russ

This is the File from Visual Studio Code. File Structure

This is the About.md page.

About Page

This is the Page layout template.

Page Layout Template

2
When I create 'about' and 'contact' directories in the project's root directory and run the jekyll command, the pages generate with no problem. - rray

2 Answers

1
votes

Like the previous answer mentions, directories starting with an underscore are given a special consideration in Jekyll.

To keep your root level tidy, just drop about.md and contact.md into a directory named simply pages (no leading underscore). The permalink setting of /about/ and /contact/ for the two pages respectively will ensure that the pages are generated as desired.

0
votes

Directories starting with an underscore are special in Jekyll, put the about and contact page at root level without _pages and the will be generated in _site.