Tag: jekyll extensions

使用Jekyll插件在_site内生成文件

我编写了一个Jekyll插件“Tags”,它生成一个文件并返回该文件的链接字符串。 一切都很好,但如果我将该文件直接写入_site文件夹,它将被删除。 如果我将该文件放在_site文件夹之外,则不会在_site内生成。 我应该在哪里以及如何添加我的文件,以便它在_site文件夹中可用?

jekyll共享模板的不同参数

我试图在其他2个模板中共享一个模板,如下所示: _layouts/V2/post.slim {% include V2/date_wrapper.html date_value=page.date %} 和 _includes/V2/footer/recent_posts.slim | {% for post in site.posts limit: 5 %} | | {{ post.title }} | | | {% include V2/date_wrapper.html date_value=post.date %} | | | {% endfor %} 这是共享模板: _includes/V2/date_wrapper.html {% assign d = include.date_value | date: “%-d” %} {{ include.date_value | date: “%B” }} {% […]

杰基尔服务不起作用

我已经下载了这个github repo的zip – https://github.com/mmistakes/minimal-mistakes 我已经安装了bundler ,我做了bundle install ,它运行得很好。 现在,当我尝试运行jekyll serve -w , 警告:Gem :: Specification.reset期间未解析的规范:jekyll-watch(〜> 1.1)警告:清除未解析的规范。 如果这会导致问题,请报告错误。 配置文件:/home/kenden/Desktop/minimal-mistakes-master/_config.yml 依赖性错误:哎呀! 看起来你没有安装jekyll-paginate或其中一个依赖项。 为了使用当前配置的Jekyll,您需要安装此gem。 来自Ruby的完整错误消息是:’无法加载此类文件 – jekyll-paginate’如果遇到麻烦,可以在http://jekyllrb.com/help/找到有用的资源! jekyll 3.1.3 | 错误:jekyll-paginate 但是,当我这样做时, gem list ,它显示了jekyll-paginate (1.1.0)以及所有其他已安装的gem。 如何解决这个问题?