Can Jekyll act over css or js files?

前端 未结 2 1801
梦谈多话
梦谈多话 2021-02-06 23:56

I\'m using Jekyll for one of my projects and it really seems a very good alternative for developing simple websites but maintaining some processes automated.

It\'s nice

相关标签:
2条回答
  • 2021-02-07 00:29

    You should try the Jekyll Assets plugin, it really helps dealing with CSS and JS assets.

    0 讨论(0)
  • 2021-02-07 00:41

    Yep. You just have to add a YAML block to the file, and Jekyll will process it. The YAML block can be empty:

    ---
    ---
    @import url("/stylesheets/reset.css?{{site.time | date: '%Y%m%d%H%M%S'}}");
    @import url("/stylesheets/config.css?{{site.time | date: '%Y%m%d%H%M%S'}}");
    
    0 讨论(0)
提交回复
热议问题