Skip to content

Commit 449aeab

Browse files
author
zouyi
committed
test
0 parents  commit 449aeab

File tree

139 files changed

+5563
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+5563
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site
2+
.sass-cache
3+
.jekyll-metadata

404.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: default
3+
---
4+
5+
<style type="text/css" media="screen">
6+
.container {
7+
margin: 10px auto;
8+
max-width: 600px;
9+
text-align: center;
10+
}
11+
h1 {
12+
margin: 30px 0;
13+
font-size: 4em;
14+
line-height: 1;
15+
letter-spacing: -1px;
16+
}
17+
</style>
18+
19+
<div class="container">
20+
<h1>404</h1>
21+
22+
<p><strong>页面未找到 Page not found :(</strong></p>
23+
<p>这位看官,您想看的页面我这没有,您上别的地儿再找找 The requested page could not be found.</p>
24+
</div>

Gemfile

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
source "https://rubygems.org"
2+
3+
# Hello! This is where you manage which Jekyll version is used to run.
4+
# When you want to use a different version, change it below, save the
5+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
6+
#
7+
# bundle exec jekyll serve
8+
#
9+
# This will help ensure the proper Jekyll version is running.
10+
# Happy Jekylling!
11+
gem "jekyll", "~> 3.8.2"
12+
13+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
14+
gem "minima", "~> 2.0"
15+
16+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
17+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
18+
# gem "github-pages", group: :jekyll_plugins
19+
20+
# If you have any plugins, put them here!
21+
group :jekyll_plugins do
22+
gem "jekyll-feed", "~> 0.6"
23+
end
24+
25+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
26+
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
27+
28+
# Performance-booster for watching directories on Windows
29+
gem "wdm", "~> 0.1.0" if Gem.win_platform?
30+
31+
gem 'jekyll-tagging'

Gemfile.lock

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.5.2)
5+
public_suffix (>= 2.0.2, < 4.0)
6+
colorator (1.1.0)
7+
concurrent-ruby (1.0.5)
8+
em-websocket (0.5.1)
9+
eventmachine (>= 0.12.9)
10+
http_parser.rb (~> 0.6.0)
11+
eventmachine (1.2.7)
12+
ffi (1.9.25)
13+
forwardable-extended (2.6.0)
14+
http_parser.rb (0.6.0)
15+
i18n (0.9.5)
16+
concurrent-ruby (~> 1.0)
17+
jekyll (3.8.2)
18+
addressable (~> 2.4)
19+
colorator (~> 1.0)
20+
em-websocket (~> 0.5)
21+
i18n (~> 0.7)
22+
jekyll-sass-converter (~> 1.0)
23+
jekyll-watch (~> 2.0)
24+
kramdown (~> 1.14)
25+
liquid (~> 4.0)
26+
mercenary (~> 0.3.3)
27+
pathutil (~> 0.9)
28+
rouge (>= 1.7, < 4)
29+
safe_yaml (~> 1.0)
30+
jekyll-feed (0.9.3)
31+
jekyll (~> 3.3)
32+
jekyll-sass-converter (1.5.2)
33+
sass (~> 3.4)
34+
jekyll-seo-tag (2.5.0)
35+
jekyll (~> 3.3)
36+
jekyll-tagging (1.1.0)
37+
nuggets
38+
jekyll-watch (2.0.0)
39+
listen (~> 3.0)
40+
kramdown (1.17.0)
41+
liquid (4.0.0)
42+
listen (3.1.5)
43+
rb-fsevent (~> 0.9, >= 0.9.4)
44+
rb-inotify (~> 0.9, >= 0.9.7)
45+
ruby_dep (~> 1.2)
46+
mercenary (0.3.6)
47+
minima (2.5.0)
48+
jekyll (~> 3.5)
49+
jekyll-feed (~> 0.9)
50+
jekyll-seo-tag (~> 2.1)
51+
nuggets (1.5.0)
52+
pathutil (0.16.1)
53+
forwardable-extended (~> 2.6)
54+
public_suffix (3.0.2)
55+
rb-fsevent (0.10.3)
56+
rb-inotify (0.9.10)
57+
ffi (>= 0.5.0, < 2)
58+
rouge (3.1.1)
59+
ruby_dep (1.5.0)
60+
safe_yaml (1.0.4)
61+
sass (3.5.6)
62+
sass-listen (~> 4.0.0)
63+
sass-listen (4.0.0)
64+
rb-fsevent (~> 0.9, >= 0.9.4)
65+
rb-inotify (~> 0.9, >= 0.9.7)
66+
67+
PLATFORMS
68+
ruby
69+
70+
DEPENDENCIES
71+
jekyll (~> 3.8.2)
72+
jekyll-feed (~> 0.6)
73+
jekyll-tagging
74+
minima (~> 2.0)
75+
tzinfo-data
76+
77+
BUNDLED WITH
78+
1.16.2

