hugo 0.61数字短标题不起作用

问题描述 投票:0回答:1

为从brew安装的本地开发人员在Mac上运行hugo 0.61。

hugo version
Hugo Static Site Generator v0.61.0/extended darwin/amd64 BuildDate: unknown

[当我使用figure短代码时,srcwidthheight属性起作用,但是captiontitlelinkalt似乎不起作用。

页面中的代码:

{{< figure src="images/rpi_up.png" link="images/rpi_up.png" width="400" height="200" alt="All 4 Raspberry Pi nodes came up cleanly on the first try" title="All 4 Raspberry Pi nodes came up cleanly on the first try" >}}

((https://gohugo.io/content-management/shortcodes/#figure的示例似乎将title用作caption-我已经尝试过两种方法)

以下HTML呈现没有错误:

<div class="columns is-centered container">
    <div class="column is-full">
        <figure>
            <img class="rounded-corners" src="/work/kubernetes/kube_117_on_rpi_4/images/rpi_up_huefe7661fd5aa8ec47e26b05b16d13406_10693_400x200_resize_box_2.png" 
                width="400" 
                height="200">
        </figure>
    </div>
</div>

我缺少某些要求或配置吗?我没有在文档中看到任何内容。

markdown shortcode hugo
1个回答
0
投票

我发现短代码是按主题划分的。我使用的它们的代码很简单,只包含width和heigh属性。我找到了一个更完整的版本,并对其进行了修改以满足自己的需求。

© www.soinside.com 2019 - 2024. All rights reserved.