试图实现Jekyll幻灯片,但不确定语法(Trying to implement Jekyll Slideshow but unsure of syntax)
我正在尝试实现https://github.com/matthewowen/jekyll-slideshow ,但我不确定Matt在文档中的含义是什么时候他说:
For any content that you'd like the slideshow process to work on, use the filter 'slideshows' in your template, like so: {{ content | slideshows }}我使用HTML而不是降价。 我的HTML好像......
<ul> <li><img src="assets/images/77_xs650.JPG" alt="Example image" title="" /></li> <li><img src="assets/images/650_chop.JPG" alt="Example image" title="" /></li> <li><img src="assets/images/sr500.JPG" alt="Example image" title="" /></li> <li><img src="assets/images/triumph.jpg" alt="Example image" title="" /></li> </ul>如何在此数据上使用过滤器“幻灯片”?
I am trying to implement https://github.com/matthewowen/jekyll-slideshow, however I am unsure of what Matt means in the documention when he says:
For any content that you'd like the slideshow process to work on, use the filter 'slideshows' in your template, like so: {{ content | slideshows }}I am using HTML rather than markdown. My html looks like...
<ul> <li><img src="assets/images/77_xs650.JPG" alt="Example image" title="" /></li> <li><img src="assets/images/650_chop.JPG" alt="Example image" title="" /></li> <li><img src="assets/images/sr500.JPG" alt="Example image" title="" /></li> <li><img src="assets/images/triumph.jpg" alt="Example image" title="" /></li> </ul>How do I use the filter 'slideshows' on this data?
最满意答案
在您要使用的模板中,将{{ content }}替换为{{ content | sideshows}} {{ content | sideshows}}
In the template that you want to use replace {{ content }} with {{ content | sideshows}}
更多推荐
发布评论