我的jekyll博客模板包含资源和页面的链接,如下所示:
{{ site.url }}/my-page.html
Run Code Online (Sandbox Code Playgroud)
这在部署中很有效,但是当我jekyll serve在开发中运行时,所有链接都指向实时页面而不是开发页面.
my-site-url/my-page.html
# But I want this in development
localhost:4000/my-page.html
Run Code Online (Sandbox Code Playgroud)
有没有办法让jekyll {{ site.url }}在开发中使用不同的东西?