[英]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而不是markdown。 我的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>
如何在此數據上使用過濾器“幻燈片”?
在您要使用的模板中,將{{ content }}
替換為{{ content | sideshows}}
{{ content | sideshows}}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.