_config.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10+
11+
# Site settings
12+
# These are used to personalize your new site. If you look in the HTML files,
13+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
14+
# You can create any custom variable you would like, and they will be accessible
15+
# in the templates via {{ site.myvariable }}.
16+
title: 夜行者之路
17+
18+
description: >- # this means to ignore newlines until "baseurl:"
19+
曾经梦想仗剑走天涯,后来因为加班太多放弃
20+
baseurl: "" # the subpath of your site, e.g. /blog
21+
url: "http://me.oadoc360.com" # the base hostname & protocol for your site, e.g. http://example.com
22+
twitter_username:
23+
github_username: php-cpm
24+
permalink: date
25+
26+
# Build settings
27+
markdown: kramdown
28+
theme: minima
29+
plugins:
30+
- jekyll-feed
31+
32+
# Exclude from processing.
33+
# The following items will not be processed, by default. Create a custom list
34+
# to override the default setting.
35+
# exclude:
36+
# - Gemfile
37+
# - Gemfile.lock
38+
# - node_modules
39+
# - vendor/bundle/
40+
# - vendor/cache/
41+
# - vendor/gems/
42+
# - vendor/ruby/
43+
44+
tag_page_layout: tag_page
45+
tag_page_dir: tag
46+
tag_permalink_style: pretty
47+
tag_page_data:
48+
sitemap: false
49+
ignored_tags: [tags,to,ignore]
50+
51+
paginate: 30
52+
paginate_path: "blog/:num"

_includes/disqus_comments.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{%- if page.comments != false and jekyll.environment == "production" -%}
2+
3+
<div id="disqus_thread"></div>
4+
<script>
5+
var disqus_config = function () {
6+
this.page.url = '{{ page.url | absolute_url }}';
7+
this.page.identifier = '{{ page.url | absolute_url }}';
8+
};
9+
10+
(function() {
11+
var d = document, s = d.createElement('script');
12+
13+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14+
15+
s.setAttribute('data-timestamp', +new Date());
16+
(d.head || d.body).appendChild(s);
17+
})();
18+
</script>
19+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20+
{%- endif -%}

_includes/footer.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<footer class="site-footer h-card">
2+
<data class="u-url" href="{{ "/" | relative_url }}"></data>
3+
4+
<div class="wrapper">
5+
6+
<h2 class="footer-heading">{{ site.title | escape }}</h2>
7+
8+
<div class="footer-col-wrapper">
9+
<div class="footer-col footer-col-1">
10+
<ul class="contact-list">
11+
<li class="p-name">
12+
{%- if site.author -%}
13+
{{ site.author | escape }}
14+
{%- else -%}
15+
{{ site.title | escape }}
16+
{%- endif -%}
17+
</li>
18+
{%- if site.email -%}
19+
<li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
20+
{%- endif -%}
21+
</ul>
22+
</div>
23+
24+
<div class="footer-col footer-col-2">
25+
{%- include social.html -%}
26+
</div>
27+
28+
<div class="footer-col footer-col-3">
29+
<p>{{- site.description | escape -}}</p>
30+
</div>
31+
</div>
32+
33+
</div>
34+
35+
</footer>

_includes/google-analytics.html

+13
Large diffs are not rendered by default.

_includes/head.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
{%- seo -%}
6+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
7+
{%- feed_meta -%}
8+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
9+
{%- include google-analytics.html -%}
10+
{%- endif -%}
11+
</head>

