Skip to content

Commit

Permalink
feat: update configs comment and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Jun 29, 2018
1 parent 4e87359 commit dad73fd
Show file tree
Hide file tree
Showing 31 changed files with 806 additions and 270 deletions.
59 changes: 31 additions & 28 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
## => Site Settings
##############################
text_color_theme: default # "default" (default), "dark", "forest", "ocean", "chocolate", "orange"
url: # the base hostname & protocol for your site e.g. https://www.someone.com
baseurl: # does not include hostname
title: Someone's blog
url : # the base hostname & protocol for your site e.g. https://www.someone.com
baseurl : # does not include hostname
title : Someone's blog
description: > # this means to ignore newlines until "Language & timezone"
Someone's Blog
Expand All @@ -33,30 +33,33 @@ timezone: # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for
## => Author and Social
##############################
author:
type: # "person" (default), "organization"
name: Someone # your name
avatar: # your Photo or Logo
bio: # your biographical work
email: # your Email address e.g. neo@site.com
facebook: # your Facebook username
twitter: # your Twitter username
github: # your GitHub username
linkedin: # your Linkedin username
googleplus: # your Google+ username
weibo: # your Weibo username
douban: # your Douban username
type : # "person" (default), "organization"
name : Your Name
url :
avatar : # path or url of avatar image
bio : I am an amazing person.
email :
facebook : # "user_name" the last part of your profile url, e.g. https://www.facebook.com/user_name
twitter : # "user_name" the last part of your profile url, e.g. https://twitter.com/user_name
github : # "user_name" the last part of your profile url, e.g. https://github.com/user_name
linkedin : # "user_name" the last part of your profile url, e.g. https://www.linkedin.com/in/user_name/
googleplus: # "user_id" the last part of your profile url, e.g. https://plus.google.com/u/0/user_id
weibo : # "user_id" the last part of your profile url, e.g. https://www.weibo.com/user_id/profile?...
douban : # "user_name" the last part of your profile url, e.g. https://www.douban.com/people/user_name/


## => GitHub Repository (if the site is hosted by GitHub)
##############################
repository: someone/someone.github.io
repository: user_name/repo_name
repository_tree: master


## => Paths
##############################
paths:
base: /
base : # "/"" (default)
archive : # "/archive.html" (default)
rss : # "/feed.xml" (default)


## => Post
Expand All @@ -66,7 +69,7 @@ excerpt_separator: <!--more-->
excerpt_type: html # text (default), html

## license
license: CC-BY-4.0 # "CC-BY-4.0", "CC-BY-SA-4.0", "CC-BY-NC-4.0", "CC-BY-ND-4.0"
license: CC-BY-NC-4.0 # "CC-BY-4.0", "CC-BY-SA-4.0", "CC-BY-NC-4.0", "CC-BY-ND-4.0"

## TOC
toc:
Expand Down Expand Up @@ -108,10 +111,10 @@ comments:
## Gitalk
# please refer to https://github.com/gitalk/gitalk for more info.
gitalk:
clientID: # GitHub Application Client ID
clientID : # GitHub Application Client ID
clientSecret: # GitHub Application Client Secret
repository: # GitHub repo
owner: # GitHub repo owner
repository : # GitHub repo
owner : # GitHub repo owner
admin: # GitHub repo owner and collaborators, only these guys can initialize GitHub issues, IT IS A LIST.
# - your GitHub Id

Expand All @@ -123,9 +126,9 @@ pageview:

## Leancloud
leancloud:
app_id: # LeanCloud App id
app_key: # LeanCloud App key
app_class: # LeanCloud App class
app_id : # LeanCloud App id
app_key : # LeanCloud App key
app_class : # LeanCloud App class


## => Analytics
Expand All @@ -135,15 +138,15 @@ analytics:

## Google Analytics
google:
tracking_id: # Google Analytics id for the site
tracking_id : # Google Analytics id for the site
anonymize_ip: false # Anonymize IP tracking for Analytics


## => Build
##############################
markdown: kramdown
highlighter: rouge
permalink: date
markdown : kramdown
highlighter : rouge
permalink : date

exclude:
- CHANGELOG.md
Expand Down
3 changes: 1 addition & 2 deletions _data/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ default:
lang: en
paths:
base: /
home: /
all: /archive.html
archive: /archive.html
rss: /feed.xml
mathjax: false
mathjax_autoNumber: false
Expand Down
8 changes: 4 additions & 4 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
layout: page
titles:
en: Blog
zh: 博客
zh-Hans: 博客
zh-Hant: 博客
en: Home
zh: 主页
zh-Hans: 主頁
zh-Hant: 主頁
show_title: false
---
<div class="layout--home">
Expand Down
48 changes: 24 additions & 24 deletions _layouts/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,45 +21,45 @@ <h2>{{ page.data.sub_title }}</h2>
<ul class="menu menu--center">
{%- for action in page.data.actions -%}
{%- assign _type = action.type | default: 'info' -%}
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ action.href }}">{{ action.text }}</a></li>
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ action.url }}">{{ action.text }}</a></li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
</section>

