如何创建带有主题的 GitHub 页面?

How to create a GitHub page with a theme?

我正在尝试创建一个简单的 GitHub 页面,在 official instructions page. I set up the theme in the Settings of my repository which added a _config.yml file. However, my page 之后仍然看起来像一个普通的 HTML:

我尝试了几种不同的方法,但 none 似乎有效。

这里的 links 对我也不起作用,所以它可能会导致问题,但是,我不知道我还能从哪里获得主题,以防我需要将它们下载到本地存储。

这是我 GitHub repo 的 link。

关于如何解决这个问题有什么想法吗?提前致谢!

Nick Cannariato 帮助我让它发挥作用。 The problem was 在我的 index.html 文件中。

而不是这个:

 -<!DOCTYPE html>
 -<html>
 -    <head>
 -        <meta charset="UTF-8">
 -        <title>Рейтинг книг fantasy-worlds.org</title>
 -    </head>
 -    <body>
 -        <div class="container"></div>
 -    </body>
 -</html>

我需要这个:

 +---
 +layout: default
 +title: Рейтинг книг fantasy-worlds.org
 +---
 +
 +<body>
 +    <div class="container"></div>
 +</body>