-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
199 changed files
with
21,448 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
_site | ||
.sass-cache | ||
.jekyll-metadata | ||
build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Basic | ||
title: OneV's Den | ||
subtitle: 上善若水,人淡如菊 | ||
welcome_message: <a href="http://swifter.tips" target="_blank">Swifter.tips - 我维护的 Swift 使用技巧分享网站,每周三更新,欢迎访问</a> | ||
description: 嗨,我是王巍 (@onevcat),一名来自中国的 iOS / Unity 开发者。现居日本,就职于 LINE。正在修行,探求创意之源。 | ||
creator: <a href="http://onev.cat">@onevcat</a> | ||
|
||
url: "http://onevcat.com" | ||
|
||
permalink: /:year/:month/:title/ | ||
|
||
# Format | ||
highlighter: plain | ||
markdown: redcarpet | ||
redcarpet: | ||
extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "strikethrough", "superscript", tables] | ||
|
||
# supported colors: blue, green, purple, red, orange or slate. If you need clear, leave it empty. | ||
cover_color: slate | ||
|
||
blog_button: | ||
title: 博客 | ||
description: 访问博客 | ||
|
||
nav: | ||
- {title: 项目, description: 我的项目, url: 'http://project.onevcat.com'} | ||
- {title: 关于, description: 了解更多关于我, url: 'http://about.onevcat.com/'} | ||
- {title: 订阅, description: 邮件订阅本站, url: '//api.onevcat.com/subscribe'} | ||
|
||
# Pagination | ||
gems: [jekyll-paginate] | ||
paginate: 10 | ||
paginate_path: "page/:num/" | ||
|
||
# Comment | ||
comment: | ||
disqus: onevcat | ||
# duoshuo: | ||
# Social | ||
social: | ||
weibo: onevcat | ||
github: onevcat | ||
twitter: onevcat | ||
gplus: 107108267983477358170 | ||
mail: [email protected] | ||
|
||
# Google Analytics | ||
ga: | ||
id: UA-25719337-1 | ||
host: onevcat.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<section class="post-comments"> | ||
{% if site.comment.disqus %} | ||
<div id="disqus_thread"></div> | ||
<script> | ||
|
||
var disqus_config = function () { | ||
this.page.url = "{{ page.url | prepend: site.baseurl | prepend: site.url }}"; | ||
this.page.identifier = "{{ page.url }}"; | ||
}; | ||
|
||
var disqus_shortname = '{{ site.comment.disqus }}'; | ||
|
||
(function() { // DON'T EDIT BELOW THIS LINE | ||
var d = document, s = d.createElement('script'); | ||
s.src = '//' + disqus_shortname + '.disqus.com/embed.js'; | ||
s.setAttribute('data-timestamp', +new Date()); | ||
(d.head || d.body).appendChild(s); | ||
})(); | ||
</script> | ||
<noscript>要查看<a href="http://disqus.com/?ref_noscript"> Disqus </a>评论,请启用 JavaScript</noscript> | ||
|
||
{% elsif site.comment.duoshuo %} | ||
<div class="ds-thread" data-thread-key="{{ page.url }}" data-title="{{ page.title }}" data-url="{{ page.url | prepend: site.baseurl | prepend: site.url }}"></div> | ||
<script type="text/javascript"> | ||
var duoshuoQuery = {short_name:"{{ site.comment.duoshuo }}"}; | ||
(function() { | ||
var ds = document.createElement('script'); | ||
ds.type = 'text/javascript';ds.async = true; | ||
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js'; | ||
ds.charset = 'UTF-8'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds); | ||
})(); | ||
</script> | ||
{% endif %} | ||
|
||
|
||
|
||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.3.min.js"></script> | ||
|
||
<script type="text/javascript" src="/js/highlight.pack.js"></script> | ||
<script>hljs.initHighlightingOnLoad();</script> | ||
|
||
<script type="text/javascript" src="/js/main.js"></script> | ||
|
||
{% if site.ga.id %} | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
ga('create', '{{site.ga.id}}', '{{site.ga.host}}'); | ||
ga('send', 'pageview'); | ||
</script> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<section class="footer"> | ||
<footer> | ||
<span class="footer__copyright">本站点采用<a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">知识共享 署名-非商业性使用-相同方式共享 4.0 国际 许可协议</a></span> | ||
<span class="footer__copyright">由 <a href="https://jekyllrb.com">Jekyll</a> 于 {{ site.time | date: "%F" }} 生成,感谢 <a href="https://www.digitalocean.com/?refcode=30ed2d146762">Digital Ocean</a> 为本站提供稳定的 VPS 服务</span> | ||
<span class="footer__copyright">本站{% if site.creator %}由 {{site.creator}} 创建,{% endif %}采用 <a href="https://github.com/onevcat/vno-jekyll">Vno - Jekyll</a> 作为主题,您可以在 GitHub 找到<a href="https://github.com/onevcat/OneV-s-Den">本站源码</a> - © {{site.time | date: "%Y"}}</span> | ||
</footer> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
|
||
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title> | ||
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> | ||
<meta name="author" content="Wei Wang"> | ||
|
||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:title" content="{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}"> | ||
<meta name="twitter:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> | ||
|
||
<meta property="og:type" content="article"> | ||
<meta property="og:title" content="{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}"> | ||
<meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> | ||
|
||
<link rel="icon" type="image/png" href="/assets/images/favicon.png" /> | ||
<link href="/assets/images/favicon.png" rel="shortcut icon" type="image/png"> | ||
|
||
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}"> | ||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> | ||
|
||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> | ||
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}"> | ||
|
||
<meta name="google-site-verification" content="1-1ZlHoRvM0T2FqPbW2S-qLgYXN6rsn52kErlMPd_gw" /> | ||
|
||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<hr class="post-list__divider " /> | ||
|
||
<nav class="pagination" role="navigation"> | ||
{% if paginator.previous_page %} | ||
<a class="newer-posts pagination__newer btn btn-small btn-tertiary" href="{{ paginator.previous_page_path }}#blog">← 最近</a> | ||
{% endif %} | ||
<span class="pagination__page-number">{{ paginator.page }} / {{ paginator.total_pages }}</span> | ||
{% if paginator.next_page %} | ||
<a class="older-posts pagination__older btn btn-small btn-tertiary" href="{{ paginator.next_page_path }}#blog">更早 →</a> | ||
{% endif %} | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<section class="read-more"> | ||
{% if page.next %} | ||
{% assign current = page.next %} | ||
<div class="read-more-item"> | ||
<span class="read-more-item-dim">最近的文章</span> | ||
<h2 class="post-list__post-title post-title"><a href="{{ current.url }}" title="link to {{ current.title }}">{{ current.title }}</a></h2> | ||
<p class="excerpt">{{ current.content | markdownify | strip_html | strip_newlines | truncate: 250 }}…</p> | ||
<div class="post-list__meta"><time datetime="{{current.date | date: date_to_xmlschema}}" class="post-list__meta--date date">{{current.date | date: "%F"}}</time> • <span class="post-list__meta--tags tags">{{current.tags}}</span><a class="btn-border-small" href={{current.url}}>继续阅读</a></div> | ||
</div> | ||
{% endif %} | ||
|
||
{% if page.previous %} | ||
{% assign current = page.previous %} | ||
<div class="read-more-item"> | ||
<span class="read-more-item-dim">更早的文章</span> | ||
<h2 class="post-list__post-title post-title"><a href="{{ current.url }}" title="link to {{ current.title }}">{{ current.title }}</a></h2> | ||
<p class="excerpt">{{ current.content | markdownify | strip_html | strip_newlines | truncate: 250 }}…</p> | ||
<div class="post-list__meta"><time datetime="{{current.date | date: date_to_xmlschema}}" class="post-list__meta--date date">{{current.date | date: "%F"}}</time> • <span class="post-list__meta--tags tags">{{current.tags}}</span><a class="btn-border-small" href={{current.url}}>继续阅读</a></div> | ||
</div> | ||
{% endif %} | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<header class="panel-cover {% if page.layout == 'post' or page.layout == 'page' %}panel-cover--collapsed{% endif %}" style="background-image: url('/assets/images/background-cover.jpg')"> | ||
<div class="panel-main"> | ||
|
||
<div class="panel-main__inner panel-inverted"> | ||
<div class="panel-main__content"> | ||
|
||
<a href="/#blog" title="前往 {{ site.title }} 的主页" class="blog-button"><img src="/assets/images/avatar.jpg" width="80" alt="{{ site.title }} logo" class="panel-cover__logo logo" /></a> | ||
<h1 class="panel-cover__title panel-title"><a href="/#blog" title="link to homepage for {{ site.title }}" class="blog-button">{{ site.title }}</a></h1> | ||
|
||
{% if site.subtitle %} | ||
<span class="panel-cover__subtitle panel-subtitle">{{site.subtitle}}</span> | ||
{% endif %} | ||
<hr class="panel-cover__divider" /> | ||
<p class="panel-cover__description">{{ site.description }}</p> | ||
<hr class="panel-cover__divider panel-cover__divider--secondary" /> | ||
|
||
{% if site.welcome_message %} | ||
<p class="panel-cover__description">{{ site.welcome_message }}</p> | ||
{% endif %} | ||
|
||
<div class="navigation-wrapper"> | ||
<div> | ||
<nav class="cover-navigation cover-navigation--primary"> | ||
<ul class="navigation"> | ||
<li class="navigation__item"><a href="/#blog" title="{{site.blog_button.description}}" class="blog-button">{{site.blog_button.title}}</a></li> | ||
{% for item in site.nav %} | ||
<li class="navigation__item"><a href="{{item.url}}" target="_blank" title="{{item.description}}">{{item.title}}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
</div> | ||
|
||
<div>{% include social.html %}</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% if site.cover_color %} | ||
<div class="panel-cover--overlay cover-{{site.cover_color}}"></div> | ||
{% else %} | ||
<div class="panel-cover--overlay cover-disabled"></div> | ||
{% endif %} | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<nav class="cover-navigation navigation--social"> | ||
<ul class="navigation"> | ||
|
||
{% if site.social.weibo %} | ||
<!-- Weibo --> | ||
<li class="navigation__item"> | ||
<a href="http://weibo.com/{{site.social.weibo}}" title="@{{site.social.weibo}} 的微博" target="_blank"> | ||
<i class='social fa fa-weibo'></i> | ||
<span class="label">Weibo</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
{% if site.social.github %} | ||
<!-- Github --> | ||
<li class="navigation__item"> | ||
<a href="https://github.com/{{site.social.github}}" title="@{{site.social.github}} 的 Github" target="_blank"> | ||
<i class='social fa fa-github'></i> | ||
<span class="label">Github</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
{% if site.social.twitter %} | ||
<!-- Twitter --> | ||
<li class="navigation__item"> | ||
<a href="http://twitter.com/{{site.social.twitter}}" title="@{{site.social.twitter}}" target="_blank"> | ||
<i class='social fa fa-twitter'></i> | ||
<span class="label">Twitter</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
{% if site.social.gplus %} | ||
<!-- Google Plus --> | ||
<li class="navigation__item"> | ||
<a href="https://plus.google.com/{{site.social.gplus}}" rel="author" title="Google+" target="_blank"> | ||
<i class='social fa fa-google-plus-square'></i> | ||
<span class="label">Google Plus</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
<!-- RSS --> | ||
<li class="navigation__item"> | ||
<a href="/feed.xml/" rel="author" title="RSS" target="_blank"> | ||
<i class='social fa fa-rss'></i> | ||
<span class="label">RSS</span> | ||
</a> | ||
</li> | ||
|
||
{% if site.social.mail %} | ||
<!-- Email --> | ||
<li class="navigation__item"> | ||
<a href="mailto:{{site.social.mail}}" title="Contact me"> | ||
<i class='social fa fa-envelope'></i> | ||
<span class="label">Email</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
</ul> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
{% include head.html %} | ||
|
||
<body> | ||
|
||
<span class="mobile btn-mobile-menu"> | ||
<i class="fa fa-list btn-mobile-menu__icon"></i> | ||
<i class="fa fa-angle-up btn-mobile-close__icon hidden"></i> | ||
</span> | ||
|
||
{% include side-panel.html %} | ||
|
||
<div class="content-wrapper"> | ||
<div class="content-wrapper__inner"> | ||
{{ content }} | ||
{% include footer.html %} | ||
</div> | ||
</div> | ||
|
||
{% include external.html %} | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<article class="post-container post-container--single" itemscope itemtype="http://schema.org/BlogPosting"> | ||
<header class="post-header"> | ||
<div class="post-meta"> | ||
<time datetime="{{page.date | date: date_to_xmlschema}}" itemprop="datePublished" class="post-meta__date date">{{page.date | date: "%F"}}</time> • <span class="post-meta__tags tags">{{page.tags}}</span> | ||
</div> | ||
<h1 class="post-title">{{ page.title }}</h1> | ||
</header> | ||
|
||
<section class="post"> | ||
{{ content }} | ||
</section> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<article class="post-container post-container--single" itemscope itemtype="http://schema.org/BlogPosting"> | ||
<header class="post-header"> | ||
<div class="post-meta"> | ||
<time datetime="{{page.date | date: date_to_xmlschema}}" itemprop="datePublished" class="post-meta__date date">{{page.date | date: "%F"}}</time> • <span class="post-meta__tags tags">{{page.tags}}</span> | ||
</div> | ||
<h1 class="post-title">{{ page.title }}</h1> | ||
</header> | ||
|
||
<section class="post"> | ||
{{ content }} | ||
</section> | ||
</article> | ||
|
||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | ||
<!-- OneV's Den --> | ||
<ins class="adsbygoogle" | ||
style="display:block" | ||
data-ad-client="ca-pub-3324997515191619" | ||
data-ad-slot="9170309685" | ||
data-ad-format="auto"></ins> | ||
<script> | ||
(adsbygoogle = window.adsbygoogle || []).push({}); | ||
</script> | ||
|
||
{% include read-more.html %} | ||
{% include comments.html %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: post | ||
title: 搬家 | ||
date: 2011-09-06 23:32:54.000000000 +09:00 | ||
tags: 胡言乱语集 | ||
--- | ||
最早开博于新浪,大概已经是六七年前的事情了吧。 | ||
|
||
之后本科入学,拜悲剧的cernet网络所赐,新浪博客直接无法登陆。偶然看到搜狐就在学校边上,小尝试一下发现速度奇快,于是毫不犹豫地搬家。 | ||
|
||
然后是稳定的写博期,然后人开始变懒就不怎么写东西了,再然后...再然后就没有了... | ||
|
||
最近总被问“你玩微博么”,其实在twitter诞生之初的07年我就有帐号了..不幸的是周围没人和我有相同的爱好,加上智能手机不流行以及跨国短信贵死人等诸多因素,导致现在的twiiter上只有一个follower。而社交网络这种东西要是没人和你玩的话,估计自己连自己玩蛋的兴趣都不会有,于是后来加上伟大的党的伟大封杀,就彻底对微博没了胃口。不过就算这样我还是会很礼貌的把自己的新浪微博腾讯微博搜狐微博网易微博凤凰微博一股脑的告诉他,然后加一句:上面什么都没有哦,亲! | ||
|
||
其实心底里还是觉得标准博客才是真正能写出东西的地方,而微博更多地还是掺杂有一些被追捧性质的信息时事交流的类快餐文化平台。真的很难想象在极度口语化的时代,微博那短短几十个字能够承载起文化的传承和积淀,而信息传播这一主要功能却又无时无刻不在“有关部门”的监管之下,似乎也难有作为。于是乎造成了中国微博看似繁荣,实则尴尬的局面。 | ||
|
||
重新开始写博,一方面是希望今后的生活能有些许积淀,能为以后的回忆留下可以追溯的足迹;另一方面也算机缘所致,恰好有这么个拾回以前习惯的机会。总之,何乐不为呢~? |
Oops, something went wrong.