{%- for feature in page.data.features -%}
{%- if feature.theme == 'light' -%}
{%- for section in page.data.sections -%}
{%- if section.theme == 'light' -%}
<section class="section section--light feature">
{%- elsif feature.theme == 'dark' -%}
{%- elsif section.theme == 'dark' -%}
<section class="section section--dark feature">
{%- else -%}
<section class="section feature">
{%- endif -%}
<div class="section__content">
<div class="content__row">

<h3>{{ feature.title }}</h3>
{%- if feature.description-%}
<p>{{ feature.description }}</p>
<h3>{{ section.title }}</h3>
{%- if section.description-%}
<p>{{ section.description }}</p>
{%- endif -%}

{%- if feature.actions -%}
{%- if section.actions -%}
<ul class="menu menu--center">
{%- for action in feature.actions -%}
{%- for action in section.actions -%}
{%- assign _type = action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ action.href }}">{{ action.text }}</a></li>
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ action.url }}">{{ action.text }}</a></li>
{%- endfor -%}
</ul>
{%- endif -%}

</div>

{%- if feature.children -%}
{%- assign _size = feature.children | size -%}
{%- if section.children -%}
{%- assign _size = section.children | size -%}
<div class="grid">
<div class="row">
{%- for item in feature.children -%}
{%- for item in section.children -%}
<div class="content__col col-{{ 12 | divided_by: _size }} col-sm-12">

<div class="content__row">
Expand All @@ -73,7 +73,7 @@ <h4>{{ item.title }}</h4>
<ul class="menu menu--center">
{%- for action in item.actions -%}
{%- assign _type = action.type | default: 'outline-info' -%}
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ action.href }}">{{ action.text }}</a></li>
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ action.url }}">{{ action.text }}</a></li>
{%- endfor -%}
</ul>
{%- endif -%}
Expand All @@ -83,11 +83,11 @@ <h4>{{ item.title }}</h4>
{%- if item.image.is_row -%}
<div class="content__row">
{%- endif -%}
{%- if item.image.href -%}
<a href="{{ item.image.href }}">
{%- if item.image.url -%}
<a href="{{ item.image.url }}">
{%- endif -%}
<img class="content__cover" src="{{ item.image.src }}" style="{{ item.image.style }}"></img>
{%- if item.image.href -%}
{%- if item.image.url -%}
</a>
{%- endif -%}
{%- if item.image.is_row -%}
Expand All @@ -102,18 +102,18 @@ <h4>{{ item.title }}</h4>
</div>
{%- endif -%}

{%- if feature.image -%}
{%- if feature.image.is_row -%}
{%- if section.image -%}
{%- if section.image.is_row -%}
<div class="content__row">
{%- endif -%}
{%- if item.image.href -%}
<a href="{{ item.image.href }}">
{%- if item.image.url -%}
<a href="{{ item.image.url }}">
{%- endif -%}
<img class="content__cover" src="{{ feature.image.src }}" style="{{ feature.image.style }}"></img>
{%- if item.image.href -%}
<img class="content__cover" src="{{ section.image.src }}" style="{{ section.image.style }}"></img>
{%- if item.image.url -%}
</a>
{%- endif -%}
{%- if feature.image.is_row -%}
{%- if section.image.is_row -%}
</div>
{%- endif -%}
{%- endif -%}
Expand Down
2 changes: 1 addition & 1 deletion _sass/colors/_chocolate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $main-color-3: #7f5543;
$text-color-3: #fff;

// background colors
$background-color: #fff;
$background-color: #efefef;
// text colors
$text-color-theme-light-d: rgba(#000, .95);
$text-color-theme-light: rgba(#000, .85);
Expand Down
8 changes: 4 additions & 4 deletions _sass/colors/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ $mask-color: rgba(#fff, .8);
$select-color: rgba($main-color-1, .5);

// function colors
$green: #57c22d;
$blue: #2593fc;
$yellow: #f8ac30;
$red: #f22635;
$green: #98c379;
$blue: #56b6c2;
$yellow: #e5c07b;
$red: #e06c75;
$text-color-function: rgba(#fff, .9);

// logo colors
Expand Down
1 change: 0 additions & 1 deletion _sass/common/_classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"common/classes/media",
"common/classes/overflow",
"common/classes/shadow",
"common/classes/shape",
"common/classes/spacing",
"common/classes/split-line",
"common/classes/transform",
Expand Down
13 changes: 0 additions & 13 deletions _sass/common/classes/_shape.scss

This file was deleted.

4 changes: 2 additions & 2 deletions _sass/layout/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
& > a {
font-size: map-get($base, font-size-sm);
}
padding-bottom: 1.3rem;
margin: 2.6rem 0 1rem 0;
padding-bottom: map-get($spacers, 4);
margin: map-get($spacers, 4) 0 map-get($spacers, 3) 0;
&:not(:last-child) {
@include split-line(bottom);
}
Expand Down
1 change: 1 addition & 0 deletions about.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ titles:
zh: 关于
zh-Hans: 关于
zh-Hant: 關於
author: Tian Qi
key: page-about
---

Expand Down
Loading

0 comments on commit dad73fd

Please sign in to comment.