<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Markdown on 樊尘刹记</title>
		<link>http://localhost:1313/tags/markdown/</link>
		<description>Recent content in Markdown on 樊尘刹记</description>
		<generator>Hugo</generator>
		<language>zh-CN</language>
		
			<managingEditor>richffan@outlook.com (richfan)</managingEditor>
		
		
			<webMaster>richffan@outlook.com (richfan)</webMaster>
		
		
		
			<lastBuildDate>Tue, 25 Aug 2026 10:00:00 +0800</lastBuildDate>
		
			<atom:link href="http://localhost:1313/tags/markdown/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Solitude Hugo Shortcode 使用指南</title>
				<link>http://localhost:1313/r/shortcode-showcase.html</link>
				<pubDate>Sat, 22 Aug 2026 10:00:00 +0800</pubDate><author>richffan@outlook.com (richfan)</author>
				<guid>http://localhost:1313/r/shortcode-showcase.html</guid>
				<description>&lt;p&gt;Shortcode 是 Hugo 在 Markdown 之外提供的内容组件语法。Solitude 用它承载提示框、标签页、图库、图表等富内容；迁移旧文章时，也应把 Hexo 外挂标签改写为对应的 Hugo shortcode。&lt;/p&gt;&#xA;&#xA;&#xA;&#xA;&#xA;  &#xA;&#xA;&lt;aside class=&#34;solitude-tag note info flat no-icon has-icon&#34;&gt;&#xA;  &lt;span class=&#34;note-icon&#34; aria-hidden=&#34;true&#34;&gt;&lt;i class=&#34;fas fa-circle-info&#34;&gt;&lt;/i&gt;&lt;/span&gt;&#xA;  &lt;div class=&#34;note-content&#34;&gt;本文既是使用手册，也是可构建的效果页。每个组件都按 &lt;strong&gt;用途 → 写法 → 参数 → 效果&lt;/strong&gt; 展开，代码可以直接复制到 Markdown 文件中。&lt;/div&gt;&#xA;&lt;/aside&gt;&#xA;&#xA;&lt;h2 id=&#34;开始之前&#34;&gt;开始之前&lt;/h2&gt;&#xA;&lt;p&gt;Hugo shortcode 有两种边界符：&lt;code&gt;{{&amp;lt; shortcode &amp;gt;}}&lt;/code&gt; 适合普通参数，&lt;code&gt;{{% shortcode %}}&lt;/code&gt; 会先处理内部 Markdown。Solitude 的块级组件已经按各自用途处理正文，通常直接使用尖括号写法即可。&lt;/p&gt;&#xA;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;内容类型&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;推荐组件&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;适合场景&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;行内强调&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;span&lt;/code&gt;、&lt;code&gt;label&lt;/code&gt;、&lt;code&gt;keyboard&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;一句话中的状态、术语或快捷键&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;块级提示&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;note&lt;/code&gt;、&lt;code&gt;subnote&lt;/code&gt;、&lt;code&gt;fold&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;说明、警告、补充资料&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;导航与引用&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;button&lt;/code&gt;、&lt;code&gt;link&lt;/code&gt;、&lt;code&gt;card&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;行动入口、站内外资源&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;结构化内容&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;tabs&lt;/code&gt;、&lt;code&gt;timeline&lt;/code&gt;、&lt;code&gt;gallery&lt;/code&gt;、&lt;code&gt;series&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;分组、步骤、图片与文章集合&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;动态内容&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;mermaid&lt;/code&gt;、&lt;code&gt;chartjs&lt;/code&gt;、&lt;code&gt;typeit&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;流程、数据与动态文字&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&#xA;&#xA;&#xA;&#xA;  &#xA;&#xA;&lt;aside class=&#34;solitude-tag note warning simple no-icon has-icon&#34;&gt;&#xA;  &lt;span class=&#34;note-icon&#34; aria-hidden=&#34;true&#34;&gt;&lt;i class=&#34;fas fa-triangle-exclamation&#34;&gt;&lt;/i&gt;&lt;/span&gt;&#xA;  &lt;div class=&#34;note-content&#34;&gt;Shortcode 名称和参数区分大小写。块级组件还要成对书写结束标签，否则 Hugo 会在构建阶段直接报错。&lt;/div&gt;&#xA;&lt;/aside&gt;&#xA;&#xA;&lt;h2 id=&#34;文本与状态&#34;&gt;文本与状态&lt;/h2&gt;&#xA;&lt;h3 id=&#34;彩色文本与标签&#34;&gt;彩色文本与标签&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;p&lt;/code&gt; 用于整段文字，&lt;code&gt;span&lt;/code&gt; 用于行内文字，&lt;code&gt;label&lt;/code&gt; 用于短小的状态标记。颜色参数可使用 &lt;code&gt;blue&lt;/code&gt;、&lt;code&gt;green&lt;/code&gt;、&lt;code&gt;orange&lt;/code&gt;、&lt;code&gt;red&lt;/code&gt;、&lt;code&gt;purple&lt;/code&gt; 等主题色名称。&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
