My First Post
使用说明(备忘)
title:页面标题slug:slug 是 URL 的一部分,它以易于阅读的形式标识网站上的特定页面。date:页面的创建日期。draft:如果要取消发布页面。featuredImg:为页面提供唯一的图像,显示为背景图像。可以使用菜单中的特殊按钮切换到全屏。description:页面的说明。tags:允许定义标签。categories:允许定义类别。author:允许指定页面作者。authorLink:允许提供单独的作者简介。scrolltotop:该页的滚动到顶部按钮。mathjax:启用每页 MathJax 支持。toc:启用目录。custom_css:允许通过将 css 文件放在 中来提供自定义 CSS。CSS 将仅针对该页面调用。/static/css/custom_js:允许通过将 css 文件放在 中来提供自定义 CSS。JS 将仅针对该页面调用。/static/js/ShowLastmod:这将启用给定页面的上次修改日期。Lastmod:在ShowLastmod=true时,输入页面的上次修改日期。
If
ShowLastmod:true:
If
enableGitInfo = true, then Git Hash will be shown in[...]after Date.If
enableGitInfo = false, then:
- If
Lastmodis not provided orLastmodhas same value asDate, error will be thrown.- If
Lastmodis provided orLastmodis different fromDate, value ofLastmodwill be displayed in[...]after Date.If
ShowLastmodis not provided. User response defaults to false. It is equivalent to providingShowLastmod:false.
Latex
LaTeX 是通过 Mathjax 实现的。
- 如果您将此主题用作适当的数学博客,请在 hugo.toml 中启用 true。它将在站点范围内启用 Mathjax 支持。
global_mathjax - 由于 Mathjax 是一个繁重的脚本 (>1 MB),因此在站点范围内运行 Mathjax 并不理想,特别是如果您属于上述队列。但是,如果要使用数学公式,可以在 Page frontmatter 中设置。它将仅为该页面启用 mathjax。
mathjax : true
Banner
{{< admonition type=tip title="This is a tip" >}}
A **tip** banner
{{< /admonition >}}
Or
{{< admonition tip "This is a tip" >}}
A **tip** banner
{{< /admonition >}}
image
image at left
figure-left
big image
figure-big