Skip to content

Commit 438ddc7

Browse files
author
David Ngai
committed
fixed config
1 parent 7264a14 commit 438ddc7

12 files changed

Lines changed: 116 additions & 22 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ _site/
66
.sass-cache
77
.jekyll-metadata
88
Gemfile.lock
9+
.rake_tasks~
910

1011
# npm
1112
node_modules/

404.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

404.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: default
3+
title: 404
4+
---
5+
6+
Error 404: This page does not exist.<br>
7+
[Go back]({{ "/" | prepend: site.baseurl | replace: '//', '/' }}).

Rakefile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,25 @@ task :page do
9696
end
9797
end # task :page
9898

99-
desc "Launch preview environment"
100-
task :preview do
101-
system "jekyll serve -w"
102-
end # task :preview
99+
desc "Reset bundle install"
100+
task :reset do
101+
system 'sudo bundle clean --force'
102+
system 'sudo bundle install'
103+
end
104+
105+
desc "Outputs any deprecation or configuration issues"
106+
task :reset do
107+
system 'jekyll doctor'
108+
end
103109

104110
desc "Test the webpage in local"
105111
task :test do
106112
sh 'bundle exec jekyll build'
107113
HTMLProofer.check_directory('./_site/', check_html: true).run
108114
end
115+
116+
desc "Launch preview environment"
117+
task :preview do
118+
system "jekyll serve -w"
119+
end
120+

_config.default.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Where things are
2+
source : .
3+
destination : ./_site
4+
collections_dir : .
5+
plugins_dir : _plugins
6+
layouts_dir : _layouts
7+
data_dir : _data
8+
includes_dir : _includes
9+
sass:
10+
sass_dir: _sass
11+
collections:
12+
posts:
13+
output : true
14+
15+
# Handling Reading
16+
safe : false
17+
include : [".htaccess"]
18+
exclude : ["Gemfile", "Gemfile.lock", "node_modules", "vendor/bundle/", "vendor/cache/", "vendor/gems/", "vendor/ruby/"]
19+
keep_files : [".git", ".svn"]
20+
encoding : "utf-8"
21+
markdown_ext : "markdown,mkdown,mkdn,mkd,md"
22+
strict_front_matter : false
23+
24+
# Filtering Content
25+
show_drafts : null
26+
limit_posts : 0
27+
future : false
28+
unpublished : false
29+
30+
# Plugins
31+
whitelist : []
32+
plugins : []
33+
34+
# Conversion
35+
markdown : kramdown
36+
highlighter : rouge
37+
lsi : false
38+
excerpt_separator : "\n\n"
39+
incremental : false
40+
41+
# Serving
42+
detach : false
43+
port : 4000
44+
host : 127.0.0.1
45+
baseurl : "" # does not include hostname
46+
show_dir_listing : false
47+
48+
# Outputting
49+
permalink : date
50+
paginate_path : /page:num
51+
timezone : null
52+
53+
quiet : false
54+
verbose : false
55+
defaults : []
56+
57+
liquid:
58+
error_mode : warn
59+
strict_filters : false
60+
strict_variables : false
61+
62+
# Markdown Processors
63+
rdiscount:
64+
extensions : []
65+
66+
redcarpet:
67+
extensions : []
68+
69+
kramdown:
70+
auto_ids : true
71+
entity_output : as_char
72+
toc_levels : 1..6
73+
smart_quotes : lsquo,rsquo,ldquo,rdquo
74+
input : GFM
75+
hard_wrap : false
76+
footnote_nr : 1
77+
show_warnings : false

_config.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ github: [metadata]
1313
github_username: "jsdnhk"
1414
repository: "jsdnhk/jsdnhk.github.io"
1515
theme: "jekyll-theme-midnight"
16+
timezone: "Asia/Hong_Kong"
1617
analytics_account: "UA-3769691-28" # for google analytics
1718

1819
# build settings
1920
exclude: ["etc", "scripts", "vendor", "Gemfile", "Gemfile.lock", "Rakefile", "README.md", "package.json", "node_modules"]
20-
markdown: kramdown
21+
profile: true
22+
strict_front_matter: true
2123
plugins:
2224
- jekyll-feed
2325
- jekyll-redirect-from
@@ -26,12 +28,6 @@ plugins:
2628
- jekyll-avatar
2729
- jemoji
2830
- jekyll-mentions
29-
# - jekyll-include-cache
3031

31-
sass:
32-
style: :compressed
33-
# Where you keep your scss files
34-
sass_dir: assets/css/
35-
# Where sass should look for other scss
36-
load_paths:
37-
- node_modules/
32+
# front matter defaults settings
33+
excerpt_separator: "<!--end-->"

_includes/header.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
{% seo %}
88
<title>{%if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
99
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?">
10-
<!--<link rel="stylesheet" type="text/css" href="/assets/css/main.scss">-->
11-
<link rel="stylesheet" type="text/css" href="/assets/css/about.css">
10+
<link rel="stylesheet" type="text/css" href="/assets/css/main.scss">
1211
<link rel="stylesheet" type="text/css" href="https://afeld.github.io/emoji-css/emoji.css">
1312
<link href="/atom.xml" type="application/atom+xml" rel="alternate" title="ATOM Feed" />
1413
</head>
File renamed without changes.

_sass/custom.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

0 commit comments

Comments
 (0)