如何使用 GitHub 页面创建不仅仅是一个 hello world?
How do I create more than a hello world with GitHub Pages?
Git Hub Pages 中的说明向我展示了如何创建仅显示 "Hello World"
的 Hello World 网站
说明还说网站可以直接从我的 Git Hub 存储库托管。
我创建了一个 HelloWorld.md 文件
如何让它显示在我的网站上?
我注意到,如果我删除 index.html,那么 GitHub 会根据 readme.md
生成一个页面
默认情况下,会呈现 GitHub 个页面 with Jekyll,因此您需要遵循(以支持降价)
Using Jekyll as a static site generator with GitHub Pages
查看文档和典型 Jekyll repo structure。
I don't plan to install Jekyll locally. I have managed to get index.md showing, but there is no theme, even though _config.yml has one.
在那种情况下,使用另一个堆栈站点生成器来呈现您的 html 页面:
我会推荐 Hugo.
尝试将 YAML front matter 添加到您的 Markdown 文件中。您的 HelloWorld.md
文件应如下所示:
---
layout: default
---
Hello, world!
在此之后,GitHub Pages 应该会为您的 Markdown 文件生成一个页面。
Git Hub Pages 中的说明向我展示了如何创建仅显示 "Hello World"
的 Hello World 网站说明还说网站可以直接从我的 Git Hub 存储库托管。
我创建了一个 HelloWorld.md 文件
如何让它显示在我的网站上?
我注意到,如果我删除 index.html,那么 GitHub 会根据 readme.md
生成一个页面默认情况下,会呈现 GitHub 个页面 with Jekyll,因此您需要遵循(以支持降价)
Using Jekyll as a static site generator with GitHub Pages
查看文档和典型 Jekyll repo structure。
I don't plan to install Jekyll locally. I have managed to get index.md showing, but there is no theme, even though _config.yml has one.
在那种情况下,使用另一个堆栈站点生成器来呈现您的 html 页面:
我会推荐 Hugo.
尝试将 YAML front matter 添加到您的 Markdown 文件中。您的 HelloWorld.md
文件应如下所示:
---
layout: default
---
Hello, world!
在此之后,GitHub Pages 应该会为您的 Markdown 文件生成一个页面。