最近搜索
没有最近搜索

Tim Gilbreath
已加入2024年5月24日
·
最后活动2024年5月28日
关注
0
关注者
0
活动总数
3
投票
0
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Tim Gilbreath
Tim Gilbreath 进行了评论,
社区评论 Discussion - Tips and best practices from the community
Hmm for some reason that's giving me an error saying it either can't use #is in that manner, or that ID is not available in category.
This is the block of code I'm trying to run it on, basically I want one category to have a different style:
I discovered that
{{#each categories}}
{{#if ../has_multiple_categories}}
-
{{name}}
{{excerpt description characters=150}}
{{else}}
{{#each sections}}
-
{{excerpt description characters=150}}
{{name}}
{{/each}}
{{/if}}
{{/each}}
查看评论 · 已于 2024年5月28日 发布 · Tim Gilbreath
0
关注者
0
投票
0
评论
Tim Gilbreath 创建了一个帖子,
帖子 Discussion - Tips and best practices from the community
Hi guys, I'm having a basic conundrum..I'd like to pick out one of my categories using an if/then in my home page code, and style that category box differently than the rest. What is the procedure for writing if/thens and referencing a category?
Thanks in advance!
已于 2024年5月24日 发布 · Tim Gilbreath
0
关注者
6
投票
3
评论