试图实现Jekyll幻灯片,但不确定语法(Trying to implement Jekyll Slideshow but unsure of syntax)

编程入门 行业动态 更新时间:2024-10-26 00:28:18
试图实现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}}

更多推荐

本文发布于:2023-08-06 19:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1455668.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:幻灯片   但不   语法   Jekyll   syntax

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!