<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Hugo on 闻道录</title>
    <link>https://blog.zjuyk.site/tags/hugo/</link>
    <description>Recent content in Hugo on 闻道录</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <managingEditor>千玄子</managingEditor>
    <webMaster>千玄子</webMaster>
    
    <atom:link href="https://blog.zjuyk.site/tags/hugo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>本博客中的 shortcode 用法记录</title>
      <link>https://blog.zjuyk.site/notes/shortcodes/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      
      <author>千玄子</author>
      <guid>https://blog.zjuyk.site/notes/shortcodes/</guid>
      <description>


&lt;h2 class=&#34;header-anchor-wrapper&#34;&gt;Admonition
  &lt;a href=&#34;#admonition&#34; class=&#34;header-anchor-link&#34;&gt;
&lt;svg
    xmlns=&#34;http://www.w3.org/2000/svg&#34;
    width=&#34;1rem&#34; height=&#34;1rem&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34;
    stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34;
    stroke-linejoin=&#34;round&#34;&gt;
    &lt;line x1=&#34;4&#34; y1=&#34;9&#34; x2=&#34;20&#34; y2=&#34;9&#34;&gt;&lt;/line&gt;&lt;line x1=&#34;4&#34; y1=&#34;15&#34; x2=&#34;20&#34; y2=&#34;15&#34;&gt;&lt;/line&gt;&lt;line x1=&#34;10&#34; y1=&#34;3&#34; x2=&#34;8&#34; y2=&#34;21&#34;&gt;&lt;/line&gt;&lt;line x1=&#34;16&#34; y1=&#34;3&#34; x2=&#34;14&#34; y2=&#34;21&#34;&gt;&lt;/line&gt;
&lt;/svg&gt;

&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;这里的类型目前支持 note、tip、warning 和 danger，因为我只为这四类配了 css 图标&lt;/p&gt;
&lt;pre&gt;&lt;code class=&#34;language-html&#34;&gt;{{&amp;lt; admonition 类型 &amp;quot;标题&amp;quot; &amp;gt;}}

内容

{{&amp;lt; /admonition &amp;gt;}}
&lt;/code&gt;&lt;/pre&gt;



&lt;div class=&#34;admonition note&#34;&gt;
  &lt;div class=&#34;admonition-title&#34;&gt;标题&lt;/div&gt;
  &lt;div class=&#34;admonition-content&#34;&gt;
    内容
  &lt;/div&gt;
&lt;/div&gt;




&lt;div class=&#34;admonition tip&#34;&gt;
  &lt;div class=&#34;admonition-title&#34;&gt;标题&lt;/div&gt;
  &lt;div class=&#34;admonition-content&#34;&gt;
    内容
  &lt;/div&gt;
&lt;/div&gt;




&lt;div class=&#34;admonition warning&#34;&gt;
  &lt;div class=&#34;admonition-title&#34;&gt;标题&lt;/div&gt;
  &lt;div class=&#34;admonition-content&#34;&gt;
    内容
  &lt;/div&gt;
&lt;/div&gt;




&lt;div class=&#34;admonition danger&#34;&gt;
  &lt;div class=&#34;admonition-title&#34;&gt;标题&lt;/div&gt;
  &lt;div class=&#34;admonition-content&#34;&gt;
    内容
  &lt;/div&gt;
&lt;/div&gt;




&lt;h2 class=&#34;header-anchor-wrapper&#34;&gt;Detail
  &lt;a href=&#34;#detail&#34; class=&#34;header-anchor-link&#34;&gt;
&lt;svg
    xmlns=&#34;http://www.w3.org/2000/svg&#34;
    width=&#34;1rem&#34; height=&#34;1rem&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34;
    stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34;
    stroke-linejoin=&#34;round&#34;&gt;
    &lt;line x1=&#34;4&#34; y1=&#34;9&#34; x2=&#34;20&#34; y2=&#34;9&#34;&gt;&lt;/line&gt;&lt;line x1=&#34;4&#34; y1=&#34;15&#34; x2=&#34;20&#34; y2=&#34;15&#34;&gt;&lt;/line&gt;&lt;line x1=&#34;10&#34; y1=&#34;3&#34; x2=&#34;8&#34; y2=&#34;21&#34;&gt;&lt;/line&gt;&lt;line x1=&#34;16&#34; y1=&#34;3&#34; x2=&#34;14&#34; y2=&#34;21&#34;&gt;&lt;/line&gt;
&lt;/svg&gt;

&lt;/a&gt;
&lt;/h2&gt;

&lt;pre&gt;&lt;code class=&#34;language-html&#34;&gt;{{&amp;lt; details &amp;quot;点击展开&amp;quot; &amp;gt;}}

内容

{{&amp;lt; /details &amp;gt;}}
&lt;/code&gt;&lt;/pre&gt;
&lt;details&gt;
    &lt;summary&gt;点击展开&lt;/summary&gt;
    &lt;div&gt;
      内容
    &lt;/div&gt;
  &lt;/details&gt;
  



&lt;h2 class=&#34;header-anchor-wrapper&#34;&gt;Mermaid
  &lt;a href=&#34;#mermaid&#34; class=&#34;header-anchor-link&#34;&gt;
&lt;svg
    xmlns=&#34;http://www.w3.org/2000/svg&#34;
    width=&#34;1rem&#34; height=&#34;1rem&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34;
    stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34;
    stroke-linejoin=&#34;round&#34;&gt;
    &lt;line x1=&#34;4&#34; y1=&#34;9&#34; x2=&#34;20&#34; y2=&#34;9&#34;&gt;&lt;/line&gt;&lt;line x1=&#34;4&#34; y1=&#34;15&#34; x2=&#34;20&#34; y2=&#34;15&#34;&gt;&lt;/line&gt;&lt;line x1=&#34;10&#34; y1=&#34;3&#34; x2=&#34;8&#34; y2=&#34;21&#34;&gt;&lt;/line&gt;&lt;line x1=&#34;16&#34; y1=&#34;3&#34; x2=&#34;14&#34; y2=&#34;21&#34;&gt;&lt;/line&gt;
&lt;/svg&gt;

&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;首先需要在 front-matter 里将 mermaid 设置成 true 加载 js&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>