Closed epogrebnyak closed 2 years ago
<html><body>
<!--StartFragment--><main>
<div class="highlight"><pre style="color:#e7e9db;background-color:#2f1e2e;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-apl" data-lang="apl"><span style="color:#ef6155">Rebuild</span> <span style="color:#ef6155">failed</span>:
<span style="color:#48b685">"Q:\finec\content\ru\sandbox\admonitions\index.md:24:6"</span>: <span style="color:#ef6155">failed</span> <span style="color:#ef6155">to</span> <span style="color:#ef6155">extract</span> <span style="color:#ef6155">shortcode</span>: <span style="color:#ef6155">shortcode</span> <span style="color:#48b685">"alert"</span> <span style="color:#ef6155">has</span> <span style="color:#ef6155">no</span> <span style="color:#06b6ef">.</span><span style="color:#ef6155">Inner</span><span style="color:#5bc4bf">,</span> <span style="color:#ef6155">yet</span> <span style="color:#ef6155">a</span> <span style="color:#ef6155">closing</span> <span style="color:#ef6155">tag</span> <span style="color:#ef6155">was</span> <span style="color:#ef6155">provided</span>
</code></pre></div>
<div class="highlight"><div style="color:#e7e9db;background-color:#2f1e2e;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
22 23 24 25 26 | {{< alert icon="👉" >}} _Markdown_ and <em>HTML</em> will be rendered. {{< /alert >}} {{< details "Start in open state" open >}}
-- | --
</div>
</div>
<p class="version">Hugo Static Site Generator v0.80.0/extended windows/amd64 BuildDate: unknown</p>
<a href="http://localhost:1313/">Reload Page</a>
</main><!--EndFragment-->
</body>
</html>Rebuild failed:
"Q:\finec\content\ru\sandbox\admonitions\index.md:24:6": failed to extract shortcode: shortcode "alert" has no .Inner, yet a closing tag was provided
22
23
24
25
26
{{< alert icon="👉" >}}
_Markdown_ and <em>HTML</em> will be rendered.
{{< /alert >}}
{{< details "Start in open state" open >}}
Hugo Static Site Generator v0.80.0/extended windows/amd64 BuildDate: unknown
[Reload Page](http://localhost:1313/)
@epogrebnyak, добавил макросы парного alert и details. Теперь их можно использовать в разметке, как указано в доке
@super16 - побочный эффект нижняя строка Like Doks? Star on GitHub. Thanks!
Можем ли ее убрать?
Убрал
У нас видимо старая версия шаблона, распознает только одинарный alert, не распознает парный и details:
https://getdoks.org/docs/how-to/common-features/alerts/