Home

博客搭建历程

在github 创建仓库 username.github.io,usernamne 替换成自己的 github 用户名。 在仓库中创建一个 index.md,然后随意写一些内容。比如:

# Hello World

然后访问网址 username.github.io。

创建 _config.yml 文件,写入

heme: minima
title: kinthero
description: 纸上得来终觉浅,绝知此事要躬行。

这里用了一个最简单的主题,防止干扰写作。 但是会发现会多一个 index.md 的渲染页面,解决方法是给它添加一些元数据。可以改成

---
layout: home
title: Home
permalink: /
---

但是底部占用的空间还是偏大,创建 _includes/footer.html 文件,写入

<footer class="site-footer">
  <div class="wrapper">
    <p>© yourname</p>
  </div>
</footer>