如何开始构建我自己的 Jekyll 模板?
How to get started on building my own jekyll template?
如何在 jekyll 博客中制作自己的设计?目前我有 jekyll new my-blog
获得的默认 minima
主题,不知道如何开始设计我自己的 posts
、main
等布局。出于某种原因,当我 运行 jekyll new
命令
时,我没有看到典型的 _layouts
和 _includes
文件夹
I don't see the typical _layouts
and _includes
folders when I ran the Jekyll new command
然后开始创建它们。它们只是文件夹。您可以在文件 _layouts/main.html
:
中使用这种最小结构开始布局
<!DOCTYPE html>
<html>
<head>
</head>
<body>
{{ content }}
</body>
</html>
有了 "hello world" 就像这样:
---
layout: main
---
Hello World
然后根据需要扩展布局,就像普通网页一样:css、页眉、页脚...
如何在 jekyll 博客中制作自己的设计?目前我有 jekyll new my-blog
获得的默认 minima
主题,不知道如何开始设计我自己的 posts
、main
等布局。出于某种原因,当我 运行 jekyll new
命令
_layouts
和 _includes
文件夹
I don't see the typical
_layouts
and_includes
folders when I ran the Jekyll new command
然后开始创建它们。它们只是文件夹。您可以在文件 _layouts/main.html
:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
{{ content }}
</body>
</html>
有了 "hello world" 就像这样:
---
layout: main
---
Hello World
然后根据需要扩展布局,就像普通网页一样:css、页眉、页脚...