Using Jekyll for a non-blog site

I would like to use Jekyll for my site, but I cannot figure out how to set it up. All the documentation I've seen shows how to use Jekyll to create a blog. I just want to write Markdown and Jekyll convert it to a website.

I understand that this question is a bit vague, and the terminology may not be entirely accurate. I am new to website design and I do not want to learn HTML.

(Disclosure: My site will be dedicated to the GitHub project.)

+6
source share
2 answers

There are four types of documents that you can find on the Jekyll website:

  • Static files like js, css or even an html page. They do not have front matter , they are simply copied during generation and can be found in the hash of site.static_files ,

  • posts they are in the _posts folder, have a front and can be found in the site.posts hash site.posts liquid,

  • pages, they can be anywhere in your folder structure, have a front, and can be found in the has.pages file using fluid,

  • collections , which are more elaborate pieces of data with a front and can be found in site.collections hash of liquid.

You can use any of them. If you do not want to use messages, simply delete or omit the _posts folder and just use the pages.

+7
source

If all you want to do is write down a record and create a single page for a project, consider using an automatic GH page generator .

In step 3, you write the content for your page in Markdown with the Github attribute and then select the layout to publish it. GH page screenshot

0
source

Source: https://habr.com/ru/post/989103/


All Articles