作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我正在使用 Hugo 静态网站生成器来创建网站。我正在使用这个代码片段,如文档中给出的那样来创建目录:
<div id="toc" class="well col-md-4 col-sm-6">
{{ .TableOfContents }}
</div>
这是生成的代码:
<div id="toc" class="well col-md-4 col-sm-6">
<nav id="TableOfContents">
<ul>
<li>
<ul>
<li><a href="#step-1-install-hugo:c57cc0038c788519b441e0331c8bebc7">Step 1. Install Hugo</a></li>
<li><a href="#step-2-build-the-docs:c57cc0038c788519b441e0331c8bebc7">Step 2. Build the Docs</a></li>
<li><a href="#step-3-change-the-docs-site:c57cc0038c788519b441e0331c8bebc7">Step 3. Change the docs site</a></li>
<li><a href="#step-4-have-fun:c57cc0038c788519b441e0331c8bebc7">Step 4. Have fun</a></li>
</ul>
</li>
</ul>
</nav>
</div>
因此,我得到了一颗额外的子弹。谁能解决这个问题?或者您可以建议 CSS 仅从第一个 ul
中删除元素符号。
最佳答案
使用以下 CSS:
#toc ul {
list-style-type: none;
}
#toc ul ul {
list-style-type: disc;
}
关于css - 雨果目录前面有额外的点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37241028/
在 Hugo 的帮助下,我正在创建一个法语博客。目前我所有的日期都以英语(二月)显示,但我希望它们以法语(février)显示。如何设置语言? 我的 config.toml 看起来像这样: baseU
我是一名优秀的程序员,十分优秀!