Jekyll - 你如何获得帖子的渲染内容?
Jekyll - How do you get rendered content of posts?
我需要在 Jekyll 中获取一些帖子的渲染内容(没有 html 标签)。当我做 'post.content' 它 returns 完整的 HTML 而不是呈现的文本。我该怎么做?
您可以使用 strip_html
过滤器 {{ post.content | strip_html }}
我需要在 Jekyll 中获取一些帖子的渲染内容(没有 html 标签)。当我做 'post.content' 它 returns 完整的 HTML 而不是呈现的文本。我该怎么做?
您可以使用 strip_html
过滤器 {{ post.content | strip_html }}