Jekyll 功能标签:多个词 {% for post in site.tags.featured %} - sidebar-featured.html

问题描述 投票:0回答:0

在 Jekyll .md 帖子的标题中,我有以下原始 featured 标签,我需要将其修改为 top featured :

layout: post
title:
author:
categories: \[ Jekyll \]
image:
tags: featured

在 Jekyll sidebar-featured.html 页面中,我有以下 html + liquid 代码:

<ol class="list-featured">
    {% for post in site.tags.featured %}   
        <li class="mb-4">

如果我使用 tags: top-featured{% for post in site.tags.top-featured %} 一切都像一个魅力。

Jekyll 是否提供任何快速方法来保持两个词之间的空白空间

jekyll liquid
© www.soinside.com 2019 - 2024. All rights reserved.