_includes/header.html

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<header class="site-header" role="banner">
2+
3+
<div class="wrapper">
4+
{%- assign default_paths = site.pages | map: "path" -%}
5+
{%- assign page_paths = site.header_pages | default: default_paths -%}
6+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
7+
8+
{%- if page_paths -%}
9+
<nav class="site-nav">
10+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
11+
<label for="nav-trigger">
12+
<span class="menu-icon">
13+
<svg viewBox="0 0 18 15" width="18px" height="15px">
14+
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
15+
</svg>
16+
</span>
17+
</label>
18+
19+
<div class="trigger">
20+
{%- for path in page_paths -%}
21+
{%- assign my_page = site.pages | where: "path", path | first -%}
22+
{%- if my_page.title -%}
23+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
24+
{%- endif -%}
25+
{%- endfor -%}
26+
</div>
27+
</nav>
28+
{%- endif -%}
29+
</div>
30+
</header>

_includes/icon-github.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>

_includes/icon-github.svg

+1
Loading

_includes/icon-twitter.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>

_includes/icon-twitter.svg

+1
Loading

_includes/social.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<ul class="social-media-list">
2+
{%- if site.dribbble_username -%}<li><a href="https://dribbble.com/{{ site.dribbble_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg> <span class="username">{{ site.dribbble_username| escape }}</span></a></li>{%- endif -%}
3+
{%- if site.facebook_username -%}<li><a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg> <span class="username">{{ site.facebook_username| escape }}</span></a></li>{%- endif -%}
4+
{%- if site.flickr_username -%}<li><a href="https://www.flickr.com/photos/{{ site.flickr_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg> <span class="username">{{ site.flickr_username| escape }}</span></a></li>{%- endif -%}
5+
{%- if site.github_username -%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">{{ site.github_username| escape }}</span></a></li>{%- endif -%}
6+
{%- if site.instagram_username -%}<li><a href="https://instagram.com/{{ site.instagram_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg> <span class="username">{{ site.instagram_username| escape }}</span></a></li>{%- endif -%}
7+
{%- if site.linkedin_username -%}<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg> <span class="username">{{ site.linkedin_username| escape }}</span></a></li>{%- endif -%}
8+
{%- if site.pinterest_username -%}<li><a href="https://www.pinterest.com/{{ site.pinterest_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg> <span class="username">{{ site.pinterest_username| escape }}</span></a></li>{%- endif -%}
9+
{%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a href="https://{{ mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg> <span class="username">{{ mst.username|escape }}</span></a></li>{%- endif -%}{%- endfor -%}
10+
{%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username">{{ site.twitter_username| escape }}</span></a></li>{%- endif -%}
11+
{%- if site.youtube_username -%}<li><a href="https://youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg> <span class="username">{{ site.youtube_username| escape }}</span></a></li>{%- endif -%}
12+
{%- if site.googleplus_username -%}<li><a href="https://plus.google.com/{{ site.googleplus_username| escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#googleplus' | relative_url }}"></use></svg> <span class="username">{{ site.googleplus_username| escape }}</span></a></li>{%- endif -%}
13+
{%- if site.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{%- endif -%}
14+
</ul>

_layouts/default.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
3+
4+
{%- include head.html -%}
5+
6+
<body>
7+
8+
{%- include header.html -%}
9+
10+
<main class="page-content" aria-label="Content">
11+
<div class="wrapper">
12+
{{ content }}
13+
</div>
14+
</main>
15+
16+
{%- include footer.html -%}
17+
18+
</body>
19+
20+
</html>

_layouts/home.html

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="home">
6+
{%- if page.title -%}
7+
<h1 class="page-heading">{{ page.title }}</h1>
8+
{%- endif -%}
9+
10+
{{ content }}
11+
12+
{%- if site.posts.size > 0 -%}
13+
<h2 class="post-list-heading">{{ page.list_title | default: "博文列表" }}</h2>
14+
<ul class="post-list">
15+
{%- for post in site.posts -%}
16+
<li>
17+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
18+
<span class="post-meta">{{ post.date | date: date_format }}</span>
19+
<h3>
20+
<a class="post-link" href="{{ post.url | relative_url }}">
21+
{{ post.title | escape }}
22+
</a>
23+
</h3>
24+
{%- if site.show_excerpts -%}
25+
{{ post.excerpt }}
26+
{%- endif -%}
27+
</li>
28+
{%- endfor -%}
29+
</ul>
30+
31+
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
32+
{%- endif -%}
33+
34+
</div>

_layouts/page.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
---
4+
<article class="post">
5+
6+
<header class="post-header">
7+
<h1 class="post-title">{{ page.title | escape }}</h1>
8+
</header>
9+
10+
<div class="post-content">
11+
{{ content }}
12+
</div>
13+
14+
</article>

0 commit comments

Comments
 (0)