Is there a way to check whether a jekyll site is being served locally?

后端 未结 3 601
面向向阳花
面向向阳花 2021-01-06 00:51

I\'d like to add the following line to my head.html solely when running jekyll serve locally:

  

        
3条回答
  •  梦谈多话
    2021-01-06 01:20

    To preview your site with drafts, run jekyll serve or jekyll build with the --drafts switch. Each will be assigned the value modification time of the draft file for its date, and thus you will see currently edited drafts as the latest posts.

    Did u try this?

    https://jekyllrb.com/docs/posts/

提交回复
热议问题