教程 on Chirpyhttps://geekifan.github.io/chirpy-starter/zh-cn/categories/%E6%95%99%E7%A8%8B/Recent content in 教程 on ChirpyHugozh-CNSun, 11 Aug 2019 00:34:00 +0800自定义网站图标https://geekifan.github.io/chirpy-starter/zh-cn/post/2019-08-11-customize-the-favicon/Sun, 11 Aug 2019 00:34:00 +0800https://geekifan.github.io/chirpy-starter/zh-cn/post/2019-08-11-customize-the-favicon/<p><a href="https://github.com/cotes2020/jekyll-theme-chirpy/"><strong>Chirpy</strong></a> 的<a href="https://www.favicon-generator.org/about/">网站图标</a>放置在 <code class="filepath">assets/img/favicons/</code> 目录中。您可能想用自己的图标替换它们。以下部分将指导您创建和替换默认网站图标。</p> <h2 id="生成网站图标" id=生成网站图标> <span class="me-2">生成网站图标</span> <a href="#%e7%94%9f%e6%88%90%e7%bd%91%e7%ab%99%e5%9b%be%e6%a0%87" class="anchor text-muted"><i class="fas fa-hashtag"></i></a> </h2><p>准备一张尺寸为 512x512 或更大的正方形图像(PNG、JPG 或 SVG),然后前往在线工具 <a href="https://realfavicongenerator.net/"><strong>Real Favicon Generator</strong></a>,点击 <kbd>Select your Favicon image</kbd> 按钮上传您的图像文件。</p>开始使用https://geekifan.github.io/chirpy-starter/zh-cn/post/2019-08-09-getting-started/Fri, 09 Aug 2019 20:55:00 +0800https://geekifan.github.io/chirpy-starter/zh-cn/post/2019-08-09-getting-started/<blockquote class="prompt-warning"><p><strong>NOTE:</strong> 该教程还没有完成从 Jekyll 版本的迁移,请谨慎参考。</p></blockquote> <h2 id="创建站点仓库" id=创建站点仓库> <span class="me-2">创建站点仓库</span> <a href="#%e5%88%9b%e5%bb%ba%e7%ab%99%e7%82%b9%e4%bb%93%e5%ba%93" class="anchor text-muted"><i class="fas fa-hashtag"></i></a> </h2><p>创建站点仓库时,根据您的需求有两种选择:</p> <h3 id="选项1-使用起始模板推荐" id=选项1-使用起始模板推荐> <span class="me-2">选项1. 使用起始模板(推荐)</span> <a href="#%e9%80%89%e9%a1%b91-%e4%bd%bf%e7%94%a8%e8%b5%b7%e5%a7%8b%e6%a8%a1%e6%9d%bf%e6%8e%a8%e8%8d%90" class="anchor text-muted"><i class="fas fa-hashtag"></i></a> </h3><p>这种方法简化了升级过程,隔离了不必要的文件,非常适合那些想专注于写作而不需要太多配置的用户。</p>撰写新文章https://geekifan.github.io/chirpy-starter/zh-cn/post/2019-08-08-write-a-new-post/Thu, 08 Aug 2019 14:10:00 +0800https://geekifan.github.io/chirpy-starter/zh-cn/post/2019-08-08-write-a-new-post/<p>本教程将指导您如何在 <em>Chirpy</em> 模板中撰写文章,即使您以前使用过 Hugo,也值得阅读,因为许多功能需要设置特定变量。</p> <h2 id="命名和路径" id=命名和路径> <span class="me-2">命名和路径</span> <a href="#%e5%91%bd%e5%90%8d%e5%92%8c%e8%b7%af%e5%be%84" class="anchor text-muted"><i class="fas fa-hashtag"></i></a> </h2><p>创建一个新文件,使用 <code>hugo new content/post/YYYY-MM-DD-TITLE.md</code>。您可以根据自己的喜好更改路径,但请注意,所有文章都应该放在根目录的 <code class="filepath">content/post</code> 中。</p>