<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://tian-nu.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://tian-nu.github.io/" rel="alternate" type="text/html" /><updated>2026-02-26T01:41:25+08:00</updated><id>https://tian-nu.github.io/feed.xml</id><title type="html">天努的博客</title><subtitle>记录技术、生活与思考的个人博客</subtitle><author><name>天努</name><email>your-email@example.com</email></author><entry><title type="html">Jekyll 博客搭建教程</title><link href="https://tian-nu.github.io/posts/jekyll-tutorial/" rel="alternate" type="text/html" title="Jekyll 博客搭建教程" /><published>2024-01-15T14:30:00+08:00</published><updated>2024-01-15T14:30:00+08:00</updated><id>https://tian-nu.github.io/posts/jekyll-tutorial</id><content type="html" xml:base="https://tian-nu.github.io/posts/jekyll-tutorial/"><![CDATA[<h2 id="什么是-jekyll">什么是 Jekyll？</h2>

<p>Jekyll 是一个静态网站生成器，它可以将 Markdown 文件转换为静态 HTML 页面。使用 Jekyll 搭建博客有很多优点：</p>

<ul>
  <li><strong>免费托管</strong>：可以直接部署到 GitHub Pages</li>
  <li><strong>Markdown 支持</strong>：使用 Markdown 编写文章</li>
  <li><strong>主题丰富</strong>：有大量现成的主题可用</li>
  <li><strong>插件扩展</strong>：支持各种插件扩展功能</li>
</ul>

<h2 id="快速开始">快速开始</h2>

<h3 id="1-安装-jekyll">1. 安装 Jekyll</h3>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>gem <span class="nb">install </span>bundler jekyll
</code></pre></div></div>

<h3 id="2-创建新博客">2. 创建新博客</h3>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>jekyll new my-blog
<span class="nb">cd </span>my-blog
</code></pre></div></div>

<h3 id="3-本地预览">3. 本地预览</h3>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>bundle <span class="nb">exec </span>jekyll serve
</code></pre></div></div>

<h3 id="4-部署到-github-pages">4. 部署到 GitHub Pages</h3>

<p>将代码推送到 GitHub 仓库，启用 GitHub Pages 即可。</p>

<h2 id="目录结构">目录结构</h2>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>my-blog/
├── _config.yml          # 配置文件
├── _layouts/            # 布局模板
├── _includes/           # 包含文件
├── _posts/              # 博客文章
├── _sass/               # Sass 样式
├── assets/              # 静态资源
└── index.md             # 首页
</code></pre></div></div>

<h2 id="总结">总结</h2>

<p>Jekyll 是一个功能强大且易于使用的静态网站生成器，非常适合搭建个人博客。希望这篇教程对你有帮助！</p>]]></content><author><name>天努</name><email>your-email@example.com</email></author><category term="技术" /><category term="Jekyll" /><category term="博客" /><category term="教程" /><category term="GitHub" /><summary type="html"><![CDATA[详细介绍如何使用 Jekyll 和 GitHub Pages 搭建个人博客网站。]]></summary></entry><entry><title type="html">Hello World - 博客开篇</title><link href="https://tian-nu.github.io/posts/hello-world/" rel="alternate" type="text/html" title="Hello World - 博客开篇" /><published>2024-01-01T10:00:00+08:00</published><updated>2024-01-01T10:00:00+08:00</updated><id>https://tian-nu.github.io/posts/hello-world</id><content type="html" xml:base="https://tian-nu.github.io/posts/hello-world/"><![CDATA[<h2 id="欢迎来到我的博客">欢迎来到我的博客</h2>

<p>这是我的第一篇博客文章，很高兴能在这里与你相遇！</p>

<h3 id="关于这个博客">关于这个博客</h3>

<p>这个博客使用 <strong>Jekyll</strong> 和 <strong>GitHub Pages</strong> 搭建，是一个静态博客网站。我会在这里分享：</p>

<ul>
  <li>技术学习笔记</li>
  <li>项目开发经验</li>
  <li>生活感悟</li>
  <li>读书笔记</li>
</ul>

<h3 id="代码示例">代码示例</h3>

<div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">def</span> <span class="nf">hello_world</span><span class="p">():</span>
    <span class="k">print</span><span class="p">(</span><span class="s">"Hello, World!"</span><span class="p">)</span>
    <span class="k">print</span><span class="p">(</span><span class="s">"欢迎来到我的博客"</span><span class="p">)</span>

<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span>
    <span class="n">hello_world</span><span class="p">()</span>
</code></pre></div></div>

<h3 id="未来计划">未来计划</h3>

<ol>
  <li>持续更新技术文章</li>
  <li>分享更多实用教程</li>
  <li>记录成长历程</li>
</ol>

<p>感谢你的访问，希望你能在这里找到有价值的内容！</p>]]></content><author><name>天努</name><email>your-email@example.com</email></author><category term="随笔" /><category term="开始" /><category term="博客" /><category term="生活" /><summary type="html"><![CDATA[这是我的第一篇博客文章，欢迎来到天努的博客！]]></summary></entry></feed>