You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在使用了 Internal tags 的情况下会出现 /404/ 键值重复的情况。
所以获取所有Tags时需要过滤掉Internal tags。 When using Internal tags, there may be duplicate values for /404/ key. Therefore, it is necessary to filter out Internal tags when retrieving all Tags.
// Get all tagsconfig.addCollection("tags",asyncfunction(collection){collection=awaitapi.tags.browse({include: "count.posts",limit: "all",filter: "visibility:public"// }).catch(err=>{console.error(err);});
The text was updated successfully, but these errors were encountered:
rebron1900
changed the title
get all tag ndee add filter: "visibility:public"
get all tag need add filter: "visibility:public"
Aug 18, 2023
@daviddarnes
"How can I prevent 11ty from parsing Internal tags? I need to use some Internal tags to determine whether the page should load TOC or be full width." 如何才能让11ty不解析 Internal tags 呢?我需要用到一些 Internal tags 来判断页面是否加载 TOC 或者是否是full width
在使用了 Internal tags 的情况下会出现 /404/ 键值重复的情况。
所以获取所有Tags时需要过滤掉Internal tags。
When using Internal tags, there may be duplicate values for /404/ key. Therefore, it is necessary to filter out Internal tags when retrieving all Tags.
The text was updated successfully, but these errors were encountered: