Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Go 如何将短代码包含到html文件中?_Go_Hugo_Hugo Shortcode - Fatal编程技术网

Go 如何将短代码包含到html文件中?

Go 如何将短代码包含到html文件中?,go,hugo,hugo-shortcode,Go,Hugo,Hugo Shortcode,我正在为网站使用一个短代码。当现场组装工作按以下顺序进行时: 我有一个文件feedback.md(路径:content/sections/first screen.md)。在这里,我使用的是短代码 {{< feedback/feedback__title >}} Clients feedback {{< /feedback/feedback__title >}} {{} 客户反馈 {{} 我有一个短代码文件feedback\u title.html(路径:layout

我正在为网站使用一个短代码。当现场组装工作按以下顺序进行时:

我有一个文件feedback.md(路径:content/sections/first screen.md)。在这里,我使用的是短代码

{{< feedback/feedback__title >}}
Clients feedback
{{< /feedback/feedback__title >}}
{{}
客户反馈
{{}
我有一个短代码文件feedback\u title.html(路径:layouts/shortcodes/feedback/feedback\u title.html)


{{.Inner}}
我有一个partials html文件(路径:layouts/partials/section\uu feedback.html),其中的代码是:

<section class="feedback page-section">
<h2 class="feedback__title page-section__title">
Clients feedback
</h2>
etc -->

客户反馈
等等-->
我需要的不是h2而是粘贴我的短代码,它是从first-screen.md填充的。在此之前,我使用{.Content},因为html文件的结构更简单。现在我需要在一个特定的位置插入一个带有自己类的特定标记(这不仅仅是关于h2的,我还需要使用很多标记)

如何从html文件访问快捷码?

<section class="feedback page-section">
<h2 class="feedback__title page-section__title">
Clients feedback
</h2>
etc -->