Skip to content

Commit 2ed2e1b

Browse files
committed
blog is changed to notes
1 parent 020efc9 commit 2ed2e1b

14 files changed

+141
-52
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
_site/
1+
_site
2+
.sass-cache
3+
.jekyll-metadata

404.html

Lines changed: 24 additions & 0 deletions
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>

_config.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,43 @@
1-
name: Chunyang Wang
2-
permalink: /blog/:year/:month/:day/:title
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: Your awesome title
17+
18+
description: >- # this means to ignore newlines until "baseurl:"
19+
Write an awesome description for your new site here. You can edit this
20+
line in _config.yml. It will appear in your document head meta (for
21+
Google search results) and in your feed.xml site description.
22+
baseurl: "" # the subpath of your site, e.g. /blog
23+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
24+
twitter_username: jekyllrb
25+
github_username: jekyll
26+
27+
# Build settings
28+
markdown: kramdown
29+
theme: minima
30+
plugins:
31+
- jekyll-feed
32+
33+
# Exclude from processing.
34+
# The following items will not be processed, by default. Create a custom list
35+
# to override the default setting.
36+
# exclude:
37+
# - Gemfile
38+
# - Gemfile.lock
39+
# - node_modules
40+
# - vendor/bundle/
41+
# - vendor/cache/
42+
# - vendor/gems/
43+
# - vendor/ruby/

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<ul>
2525
<li><a href="mailto:[email protected]">Email</a></li>
2626
<li><a href="https://github.com/wangchunyang">GitHub</a></li>
27-
<li><a href="https://wangchunyang.github.io/notes/atom.xml">RSS</a></li>
27+
<li><a href="/feed.xml">RSS</a></li>
2828
</ul>
2929
</footer>
3030
</body>

_layouts/note_template.html

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

_layouts/post.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: default
3+
---
4+
<h2 class="page-title">{{ page.title }}</h2>
5+
<div class="page-meta">
6+
<span>By Chunyang Wang on {{ page.date | date_to_string }}</span> | <a href="{{page.url}}">Permalink</a>
7+
| <a href="{{page.comments}}">Comments(8)</a>
8+
</div>
9+
<div class="post">
10+
{{ content }}
11+
</div>

about.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: page
3+
title: About
4+
permalink: /about/
5+
---
6+
7+
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](https://jekyllrb.com/)
8+
9+
You can find the source code for Minima at GitHub:
10+
[jekyll][jekyll-organization] /
11+
[minima](https://github.com/jekyll/minima)
12+
13+
You can find the source code for Jekyll at GitHub:
14+
[jekyll][jekyll-organization] /
15+
[jekyll](https://github.com/jekyll/jekyll)
16+
17+
18+
[jekyll-organization]: https://github.com/jekyll

css/main.css

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
body {
2-
margin: 60px auto;
3-
width: 70%;
2+
margin: 20px auto;
3+
width: 75%;
4+
font-family:'Georgia', 'Arial', 'Sans-Serif';
45
}
56
nav ul, footer ul {
6-
font-family:'Helvetica', 'Arial', 'Sans-Serif';
77
padding: 0px;
88
list-style: none;
99
font-weight: bold;
@@ -20,11 +20,9 @@ a:hover {
2020
text-decoration: underline;
2121
}
2222
h1 {
23-
font-size: 3em;
24-
font-family:'Helvetica', 'Arial', 'Sans-Serif';
23+
font-size: 2em;
2524
}
2625
p {
27-
font-size: 1.5em;
2826
line-height: 1.4em;
2927
color: #333;
3028
}
@@ -33,11 +31,21 @@ footer {
3331
font-size: .8em;
3432
}
3533

36-
ul.notes {
34+
ul.posts {
3735
margin: 20px auto 40px;
38-
font-size: 1.5em;
36+
font-size: 1.1em;
3937
}
4038

41-
ul.notes li {
39+
ul.posts li {
4240
list-style: none;
41+
}
42+
43+
.page-meta {
44+
font-size: .8em;
45+
}
46+
.page-title {
47+
margin-bottom: 0px;
48+
}
49+
.post {
50+
font-size: 1em;
4351
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
layout: default
33
title: Notes
4+
permalink: /notes
45
---
56
<h1>{{ page.title }}</h1>
67
<ul class="posts">
78

8-
{% for post in site.posts %}
9+
{% for post in site.categories.notes %}
910
<li><span>{{post.date|date_to_string}}</span> » <a href="{{post.url}}" title="{{post.title}}">{{post.title}}</a></li>
1011
{% endfor %}
1112
</ul>

notes/_posts/2018-12-01-df.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: post
3+
title: "df"
4+
permalink: /notes/df
5+
---
6+
7+
"Heapsort was invented by J. W. J. Williams in 1964. This was also the birth of the heap, presented already by Williams as a useful data structure in its own right. In the same year, R. W. Floyd published an improved version that could sort an array in-place, continuing his earlier research into the treesort algorithm."

0 commit comments

Comments
 (0)