Jekyll: Include a file from directory outside of _includes

后端 未结 7 1535
陌清茗
陌清茗 2021-02-07 03:34

I have an directory called /patterns in my Jekyll site, whose structure generally looks generally like this:

_includes _layouts _site /patterns index

7条回答
  •  逝去的感伤
    2021-02-07 03:45

    In your _config.yml, you can add additional directories like so:

    includes:
    - patterns
    

    Just as simple as that!

    In action here on my Jekyll site: https://github.com/pschfr/pschfr.github.io/blob/master/_config.yml

提交回复
热议问题