mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
3
lib/blank_template/_config.yml
Normal file
3
lib/blank_template/_config.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
||||
baseurl: "" # the subpath of your site, e.g. /blog
|
||||
title: "" # the name of your site, e.g. ACME Corp.
|
||||
12
lib/blank_template/_layouts/default.html
Normal file
12
lib/blank_template/_layouts/default.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ site.lang | default: "en-US" }}">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="utf-8">
|
||||
<title>{{ page.title }} - {{ site.title }}</title>
|
||||
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
|
||||
</head>
|
||||
<body>
|
||||
{{ content}}
|
||||
</body>
|
||||
</html>
|
||||
9
lib/blank_template/_sass/main.scss
Normal file
9
lib/blank_template/_sass/main.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
$backgroundColor: #ffffff;
|
||||
$bodyColor: #000000;
|
||||
$bodyFont: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
|
||||
|
||||
body {
|
||||
background: $backgroundColor;
|
||||
color: $bodyColor;
|
||||
font-family: $bodyFont;
|
||||
}
|
||||
4
lib/blank_template/assets/css/main.scss
Normal file
4
lib/blank_template/assets/css/main.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
---
|
||||
|
||||
@import "main";
|
||||
8
lib/blank_template/index.md
Normal file
8
lib/blank_template/index.md
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
layout: default
|
||||
title: "Happy Jekyllin'!"
|
||||
---
|
||||
|
||||
## You're ready to go!
|
||||
|
||||
Start developping your Jekyll website.
|
||||
@@ -41,10 +41,16 @@ module Jekyll
|
||||
after_install(new_blog_path, options)
|
||||
end
|
||||
|
||||
def blank_template
|
||||
File.expand_path("../../blank_template", __dir__)
|
||||
end
|
||||
|
||||
def create_blank_site(path)
|
||||
FileUtils.cp_r blank_template + "/.", path
|
||||
FileUtils.chmod_R "u+w", path
|
||||
|
||||
Dir.chdir(path) do
|
||||
FileUtils.mkdir(%w(_layouts _posts _drafts))
|
||||
FileUtils.touch("index.html")
|
||||
FileUtils.mkdir(%w(_data _drafts _includes _posts))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user