Skip to content

Commit

Permalink
add default settings in _config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkzwwg committed Dec 8, 2020
1 parent d69d6ed commit d2f8b7f
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 53 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ bundle exec jekyll serve
You can add many front matter to customize a page. For more information, visit official document: [https://jekyllrb.com/] (https://jekyllrb.com/docs/front-matter/)

```yaml
# page layout, must be one of layouts under src/_layouts
title: # string
author: # string
post_list: # whether to show post list under collections/_post, one of false, "cate", "date"
collection_list: # true or false
layout: post # page layout, must be one of layouts under src/_layouts
title: "Sample" # string
author: "your_name" # string
post_list: "cate" # whether to show post list under collections/_post, one of false, "cate", "date"
collection_list: true # true or false
toc: true # table of content, true or false
show_date: true # whether to show date, true or false
home_btn: true # whether to show home button, true or false
Expand All @@ -191,7 +191,8 @@ maximize: true # whether to show maximize button, true or false
encrypted_text: true # whether to enable encrypted text, true or false
publish: true # if you wish keep this page invisible, put false here
toc_level: 4 # the depth of toc, one of 1, 2, 3, 4, 5, 6
category: # string
comment: ture # whether to show comment area
category: "sample" # string
date: 2019-5-25 # YYYY-MM-DD
excerpt: "This is excerpt." # string
abstract: "This is abstract. Abstract is blank by default." # string
Expand Down
85 changes: 45 additions & 40 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
# Site Settings
# 1. Site Settings
title : pRoJEct-VeXEd
owner : "DeerRIDER"
## url : "https://akiritsu.github.io"
## baseurl : "/pRoJEct-VeXEd"
permalink : /:title/
description : "A hacker-style note-keeping website template."
markdown : kramdown
statement : "Designed by DeerRIDER, All Rights Reserved"
bgtext : "ABCFGHKLMNPQRSVWXYZabcdefghijklmnopqrstuvwxyz@#$%&*+-;/[]<>~" # texts randomly displayed in background

# Where things are
source : .
destination : ./_site
collections_dir : collections
plugins_dir : src/_plugins # takes an array of strings and loads plugins in that order
layouts_dir : src/_layouts
data_dir : src/_data
includes_dir : src/_includes
sass:
sass_dir : src/_sass

# Collections
# 2. Your Collections
# You can specify the order shown in Archive window.
# Keep it null if you want to show items in alphabetic order.
collection_order :
Expand Down Expand Up @@ -66,8 +57,33 @@ collections:
alias : "My Notes"
posts:
output : true

# Social Media Accounts

# 3. Comment settings(disqus.com)
disqus_username : akiritsu

# 4. Default page settings (WILL BE overwriten by front-matters of a page)
defaults:
-
scope:
path : "" # an empty string here means all files in the project
values:
layout : "post" # which layout to use by default
publish : true # whether to show by default
btn_text : true # whether show button text by default
collection_list : true # whether show archive button by default
home_btn : true # whether show home by default
maximize : true # whether show maximize button by default
encrypted_text : false # whether use encrytion function by default
toc : true # whether show table of content by default
toc_level : 3 # the toc depth by default
author : "DeerRIDER" # author name by default
show_date : true # whether show date message by default
category : # category by default
post_list : false # whether show list of post by default
comment : true
footer : true # whether show footer by default

# 5. Social Media Accounts
email : "just-test"
linkedin :
github : "just-test"
Expand All @@ -78,37 +94,26 @@ facebook : "just-test"
instagram :
youtube : "just-test"
steam : "just-test"
weibo : "just-test"

# Global Variables
statement : "Designed by DeerRIDER, All Rights Reserved"
toc_level : 3
bgtext : "ABCFGHKLMNPQRSVWXYZabcdefghijklmnopqrstuvwxyz@#$%&*+-;/[]<>~" # texts randomly displayed in background
# Disqus settings(disqus.com)
disqus_username : akiritsu

# Default page configuration
defaults:
-
scope:
path: "_posts" # an empty string here means all files in the project
values:
layout: "post"
-
scope:
path: ""
type: notes # file under notes
values:
layout: "post"
tags: n0t3s
author: aaa
weibo :

# 6. Where things are
source : .
destination : ./_site
collections_dir : collections
plugins_dir : src/_plugins # takes an array of strings and loads plugins in that order
layouts_dir : src/_layouts
data_dir : src/_data
includes_dir : src/_includes
sass:
sass_dir : src/_sass

# Plugins
# 7. Plugins
plugins:
- jekyll-feed
- jekyll-sitemap
- jekyll-seo-tag

# 8. Others
# Cross-Origin Resource Sharing header
webrick:
headers:
Expand Down
1 change: 0 additions & 1 deletion collections/_album/earth.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

title: Our Great Planet!
---

Expand Down
1 change: 0 additions & 1 deletion collections/_posts/2009-2-7-code-sample.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

title: Sample Code - Quick Sort
category: Sample
date: 2019-2-4
Expand Down
1 change: 0 additions & 1 deletion collections/_posts/2014-1-1-sample2.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

title: Test Toc Level - TOC_LEVEL = 6
toc_level: 6
category: Dummy
Expand Down
1 change: 0 additions & 1 deletion collections/_posts/2016-1-1-sjcl.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

title: An Encrypt and Dectrypt tool with sjcl.js
author: DeerRIDER
category: Sample
Expand Down
1 change: 0 additions & 1 deletion collections/_posts/2017-1-1-markdown-style-reference.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

title: Text Styles and Markdown Quick Reference
author: DeerRIDER
post_list: "date"
Expand Down
4 changes: 3 additions & 1 deletion collections/_posts/2019-7-16-readme-zhcn.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---

title: pRoJEct-NeGYa 中文使用说明
author: DeerRIDER
category: Sample
date: 2019-7-16
comment: ture
---

{{page.comment}}

# PRoJEct-VeXEd

黑客帝国掉字母儿风格的个人主页模板。
Expand Down
1 change: 0 additions & 1 deletion pages/repl.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

title: Online Read-eval-print-loop with repl.it
permalink: /repl
---
Expand Down

0 comments on commit d2f8b7f

Please sign in to comment.