Server side includes alternative

后端 未结 6 1256
你的背包
你的背包 2020-12-16 21:02

I have a static site hosted on GitHub Pages which is starting to grow in size. Normally I would use server side includes (

6条回答
  •  死守一世寂寞
    2020-12-16 21:27

    Jekyll is a common solution for this. It is a static site generator that allows you to use Liquid templates, and is made to run on GitHub's servers.

    A great example of the {% include %} feature can be seen on the documentation pages from Twitter Bootstrap, which make use of includes for header.html and footer.html:

    enter image description here

提交回复
热议问题