UNPKG

@wilboerht/blog-template

Version:
6 lines (5 loc) 3.76 kB
import{_ as i,c as s,a as t,o as e}from"./chunks/framework.D3nGTGqI.js";const c=JSON.parse('{"title":"开始使用","description":"","frontmatter":{"title":"开始使用","date":"2024-01-20T00:00:00.000Z","tags":["指南","入门"]},"headers":[],"relativePath":"zh/posts/getting-started.md","filePath":"zh/posts/getting-started.md"}'),l={name:"zh/posts/getting-started.md"};function n(h,a,r,o,d,p){return e(),s("div",null,a[0]||(a[0]=[t(`<h1 id="开始使用" tabindex="-1">开始使用 <a class="header-anchor" href="#开始使用" aria-label="Permalink to &quot;开始使用&quot;"></a></h1><p>欢迎来到我的博客!这是一个使用 VitePress 构建的博客网站。</p><h2 id="特性" tabindex="-1">特性 <a class="header-anchor" href="#特性" aria-label="Permalink to &quot;特性&quot;"></a></h2><ul><li>📝 支持 Markdown 写作</li><li>🌍 中英文国际化</li><li>🖼️ 支持图片、视频和 PDF 文件</li><li>🎨 美观的主题</li><li>🚀 快速的静态站点生成</li></ul><h2 id="如何使用" tabindex="-1">如何使用 <a class="header-anchor" href="#如何使用" aria-label="Permalink to &quot;如何使用&quot;"></a></h2><h3 id="添加新文章" tabindex="-1">添加新文章 <a class="header-anchor" href="#添加新文章" aria-label="Permalink to &quot;添加新文章&quot;"></a></h3><ol><li><code>docs/zh/posts</code> 目录下创建新的 <code>.md</code> 文件</li><li>添加 frontmatter 配置</li><li>编写文章内容</li></ol><h3 id="添加媒体文件" tabindex="-1">添加媒体文件 <a class="header-anchor" href="#添加媒体文件" aria-label="Permalink to &quot;添加媒体文件&quot;"></a></h3><div class="language-markdown vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">markdown</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">![</span><span style="--shiki-light:#032F62;--shiki-light-text-decoration:underline;--shiki-dark:#DBEDFF;--shiki-dark-text-decoration:underline;">示例图片</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">](</span><span style="--shiki-light:#24292E;--shiki-light-text-decoration:underline;--shiki-dark:#E1E4E8;--shiki-dark-text-decoration:underline;">/assets/images/example.jpg</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span> <span class="line"></span> <span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&lt;</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">video</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> src</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&quot;/assets/videos/demo.mp4&quot;</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> controls</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;&lt;/</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">video</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">&gt;</span></span> <span class="line"></span> <span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">[下载 PDF](/assets/pdf/document.pdf)</span></span></code></pre></div><h2 id="下一步" tabindex="-1">下一步 <a class="header-anchor" href="#下一步" aria-label="Permalink to &quot;下一步&quot;"></a></h2><ul><li>查看更多<a href="./">博客文章</a></li><li>了解<a href="./../about.html">关于我</a></li><li>访问 <a href="https://github.com" target="_blank" rel="noreferrer">GitHub</a></li></ul>`,11)]))}const E=i(l,[["render",n]]);export{c as __pageData,E as default};