├── source ├── CNAME ├── README.md ├── tags │ └── index.md ├── images │ ├── happypack1.png │ ├── happypack-cache.png │ ├── happypack-eslint.png │ ├── chrome-stack-error.png │ ├── safari-loose-error.jpg │ └── safari-strict-error.jpg ├── _drafts │ ├── Promise的十个问题.md │ └── 如何从-nginx-查看response-body.md ├── _posts │ ├── git-找回删除的文件.md │ ├── 微软的8条人才评价标准.md │ ├── command-dev-null-2-1-表示什么意思?.md │ ├── 使用hexo在github上搭建博客.md │ ├── JavaScript-中的函数柯里化-Currying.md │ ├── too-many-open-files.md │ ├── 指定Python源文件编码-why-where-and-what.md │ ├── GNU-Readline-让命令行编辑倍速提升.md │ ├── javascript中的microtask与task.md │ ├── strategy-pattern.md │ ├── vue-new-instance.md │ └── nodejs-如何保证安装-node-modules-的一致性?.md └── sharing │ └── index.md ├── themes └── next │ ├── source │ ├── fonts │ │ └── .gitkeep │ ├── css │ │ ├── _mixins │ │ │ ├── Mist.styl │ │ │ ├── Muse.styl │ │ │ ├── custom.styl │ │ │ ├── Pisces.styl │ │ │ └── base.styl │ │ ├── _variables │ │ │ ├── Muse.styl │ │ │ ├── custom.styl │ │ │ ├── Mist.styl │ │ │ └── Pisces.styl │ │ ├── _custom │ │ │ └── custom.styl │ │ ├── _schemes │ │ │ ├── Mist │ │ │ │ ├── _logo.styl │ │ │ │ ├── outline │ │ │ │ │ └── outline.styl │ │ │ │ ├── sidebar │ │ │ │ │ └── sidebar-blogroll.styl │ │ │ │ ├── _search.styl │ │ │ │ ├── _base.styl │ │ │ │ ├── _menu.styl │ │ │ │ ├── _header.styl │ │ │ │ ├── _posts-expanded.styl │ │ │ │ └── index.styl │ │ │ ├── Pisces │ │ │ │ ├── _posts.styl │ │ │ │ ├── index.styl │ │ │ │ ├── _brand.styl │ │ │ │ ├── _menu.styl │ │ │ │ ├── _sidebar.styl │ │ │ │ └── _layout.styl │ │ │ └── Muse │ │ │ │ ├── sidebar │ │ │ │ └── sidebar-blogroll.styl │ │ │ │ ├── _search.styl │ │ │ │ ├── index.styl │ │ │ │ ├── _layout.styl │ │ │ │ ├── _logo.styl │ │ │ │ └── _menu.styl │ │ ├── _common │ │ │ ├── components │ │ │ │ ├── comments.styl │ │ │ │ ├── header │ │ │ │ │ ├── headerband.styl │ │ │ │ │ ├── header.styl │ │ │ │ │ ├── site-nav.styl │ │ │ │ │ ├── menu.styl │ │ │ │ │ └── site-meta.styl │ │ │ │ ├── tag-cloud.styl │ │ │ │ ├── pages │ │ │ │ │ ├── pages.styl │ │ │ │ │ ├── post-detail.styl │ │ │ │ │ ├── categories.styl │ │ │ │ │ ├── archive.styl │ │ │ │ │ └── schedule.styl │ │ │ │ ├── tags │ │ │ │ │ ├── tags.styl │ │ │ │ │ ├── full-image.styl │ │ │ │ │ ├── exturl.styl │ │ │ │ │ ├── group-pictures.styl │ │ │ │ │ ├── blockquote-center.styl │ │ │ │ │ └── note.styl │ │ │ │ ├── third-party │ │ │ │ │ ├── jiathis.styl │ │ │ │ │ ├── third-party.styl │ │ │ │ │ ├── baidushare.styl │ │ │ │ │ ├── gentie.styl │ │ │ │ │ ├── busuanzi-counter.styl │ │ │ │ │ ├── localsearch.styl │ │ │ │ │ └── algolia-search.styl │ │ │ │ ├── post │ │ │ │ │ ├── post-tags.styl │ │ │ │ │ ├── post-type.styl │ │ │ │ │ ├── post-copyright.styl │ │ │ │ │ ├── post-eof.styl │ │ │ │ │ ├── post-button.styl │ │ │ │ │ ├── post-gallery.styl │ │ │ │ │ ├── post-title.styl │ │ │ │ │ ├── post-nav.styl │ │ │ │ │ ├── post.styl │ │ │ │ │ ├── post-expand.styl │ │ │ │ │ ├── post-meta.styl │ │ │ │ │ ├── post-reward.styl │ │ │ │ │ └── post-collapse.styl │ │ │ │ ├── highlight │ │ │ │ │ ├── diff.styl │ │ │ │ │ └── theme.styl │ │ │ │ ├── sidebar │ │ │ │ │ ├── sidebar-blogroll.styl │ │ │ │ │ ├── sidebar-feed-link.styl │ │ │ │ │ ├── sidebar-author-links.styl │ │ │ │ │ ├── sidebar-toggle.styl │ │ │ │ │ ├── sidebar-author.styl │ │ │ │ │ ├── site-state.styl │ │ │ │ │ ├── sidebar-nav.styl │ │ │ │ │ ├── sidebar.styl │ │ │ │ │ └── sidebar-toc.styl │ │ │ │ ├── components.styl │ │ │ │ ├── back-to-top-sidebar.styl │ │ │ │ ├── footer │ │ │ │ │ └── footer.styl │ │ │ │ ├── back-to-top.styl │ │ │ │ ├── buttons.styl │ │ │ │ └── pagination.styl │ │ │ ├── scaffolding │ │ │ │ ├── scaffolding.styl │ │ │ │ ├── tables.styl │ │ │ │ ├── helpers.styl │ │ │ │ └── base.styl │ │ │ └── outline │ │ │ │ └── outline.styl │ │ └── main.styl │ ├── images │ │ ├── avatar.gif │ │ ├── loading.gif │ │ ├── searchicon.png │ │ ├── placeholder.gif │ │ ├── quote-r.svg │ │ └── quote-l.svg │ ├── lib │ │ ├── fancybox │ │ │ ├── source │ │ │ │ ├── blank.gif │ │ │ │ ├── fancybox_loading.gif │ │ │ │ ├── fancybox_overlay.png │ │ │ │ ├── fancybox_sprite.png │ │ │ │ ├── fancybox_loading@2x.gif │ │ │ │ ├── fancybox_sprite@2x.png │ │ │ │ └── helpers │ │ │ │ │ ├── fancybox_buttons.png │ │ │ │ │ ├── jquery.fancybox-thumbs.css │ │ │ │ │ └── jquery.fancybox-buttons.css │ │ │ ├── .gitattributes │ │ │ └── .bower.json │ │ ├── font-awesome │ │ │ ├── fonts │ │ │ │ ├── FontAwesome.otf │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ └── fontawesome-webfont.woff2 │ │ │ ├── HELP-US-OUT.txt │ │ │ ├── .gitignore │ │ │ ├── bower.json │ │ │ ├── .npmignore │ │ │ └── .bower.json │ │ ├── fastclick │ │ │ ├── bower.json │ │ │ ├── .bower.json │ │ │ └── LICENSE │ │ ├── jquery │ │ │ └── .bower.json │ │ ├── jquery_lazyload │ │ │ ├── bower.json │ │ │ ├── .bower.json │ │ │ ├── CONTRIBUTING.md │ │ │ ├── README.md │ │ │ └── jquery.scrollstop.js │ │ ├── velocity │ │ │ ├── bower.json │ │ │ └── .bower.json │ │ └── canvas-nest │ │ │ └── canvas-nest.min.js │ └── js │ │ └── src │ │ ├── schemes │ │ └── pisces.js │ │ ├── bootstrap.js │ │ └── exturl.js │ ├── layout │ ├── _custom │ │ ├── header.swig │ │ └── sidebar.swig │ ├── _scripts │ │ ├── schemes │ │ │ ├── mist.swig │ │ │ ├── muse.swig │ │ │ └── pisces.swig │ │ ├── pages │ │ │ └── post-details.swig │ │ ├── boostrap.swig │ │ ├── commons.swig │ │ └── vendors.swig │ ├── _partials │ │ ├── head │ │ │ ├── custom-head.swig │ │ │ └── external-fonts.swig │ │ ├── search │ │ │ ├── tinysou.swig │ │ │ ├── swiftype.swig │ │ │ └── localsearch.swig │ │ ├── share │ │ │ ├── add-this.swig │ │ │ ├── duoshuo_share.swig │ │ │ ├── jiathis.swig │ │ │ └── baidushare.swig │ │ ├── pagination.swig │ │ ├── search.swig │ │ ├── page-header.swig │ │ ├── footer.swig │ │ ├── comments.swig │ │ └── header.swig │ ├── _third-party │ │ ├── search │ │ │ ├── index.swig │ │ │ ├── algolia-search │ │ │ │ ├── dom.swig │ │ │ │ └── assets.swig │ │ │ └── tinysou.swig │ │ ├── exturl.swig │ │ ├── duoshuo-hot-articles.swig │ │ ├── comments │ │ │ ├── index.swig │ │ │ ├── youyan.swig │ │ │ ├── gentie.swig │ │ │ ├── livere.swig │ │ │ ├── disqus.swig │ │ │ ├── hypercomments.swig │ │ │ ├── changyan.swig │ │ │ └── duoshuo.swig │ │ ├── analytics │ │ │ ├── cnzz-analytics.swig │ │ │ ├── index.swig │ │ │ ├── tencent-analytics.swig │ │ │ ├── baidu-analytics.swig │ │ │ ├── tencent-mta.swig │ │ │ ├── google-analytics.swig │ │ │ ├── facebook-sdk.swig │ │ │ ├── busuanzi-counter.swig │ │ │ ├── vkontakte-api.swig │ │ │ └── application-insights.swig │ │ ├── seo │ │ │ └── baidu-push.swig │ │ └── mathjax.swig │ ├── _macro │ │ ├── wechat-subscriber.swig │ │ ├── post-copyright.swig │ │ ├── reward.swig │ │ └── post-collapse.swig │ ├── schedule.swig │ ├── index.swig │ ├── tag.swig │ ├── category.swig │ ├── post.swig │ ├── page.swig │ ├── archive.swig │ └── _layout.swig │ ├── scripts │ ├── tags │ │ ├── note.js │ │ ├── center-quote.js │ │ ├── full-image.js │ │ ├── button.js │ │ └── exturl.js │ └── merge-configs.js │ ├── test │ ├── .jshintrc │ └── intern.js │ ├── package.json │ ├── LICENSE │ ├── languages │ ├── zh-Hans.yml │ └── en.yml │ └── README.md ├── scaffolds ├── draft.md ├── page.md └── post.md ├── .gitignore ├── README.md ├── package.json └── _config.yml /source/CNAME: -------------------------------------------------------------------------------- 1 | flyyang.me 2 | -------------------------------------------------------------------------------- /themes/next/source/fonts/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/next/layout/_custom/header.swig: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /themes/next/source/css/_mixins/Mist.styl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/next/source/css/_mixins/Muse.styl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/next/source/css/_mixins/custom.styl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/next/source/css/_variables/Muse.styl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/next/layout/_custom/sidebar.swig: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /themes/next/layout/_scripts/schemes/mist.swig: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/next/layout/_scripts/schemes/muse.swig: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/next/source/css/_variables/custom.styl: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scaffolds/draft.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: {{ title }} 3 | tags: 4 | --- 5 | -------------------------------------------------------------------------------- /themes/next/source/css/_custom/custom.styl: -------------------------------------------------------------------------------- 1 | // Custom styles. 2 | -------------------------------------------------------------------------------- /scaffolds/page.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: {{ title }} 3 | date: {{ date }} 4 | --- 5 | -------------------------------------------------------------------------------- /themes/next/layout/_partials/head/custom-head.swig: -------------------------------------------------------------------------------- 1 | {# 2 | Custom head. 3 | #} 4 | -------------------------------------------------------------------------------- /scaffolds/post.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: {{ title }} 3 | date: {{ date }} 4 | tags: 5 | --- 6 | -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Mist/_logo.styl: -------------------------------------------------------------------------------- 1 | .site-subtitle { display: none; } 2 | -------------------------------------------------------------------------------- /source/README.md: -------------------------------------------------------------------------------- 1 | # Read ME 2 | 3 | This is [my blog](https://flyyang.me) source code. 4 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/comments.styl: -------------------------------------------------------------------------------- 1 | .comments { margin: 60px 20px 0; } 2 | -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Mist/outline/outline.styl: -------------------------------------------------------------------------------- 1 | .main-inner { margin-top: 80px; } 2 | -------------------------------------------------------------------------------- /source/tags/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: tags 3 | date: 2017-04-05 11:36:12 4 | type: "tags" 5 | --- 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | Thumbs.db 3 | db.json 4 | *.log 5 | node_modules/ 6 | public/ 7 | .deploy*/ 8 | -------------------------------------------------------------------------------- /source/images/happypack1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/source/images/happypack1.png -------------------------------------------------------------------------------- /source/images/happypack-cache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/source/images/happypack-cache.png -------------------------------------------------------------------------------- /source/images/happypack-eslint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/source/images/happypack-eslint.png -------------------------------------------------------------------------------- /source/images/chrome-stack-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/source/images/chrome-stack-error.png -------------------------------------------------------------------------------- /source/images/safari-loose-error.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/source/images/safari-loose-error.jpg -------------------------------------------------------------------------------- /source/images/safari-strict-error.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/source/images/safari-strict-error.jpg -------------------------------------------------------------------------------- /themes/next/source/images/avatar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/images/avatar.gif -------------------------------------------------------------------------------- /themes/next/source/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/images/loading.gif -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Pisces/_posts.styl: -------------------------------------------------------------------------------- 1 | .post-body { 2 | +mobile() { 3 | text-align: justify; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /themes/next/source/images/searchicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/images/searchicon.png -------------------------------------------------------------------------------- /themes/next/source/images/placeholder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/images/placeholder.gif -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Mist/sidebar/sidebar-blogroll.styl: -------------------------------------------------------------------------------- 1 | .links-of-blogroll-inline .links-of-blogroll-item { display: inline-block; } 2 | -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Muse/sidebar/sidebar-blogroll.styl: -------------------------------------------------------------------------------- 1 | .links-of-blogroll-inline .links-of-blogroll-item { display: inline-block; } 2 | -------------------------------------------------------------------------------- /themes/next/source/lib/fancybox/source/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/fancybox/source/blank.gif -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/header/headerband.styl: -------------------------------------------------------------------------------- 1 | .headband { 2 | height: $headband-height; 3 | background: $headband-bg; 4 | } 5 | -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Pisces/index.styl: -------------------------------------------------------------------------------- 1 | @import "_layout"; 2 | @import "_brand"; 3 | @import "_menu"; 4 | @import "_sidebar"; 5 | @import "_posts"; 6 | -------------------------------------------------------------------------------- /themes/next/source/lib/font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /themes/next/layout/_third-party/search/index.swig: -------------------------------------------------------------------------------- 1 | {% include 'tinysou.swig' %} 2 | {% include 'localsearch.swig' %} 3 | {% include 'algolia-search/assets.swig' %} 4 | -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Mist/_search.styl: -------------------------------------------------------------------------------- 1 | // Search 2 | // -------------------------------------------------- 3 | .site-search form { 4 | display: none; 5 | } -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Muse/_search.styl: -------------------------------------------------------------------------------- 1 | // Search 2 | // -------------------------------------------------- 3 | .site-search form { 4 | display: none; 5 | } -------------------------------------------------------------------------------- /themes/next/source/lib/fancybox/source/fancybox_loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/fancybox/source/fancybox_loading.gif -------------------------------------------------------------------------------- /themes/next/source/lib/fancybox/source/fancybox_overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/fancybox/source/fancybox_overlay.png -------------------------------------------------------------------------------- /themes/next/source/lib/fancybox/source/fancybox_sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/fancybox/source/fancybox_sprite.png -------------------------------------------------------------------------------- /themes/next/layout/_partials/search/tinysou.swig: -------------------------------------------------------------------------------- 1 |
4 | -------------------------------------------------------------------------------- /themes/next/source/lib/fancybox/source/fancybox_loading@2x.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/fancybox/source/fancybox_loading@2x.gif -------------------------------------------------------------------------------- /themes/next/source/lib/fancybox/source/fancybox_sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/fancybox/source/fancybox_sprite@2x.png -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/tag-cloud.styl: -------------------------------------------------------------------------------- 1 | .tag-cloud { 2 | text-align: center; 3 | 4 | a { 5 | display: inline-block; 6 | margin: 10px; 7 | } 8 | } -------------------------------------------------------------------------------- /themes/next/source/lib/font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/font-awesome/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /themes/next/source/lib/font-awesome/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/font-awesome/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /themes/next/source/lib/fancybox/source/helpers/fancybox_buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/fancybox/source/helpers/fancybox_buttons.png -------------------------------------------------------------------------------- /themes/next/source/lib/font-awesome/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/font-awesome/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /themes/next/source/lib/font-awesome/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flyyang/blog/HEAD/themes/next/source/lib/font-awesome/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /source/_drafts/Promise的十个问题.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Promise的十个问题 3 | tags: 4 | --- 5 | # Promise 的十个问题 6 | 7 | 8 | 9 | 10 | > * [Promise A+](https://promisesaplus.com/) 11 | > * 12 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/pages/pages.styl: -------------------------------------------------------------------------------- 1 | // Page specific styles 2 | 3 | @import "archive"; 4 | @import "categories"; 5 | @import "schedule"; 6 | @import "post-detail"; 7 | -------------------------------------------------------------------------------- /themes/next/layout/_third-party/exturl.swig: -------------------------------------------------------------------------------- 1 | {% if theme.exturl %} 2 | 3 | {% endif %} 4 | -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Muse/index.styl: -------------------------------------------------------------------------------- 1 | @import "_layout.styl"; 2 | @import "_logo.styl"; 3 | @import "_menu.styl"; 4 | @import "_search.styl"; 5 | @import "sidebar/sidebar-blogroll"; 6 | -------------------------------------------------------------------------------- /source/_drafts/如何从-nginx-查看response-body.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 如何从 nginx 查看 response body 3 | date: 2017-07-27 21:07:51 4 | tags: 5 | --- 6 | 7 | 总有一个原因让你想看一下 NGXINX 到底返回了什么。譬如我,界面没有返回数据,后端API 又有数据, 8 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/pages/post-detail.styl: -------------------------------------------------------------------------------- 1 | .page-post-detail { 2 | 3 | .sidebar-toggle-line { background: $sidebar-highlight; } 4 | 5 | .comments { overflow: hidden; } 6 | } 7 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/tags/tags.styl: -------------------------------------------------------------------------------- 1 | @import "full-image"; 2 | @import "blockquote-center"; 3 | @import "group-pictures"; 4 | @import "note"; 5 | @import "exturl" if hexo-config('exturl'); 6 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/third-party/jiathis.styl: -------------------------------------------------------------------------------- 1 | .post-spread { 2 | margin-top: 20px; 3 | text-align: center; 4 | } 5 | 6 | .jiathis_style { 7 | display: inline-block; 8 | 9 | a { border: none; } 10 | } -------------------------------------------------------------------------------- /themes/next/source/css/_common/scaffolding/scaffolding.styl: -------------------------------------------------------------------------------- 1 | // 2 | // Scaffolding 3 | // ================================================= 4 | 5 | @import "normalize"; 6 | @import "base"; 7 | @import "helpers"; 8 | @import "tables"; 9 | -------------------------------------------------------------------------------- /themes/next/layout/_third-party/duoshuo-hot-articles.swig: -------------------------------------------------------------------------------- 1 | {# 多说热评文章 #} 2 | {% if (theme.duoshuo_hotartical and page.title) %} 3 |热评文章
4 | 5 | {% endif %} 6 | -------------------------------------------------------------------------------- /themes/next/source/lib/fancybox/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Denote all files that are truly binary and should not be modified. 5 | *.png binary 6 | *.jpg binary 7 | *.gif binary -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Muse/_layout.styl: -------------------------------------------------------------------------------- 1 | .header-inner, .container .main-inner, .footer-inner { 2 | +mobile() { width: auto; } 3 | } 4 | 5 | // embed tag 6 | embed { 7 | display: block; 8 | margin: 0px auto 25px auto; 9 | } 10 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/header/header.styl: -------------------------------------------------------------------------------- 1 | .header { background: $head-bg; } 2 | 3 | .header-inner { position: relative; } 4 | 5 | 6 | @import "headerband"; 7 | @import "site-meta"; 8 | @import "site-nav"; 9 | @import "menu"; 10 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/post/post-tags.styl: -------------------------------------------------------------------------------- 1 | .posts-expand .post-tags { 2 | margin-top: 40px; 3 | text-align: center; 4 | 5 | a { 6 | display: inline-block; 7 | margin-right: 10px; 8 | font-size: 13px; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /themes/next/source/lib/fastclick/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fastclick", 3 | "main": "lib/fastclick.js", 4 | "ignore": [ 5 | "**/.*", 6 | "component.json", 7 | "package.json", 8 | "Makefile", 9 | "tests", 10 | "examples" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /themes/next/layout/_scripts/pages/post-details.swig: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /themes/next/layout/_third-party/comments/index.swig: -------------------------------------------------------------------------------- 1 | {% include 'duoshuo.swig' %} 2 | {% include 'disqus.swig' %} 3 | {% include 'hypercomments.swig' %} 4 | {% include 'gentie.swig' %} 5 | {% include 'youyan.swig' %} 6 | {% include 'livere.swig' %} 7 | {% include 'changyan.swig' %} 8 | -------------------------------------------------------------------------------- /themes/next/layout/_scripts/boostrap.swig: -------------------------------------------------------------------------------- 1 | {% 2 | set boot_scripts = [ 3 | 'src/bootstrap.js' 4 | ] 5 | %} 6 | 7 | {% for bs in boot_scripts %} 8 | 9 | {% endfor %} 10 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/third-party/third-party.styl: -------------------------------------------------------------------------------- 1 | @import "duoshuo"; 2 | @import "gentie"; 3 | @import "jiathis"; 4 | @import "baidushare"; 5 | @import "localsearch"; 6 | @import "busuanzi-counter"; 7 | @import "algolia-search" if hexo-config('algolia_search.enable'); 8 | -------------------------------------------------------------------------------- /themes/next/layout/_third-party/analytics/cnzz-analytics.swig: -------------------------------------------------------------------------------- 1 | {% if theme.cnzz_siteid %} 2 | 3 | 6 | 7 | {% endif %} 8 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/third-party/baidushare.styl: -------------------------------------------------------------------------------- 1 | .post-spread { 2 | margin-top: 20px; 3 | text-align: center; 4 | } 5 | 6 | .bdshare-slide-button-box a { border: none; } 7 | 8 | .bdsharebuttonbox { 9 | display: inline-block; 10 | 11 | a { border: none; } 12 | } 13 | -------------------------------------------------------------------------------- /themes/next/layout/_scripts/commons.swig: -------------------------------------------------------------------------------- 1 | {% 2 | set js_commons = [ 3 | 'src/utils.js', 4 | 'src/motion.js' 5 | ] 6 | %} 7 | 8 | {% for common in js_commons %} 9 | 10 | {% endfor %} 11 | -------------------------------------------------------------------------------- /themes/next/layout/_partials/share/add-this.swig: -------------------------------------------------------------------------------- 1 | 2 |' + 7 | hexo.render.renderSync({text: content, engine: 'markdown'}) + 8 | ''; 9 | } 10 | 11 | hexo.extend.tag.register('centerquote', centerQuote, {ends: true}); 12 | hexo.extend.tag.register('cq', centerQuote, {ends: true}); 13 | -------------------------------------------------------------------------------- /themes/next/source/lib/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "_cacheHeaders": { 4 | "ETag": "\"5492efef-14960\"", 5 | "Last-Modified": "Thu, 18 Dec 2014 15:17:03 GMT", 6 | "Content-Length": "84320", 7 | "Content-Type": "application/x-javascript" 8 | }, 9 | "_release": "e-tag:5492efef-", 10 | "main": "index.js", 11 | "_source": "http://code.jquery.com/jquery-2.1.3.min.js", 12 | "_target": "*", 13 | "_originalSource": "http://code.jquery.com/jquery-2.1.3.min.js", 14 | "_direct": true 15 | } -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/sidebar/sidebar-feed-link.styl: -------------------------------------------------------------------------------- 1 | .feed-link { 2 | margin-top: 20px; 3 | 4 | a { 5 | display: inline-block; 6 | padding: 0 15px; 7 | color: rgb(252, 100, 35); 8 | border: 1px solid rgb(252, 100, 35); 9 | border-radius: 4px; 10 | 11 | i { 12 | color: rgb(252, 100, 35); 13 | font-size: 14px; 14 | } 15 | 16 | &:hover { 17 | color:white; 18 | background: rgb(252, 100, 35); 19 | 20 | i { color: white; } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /themes/next/source/lib/font-awesome/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "font-awesome", 3 | "description": "Font Awesome", 4 | "keywords": [], 5 | "homepage": "http://fontawesome.io", 6 | "dependencies": {}, 7 | "devDependencies": {}, 8 | "license": ["OFL-1.1", "MIT", "CC-BY-3.0"], 9 | "main": [ 10 | "less/font-awesome.less", 11 | "scss/font-awesome.scss" 12 | ], 13 | "ignore": [ 14 | "*/.*", 15 | "*.json", 16 | "src", 17 | "*.yml", 18 | "Gemfile", 19 | "Gemfile.lock", 20 | "*.md" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /themes/next/layout/_third-party/analytics/google-analytics.swig: -------------------------------------------------------------------------------- 1 | {% if theme.google_analytics %} 2 | 10 | {% endif %} -------------------------------------------------------------------------------- /themes/next/layout/_third-party/seo/baidu-push.swig: -------------------------------------------------------------------------------- 1 | {% if theme.baidu_push %} 2 | 16 | {% endif %} 17 | -------------------------------------------------------------------------------- /themes/next/layout/_third-party/comments/youyan.swig: -------------------------------------------------------------------------------- 1 | {% if not (theme.duoshuo and theme.duoshuo.shortname) 2 | and not theme.duoshuo_shortname 3 | and not theme.disqus_shortname 4 | and not theme.hypercomments_id 5 | and not theme.gentie_productKey %} 6 | 7 | {% if theme.youyan_uid %} 8 | {% set uid = theme.youyan_uid %} 9 | 10 | {% if page.comments %} 11 | 12 | 13 | 14 | {% endif %} 15 | {% endif %} 16 | 17 | {% endif %} 18 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/post/post-gallery.styl: -------------------------------------------------------------------------------- 1 | .post-gallery { 2 | display: table; 3 | table-layout: fixed; 4 | width: 100%; 5 | border-collapse: separate; 6 | } 7 | 8 | .post-gallery-row { display: table-row; } 9 | 10 | .post-gallery .post-gallery-img { 11 | display: table-cell; 12 | text-align: center; 13 | vertical-align: middle; 14 | border: none; 15 | } 16 | 17 | .post-gallery .post-gallery-img img { 18 | max-width: 100%; 19 | max-height: 100%; 20 | border: none; 21 | } 22 | 23 | .fancybox-close, .fancybox-close:hover { border: none; } 24 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/back-to-top-sidebar.styl: -------------------------------------------------------------------------------- 1 | .back-to-top { 2 | display: none; 3 | margin: 15px -10px -20px; 4 | background: $body-bg-color; 5 | font-size: $b2t-font-size; 6 | opacity: $b2t-opacity; 7 | cursor: pointer; 8 | text-align: center; 9 | -webkit-transform: translateZ(0); 10 | transition-property: bottom; 11 | the-transition(); 12 | &:hover { opacity: 0.8; } 13 | 14 | +mobile() { 15 | display: none; 16 | } 17 | +tablet() { 18 | display: none; 19 | } 20 | 21 | &.back-to-top-on { 22 | display: block; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /themes/next/source/css/_schemes/Pisces/_brand.styl: -------------------------------------------------------------------------------- 1 | .site-brand-wrapper { 2 | position: relative; 3 | } 4 | 5 | .site-meta { 6 | padding: 20px 0; 7 | color: white; 8 | background: $black-deep; 9 | 10 | +tablet() { 11 | box-shadow: 0 0 16px rgba(0,0,0,0.5); 12 | } 13 | +mobile() { 14 | box-shadow: 0 0 16px rgba(0,0,0,0.5); 15 | } 16 | } 17 | 18 | .brand { 19 | padding: 0; 20 | background: none; 21 | 22 | &:hover { color: white; } 23 | } 24 | 25 | .site-subtitle { 26 | margin: 10px 10px 0; 27 | font-weight: initial; 28 | } 29 | 30 | .site-search form { display: none; } 31 | -------------------------------------------------------------------------------- /themes/next/layout/_partials/search/swiftype.swig: -------------------------------------------------------------------------------- 1 | 4 | 5 | 13 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/pages/categories.styl: -------------------------------------------------------------------------------- 1 | .category-all-page { 2 | .category-all-title { text-align: center; } 3 | 4 | .category-all { margin-top: 20px; } 5 | 6 | .category-list { 7 | margin: 0; 8 | padding: 0; 9 | list-style: none; 10 | } 11 | 12 | .category-list-item { margin: 5px 10px; } 13 | 14 | .category-list-count { 15 | color: $grey; 16 | &:before { 17 | display: inline; 18 | content: " (" 19 | } 20 | &:after { 21 | display: inline; 22 | content: ") " 23 | } 24 | } 25 | 26 | .category-list-child { padding-left: 10px; } 27 | } 28 | -------------------------------------------------------------------------------- /themes/next/source/js/src/schemes/pisces.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | var $headerInner = $('.header-inner'); 3 | var $sidebar = $('#sidebar'); 4 | var getSidebarTop = function(){ 5 | return $headerInner.height() + CONFIG.sidebar.offset; 6 | }; 7 | var setSidebarMarginTop = function(sidebarTop){ 8 | return $sidebar.css({ 'margin-top': sidebarTop }); 9 | }; 10 | var mql = window.matchMedia('(min-width: 991px)'); 11 | setSidebarMarginTop(getSidebarTop()).show(); 12 | mql.addListener(function(e){ 13 | if(e.matches){ 14 | setSidebarMarginTop(getSidebarTop()); 15 | } 16 | }); 17 | }); 18 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/third-party/busuanzi-counter.styl: -------------------------------------------------------------------------------- 1 | if hexo-config("scheme") == Pisces 2 | .busuanzi-count { 3 | +tablet() { 4 | width: auto; 5 | } 6 | +mobile() { 7 | width: auto; 8 | } 9 | } 10 | 11 | .site-uv, 12 | .site-pv, 13 | .page-pv { 14 | display: inline-block; 15 | 16 | .busuanzi-value { 17 | margin: 0 5px; 18 | } 19 | } 20 | 21 | if hexo-config("busuanzi_count.site_pv") and hexo-config("busuanzi_count.site_uv") 22 | .site-uv 23 | { 24 | margin-right: 10px; 25 | 26 | &::after { 27 | content: "|"; 28 | padding-left: 10px; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/sidebar/sidebar-author-links.styl: -------------------------------------------------------------------------------- 1 | .links-of-author { margin-top: 20px; } 2 | 3 | .links-of-author a { 4 | display: inline-block; 5 | vertical-align: middle; 6 | margin-right: 10px; 7 | margin-bottom: 10px; 8 | border-bottom-color: $black-light; 9 | font-size: 13px; 10 | 11 | &:before { 12 | display: inline-block; 13 | vertical-align: middle; 14 | margin-right: 3px; 15 | content: " "; 16 | width: 4px; 17 | height: 4px; 18 | border-radius: 50%; 19 | background: rgb(random-color(0, 255) - 50%, random-color(0, 255) - 50%, random-color(0, 255) - 50%); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/header/site-nav.styl: -------------------------------------------------------------------------------- 1 | .site-nav-toggle { 2 | display: none; 3 | position: absolute; 4 | top: 10px; 5 | left: 10px; 6 | +mobile() { 7 | display: block; 8 | } 9 | 10 | button { 11 | margin-top: 2px; 12 | padding: 9px 10px; 13 | background: transparent; 14 | border: none; 15 | } 16 | } 17 | 18 | .site-nav { 19 | +mobile() { 20 | display: none; 21 | margin: 0 -10px; 22 | padding: 0 10px; 23 | clear: both; 24 | border-top: 1px solid $gray-lighter; 25 | } 26 | +tablet() { display: block !important; } 27 | +desktop() { display: block !important; } 28 | } 29 | -------------------------------------------------------------------------------- /themes/next/source/css/_common/components/pages/archive.styl: -------------------------------------------------------------------------------- 1 | .use-motion { 2 | .post { opacity: 0; } 3 | } 4 | 5 | .page-archive { 6 | 7 | .archive-page-counter { 8 | position: relative; 9 | top: 3px; 10 | left: 20px; 11 | 12 | +mobile() { 13 | top: 5px; 14 | } 15 | } 16 | 17 | .posts-collapse { 18 | 19 | .archive-move-on { 20 | position: absolute; 21 | top: 11px; 22 | left: 0; 23 | margin-left: -6px; 24 | width: 10px; 25 | height: 10px; 26 | opacity: 0.5; 27 | background: $black-light; 28 | border: 1px solid white; 29 | 30 | circle(); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /themes/next/source/lib/fastclick/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fastclick", 3 | "main": "lib/fastclick.js", 4 | "ignore": [ 5 | "**/.*", 6 | "component.json", 7 | "package.json", 8 | "Makefile", 9 | "tests", 10 | "examples" 11 | ], 12 | "homepage": "https://github.com/ftlabs/fastclick", 13 | "version": "1.0.6", 14 | "_release": "1.0.6", 15 | "_resolution": { 16 | "type": "version", 17 | "tag": "v1.0.6", 18 | "commit": "2ac7258407619398005ca720596f0d36ce66a6c8" 19 | }, 20 | "_source": "git://github.com/ftlabs/fastclick.git", 21 | "_target": "~1.0.6", 22 | "_originalSource": "fastclick", 23 | "_direct": true 24 | } -------------------------------------------------------------------------------- /themes/next/source/lib/font-awesome/.npmignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.egg-info 3 | *.db 4 | *.db.old 5 | *.swp 6 | *.db-journal 7 | 8 | .coverage 9 | .DS_Store 10 | .installed.cfg 11 | _gh_pages/* 12 | 13 | .idea/* 14 | .svn/* 15 | src/website/static/* 16 | src/website/media/* 17 | 18 | bin 19 | cfcache 20 | develop-eggs 21 | dist 22 | downloads 23 | eggs 24 | parts 25 | tmp 26 | .sass-cache 27 | node_modules 28 | 29 | src/website/settingslocal.py 30 | stunnel.log 31 | 32 | .ruby-version 33 | 34 | # don't need these in the npm package. 35 | src/ 36 | _config.yml 37 | bower.json 38 | component.json 39 | composer.json 40 | CONTRIBUTING.md 41 | Gemfile 42 | Gemfile.lock 43 | -------------------------------------------------------------------------------- /source/_posts/git-找回删除的文件.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: git 找回删除的文件 3 | date: 2017-05-24 16:50:56 4 | tags: git 5 | --- 6 | 误删除的文件可以被恢复,前提是在此之前进行过 `git add` 或者 `git stash` 操作。否则你就需要找对应的IDE或编辑器(甚至文件系统)的备份了。 7 | 8 | 通过以下两步可以找回 `git add (stash)` 的文件: 9 | 10 | 11 | 12 | 第一步: 13 | 14 | ``` 15 | git fsck --lost-found 16 | ``` 17 | 18 | 此操作会获取所有 `git add(stash)` 操作生成的 id 。 19 | 20 | 第二步: 21 | 22 | ``` 23 | git show
22 | ```
23 |
24 | then in your code do:
25 |
26 | ```js
27 | $("img.lazy").lazyload();
28 | ```
29 |
30 | This causes all images of class lazy to be lazy loaded.
31 |
32 | More information on [Lazy Load](http://www.appelsiini.net/projects/lazyload) project page.
33 |
34 | ## Install
35 |
36 | You can install with [bower](http://bower.io/) or [npm](https://www.npmjs.com/).
37 |
38 |
39 | ```sh
40 | $ bower install jquery.lazyload
41 | $ npm install jquery-lazyload
42 | ```
43 |
44 |
45 | # License
46 |
47 | All code licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php). All images licensed under [Creative Commons Attribution 3.0 Unported License](http://creativecommons.org/licenses/by/3.0/deed.en_US). In other words you are basically free to do whatever you want. Just don't remove my name from the source.
48 |
49 |
--------------------------------------------------------------------------------
/themes/next/layout/archive.swig:
--------------------------------------------------------------------------------
1 | {% extends '_layout.swig' %}
2 | {% import '_macro/post-collapse.swig' as post_template %}
3 | {% import '_macro/sidebar.swig' as sidebar_template %}
4 |
5 | {% block title %} {{ __('title.archive') }} | {{ config.title }} {% endblock %}
6 |
7 | {% block page_class %} page-archive {% endblock %}
8 |
9 | {% block content %}
10 |
11 |