Tony McDonald

Computing & IT

Tony smiling at you

Learning Curve Journal

Tony McDonald


Twitter | GitHub | YouYube | ScienceTony

Finding out about Jekyll

07 Aug 2019


Task

Since I cannot use php, I need an alternative.

Today, I learnt about Jekyll and how i can use include. First I needed to make an _includes directory and then I set about making the files.

Where php uses require, Jekyll uses include within double %, which in turn is within curly braces as follows: { % include [insert name of html file] %}. Note, you will not need the [] brackets.
Like php, i can now create blocks of code and then use include to call them when i need them. I can also us different default templates and storm them in the _Layouts folder.
I made a _layouts directory and added a default template to it.

This will make maintenance much easier now.

Resources:

This gets me stared and has info about making a blog
Video lessons on Jekyll

Share on Tumblr
Share on LinkedIn
Share on Reddit
Share on Telegram