Anyone reading who has created a website knows that the central file that controls everything is called index.html. Mine was getting rather large with a lot of stuff that I thought should be split up into other files that could be edited as needed, and then called into the index.html file automatically.
This turned out to be not as simple as I thought so after much googling I asked a question on stackoverflow and got some good help quickly on howto include text file in a html file. It turns out the html is not a programming language, displays only so it is not easy to do. I did get several solutions and the one that works best with Jekyll is this. Jekyll will automatically include files that are stored in the “include" directory when asked to. So the little blurb on the front page of this site is included in the include directory as”frontpage.html“. Then in the index.html file it is called by this Jekyll function.
`<p> {% include frontpage.html %} </p>`
So now I edit this file and when Jekyll is recompiled using “Jekyll build” it is updated on the front page.
Sounds so simple but took me a while.
:-)
J