【问题标题】:How to make Hugo render blockquotes?如何让 Hugo 渲染块引用?
【发布时间】:2020-02-22 18:43:21
【问题描述】:

我的 Hugo 项目中有以下帖子(content/posts/YYYY-MM-DD-title.md 文件):

---
title: My title 
author: Franz Drollig
date: 2019-08-17T16:33:13+00:00
url: /funny-quote/
categories:
  - Quote

---
<blockquote class="wp-block-quote">
  <p>
    First paragraph of the quote 
  </p>

  <p>
    Second paragraph of the quote. 
  </p>

  <p>
    Punch line. 
  </p>
</blockquote>

Author of the quote

现在,只有最后一部分 (Author of the quote) 被渲染。实际报价没有出现。

我需要做什么才能正确呈现&lt;blockquote&gt; 中的文本?

【问题讨论】:

    标签: hugo


    【解决方案1】:

    我添加后它开始呈现该内容

    [markup.goldmark.renderer]
    unsafe= true
    

    按照建议here 发送至config.toml

    【讨论】:

      猜你喜欢
      • 2020-12-30
      • 1970-01-01
      • 2016-10-06
      • 2021-02-06
      • 1970-01-01
      • 2015-07-06
      • 1970-01-01
      • 1970-01-01
      • 2020-04-15
      相关资源
      最近更新 更多