【问题标题】:Markdown lists missing numbers/bullets in HugoMarkdown 列出了 Hugo 中缺少的数字/项目符号
【发布时间】:2020-11-19 20:54:01
【问题描述】:

我正在使用parsa hugo 主题创建一个网站。它工作正常,除了降价列表(有序和无序)呈现时没有数字或项目符号。

Markdown(标题中的type: "post"):

这样渲染:

我在主题中环顾四周,但没有取得多大成功。我想我必须在css中改变一些东西,但我不知道在哪里。我在config.toml 文件中使用了[markup] 设置,但没有成功。

我对此表示怀疑,但这可能与林业/网络化有关吗?推荐使用它们作为安装路径。我只是在本地运行 hugo 来查看该站点,没有林业或 netifly。

【问题讨论】:

    标签: markdown hugo


    【解决方案1】:

    感谢post on the hugo forum

    我需要对主题的style.css 文件进行一些更改。在 CSS 中,我了解到,ul 表示无序列表,ol 表示有序列表。

    文件说

    ol,
    ul {
      list-style-type: none;
      margin: 0px;
    }
    

    我使用 w3schools 的 listlist-style-type 更改为我需要的。我只需要最基本的设置:

    ol {
      list-style-type: decimal;
      margin: 0px;
    }
    
    ul {
      list-style-type: disc;
      margin: 0px;
    }
    

    【讨论】:

      猜你喜欢
      • 2016-02-13
      • 1970-01-01
      • 2012-06-17
      • 1970-01-01
      • 1970-01-01
      • 2022-12-30
      • 1970-01-01
      • 1970-01-01
      • 2019-02-03
      相关资源
      最近更新 更多