Commit fd6bcba4 authored by Jacksgong's avatar Jacksgong

chore: enable updated-date capable

parent 3f59fa28
......@@ -19,7 +19,7 @@ module.exports = function(locals) {
var feedConfig = config.feed;
var template = feedConfig.type === 'rss2' ? rss2Tmpl : atomTmpl;
var posts = locals.posts.sort('-date');
var posts = locals.posts.sort('-updated');
if (feedConfig.limit) posts = posts.limit(feedConfig.limit);
var url = config.url;
......
......@@ -6,7 +6,7 @@ var assign = require('object-assign');
hexo.config.index_generator = assign({
per_page: typeof hexo.config.per_page === 'undefined' ? 10 : hexo.config.per_page,
order_by: '-date'
order_by: '-updated'
}, hexo.config.index_generator);
hexo.extend.generator.register('index', require('./lib/generator'));
......@@ -21,15 +21,15 @@ module.exports = function(locals){
if(searchfield != ''){
if(searchfield == 'post'){
posts = locals.posts.sort('-date');
posts = locals.posts.sort('-updated');
}else if(searchfield == 'page'){
pages = locals.pages;
}else{
posts = locals.posts.sort('-date');
posts = locals.posts.sort('-updated');
pages = locals.pages;
}
}else{
posts = locals.posts.sort('-date');
posts = locals.posts.sort('-updated');
}
if(searchformat != ''){
if(['raw', 'excerpt', 'more'].indexOf(searchformat) > -1){
......
'use strict';
function postGenerator(locals) {
var posts = locals.posts.sort('-date').toArray();
var posts = locals.posts.sort('-updated').toArray();
var length = posts.length;
return posts.map(function(post, i) {
......
title: 2014 期待已久.
date: 2014-01-01 08:35:03
updated: 2014-01-01 08:35:03
permalink: 2014/01/01/2014-期待已久
categories:
- 生活笔记
......
title: 360手机卫士 Android开发 InfoQ视频 总结
date: 2015-03-17 14:09:03
updated: 2015-03-17 14:09:03
permalink: 2015/03/17/360手机卫士-Android开发-InfoQ视频-总结
categories:
- Android最佳实践
......
title: Android 2d-Drawing
date: 2015-04-18 08:35:03
updated: 2015-04-18 08:35:03
permalink: 2015/04/18/Android-2d-Drawing
categories:
- Android UI交互
......
title: Android AIDL 通信与回调
date: 2013-12-14 08:35:03
updated: 2013-12-14 08:35:03
permalink: 2013/12/14/Android-AIDL-通信与回调
categories:
- Android机制
......
title: Android Messenger 进程通信
date: 2013-12-14 08:35:03
updated: 2013-12-14 08:35:03
permalink: 2013/12/14/Android-Messenger-进程通信
categories:
- Android机制
......
title: Android Touch Gallery
date: 2014-12-14 08:35:03
updated: 2014-12-14 08:35:03
permalink: 2014/12/14/Android-Touch-Gallery
categories:
- Android UI交互
......
title: Android 数据库架构 — JLibrary
date: 2014-09-06 08:35:03
updated: 2014-09-06 08:35:03
permalink: 2014/09/06/Android-数据库架构-—-JLibrary
categories:
- 开源项目
......
title: Android推送探究
date: 2013-07-12 08:35:03
updated: 2013-07-12 08:35:03
permalink: 2013/07/12/Android推送探究
categories:
- Android机制
......
title: Android文件、缓存管理
date: 2013-12-17 08:35:03
updated: 2013-12-17 08:35:03
permalink: 2013/12/17/Android文件、缓存管理
categories:
- 开源项目
......
title: Android网络
date: 2015-03-28 08:35:03
updated: 2015-03-28 08:35:03
permalink: 2015/03/28/Android网络学习笔记整理
categories:
- 网络
......
title: Falcon Pro 3 如何完成独立开发演讲分析
date: 2015-06-14 08:35:03
updated: 2015-06-14 08:35:03
permalink: 2015/06/14/Falcon-Pro-3-如何完成独立开发演讲分析
categories:
- Android最佳实践
......
title: Flatbuffer Use Optimize
date: 2015-01-05 08:35:03
updated: 2015-01-05 08:35:03
permalink: 2015/01/05/Flatbuffer-Use-Optimize
categories:
- 开源项目
......
title: Git
date: 2015-03-16 07:51:03
updated: 2015-03-16 07:51:03
permalink: 2015/03/16/Git学习整理
categories:
- 工程师技能
......
title: Google 2015 Material Design Summit
date: 2015-04-21 04:05:03
updated: 2015-04-21 04:05:03
permalink: 2015/04/21/Google-2015-Material-Design-Summit
categories:
- Google Summit
......
title: Java 8 Lambda
date: 2015-04-28 08:35:03
updated: 2015-04-28 08:35:03
permalink: 2015/04/28/Java-8-Lambda
categories:
- 编程语言
......
title: Java多线程抢占
date: 2015-03-25 08:35:03
updated: 2015-03-25 08:35:03
permalink: 2015/03/25/Java多线程抢占
categories:
- 编程语言
......
title: LeakCanary使用总结
date: 2015-05-18 08:35:03
updated: 2015-05-18 08:35:03
permalink: 2015/05/18/LeakCanary使用总结
categories:
- Android内存
......
title: Leakcanary Square的一款Android/Java内存泄漏检测工具
date: 2015-05-12 08:35:03
updated: 2015-05-12 08:35:03
permalink: 2015/05/12/Leakcanary-Square的一款Android:Java内存泄漏检测工具
categories:
- Android内存
......
title: PhotoGallery、Volley、Picasso 比较
date: 2015-04-28 07:48:03
updated: 2015-04-28 07:48:03
permalink: 2015/04/28/PhotoGallery、Volley、Picasso-比较
categories:
- Android UI交互
......
title: Repair broken image url in wordpress posts
date: 2015-01-22 14:13:03
updated: 2015-01-22 14:13:03
permalink: 2015/01/22/Repair-broken-image-url-in-wordpress-posts
categories:
- 开源项目
......
title: RxAndroid(RxJava) 与 AsyncTask
date: 2015-05-9 08:35:03
updated: 2015-05-9 08:35:03
permalink: 2015/05/9/RxAndroid(RxJava)-与-AsyncTask
tags:
- AsyncTask
......
title: RxJava
date: 2015-04-29 08:35:03
updated: 2015-04-29 08:35:03
permalink: 2015/04/29/RxJava学习整理
categories:
- 编程方式
......
title: SVG-Android库 深入浅出 解析篇
date: 2014-12-10 08:35:03
updated: 2014-12-10 08:35:03
permalink: 2014/12/10/SVG-Android库-深入浅出-解析篇
categories:
- SVG
......
title: SVG Android应用探究之路
date: 2017-02-07 15:46:03
date: 2014-11-08 15:46:03
updated: 2014-11-08 15:46:03
permalink: 2014/11/08/SVG-Android应用探究之路
categories:
- SVG
......@@ -151,6 +152,6 @@ http://play.google.com/store/apps/details?id=com.whisperarts.kids.forms
---
- 文章创建时间: 2014-11-08,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/SVG-Android%E5%BA%94%E7%94%A8%E6%8E%A2%E7%A9%B6%E4%B9%8B%E8%B7%AF.md)
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/SVG-Android%E5%BA%94%E7%94%A8%E6%8E%A2%E7%A9%B6%E4%B9%8B%E8%B7%AF.md)
---
title: SVG矢量预研期总结
date: 2015-02-04 08:35:03
updated: 2015-02-04 08:35:03
permalink: 2015/02/04/SVG矢量预研期总结
categories:
- SVG
......
title: Switching between the panel and the keyboard in Wechat
date: 2015-02-07 07:47:03
updated: 2015-02-07 07:47:03
permalink: 2015/02/07/Switching-between-the-panel-and-the-keyboard
categories:
- Android UI交互
......
title: TP-Link WR841N-V7路由器刷机OpenWrt配置翻墙
date: 2015-09-05 02:08:03
updated: 2015-09-05 02:08:03
permalink: 2015/09/05/TP-Link-WR841N-V7-OpenWrt-ShadowSocks
categories:
- OpenWrt
......
title: Workflows Proxy
date: 2014-12-08 08:35:03
updated: 2014-12-08 08:35:03
permalink: 2014/12/08/Workflows-Proxy
categories:
- 开源项目
......
title: 笔记-谷歌是如何做代码审查的
date: 2015-03-23 06:35:03
updated: 2015-03-23 06:35:03
permalink: 2015/03/23/[笔记]谷歌是如何做代码审查的
categories:
- 工程师技能
......
title: ActivityManagerService
date: 2015-11-26 20:49:03
updated: 2015-11-26 20:49:03
permalink: 2015/11/26/activitymanagerservice
categories:
- Android机制
......
title: Android开发周边
date: 2017-03-16 02:23:03
updated: 2017-03-16 02:23:03
categories:
- 工程师技能
tags:
......
title: Android绘制
date: 2015-10-20 00:48:03
updated: 2015-10-20 00:48:03
permalink: 2015/10/20/android-view
categories:
- Android性能与优化
......
title: Android动画
date: 2015-11-02 20:58:03
updated: 2015-11-02 20:58:03
permalink: 2015/11/02/android_animation
categories:
- Android UI交互
......
title: ART、Dalvik
date: 2015-11-01 12:23:03
updated: 2015-11-01 12:23:03
permalink: 2015/11/01/android_art_dalvik
categories:
- Android机制
......
title: Android 动态加载dex
date: 2015-12-07 00:48:03
updated: 2015-12-07 00:48:03
permalink: 2015/12/07/android_dynamic_dex
categories:
- Android机制
......
title: Android Handler Looper机制
date: 2016-03-11 14:36:03
updated: 2016-03-11 14:36:03
permalink: 2016/03/11/android_handler_looper
categories:
- Android机制
......
title: HttpURLConnection、HttpClient
date: 2015-10-31 15:12:03
updated: 2015-10-31 15:12:03
permalink: 2015/10/31/android_http
categories:
- 网络
......
title: Android Binder IPC机制
date: 2015-11-25 23:54:03
updated: 2015-11-25 23:54:03
permalink: 2015/11/25/android_multiply_process
categories:
- Android机制
......
title: Android优化
date: 2017-03-21 15:32:03
date: 2015-10-26 15:32:03
updated: 2017-03-21 15:32:03
permalink: 2015/10/26/android_optimize
categories:
- Android性能与优化
......@@ -356,7 +357,7 @@ public static Retrofit getAdapter(Context context, String baseUrl) {
---
- 文章创建时间: 2015-10-26,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/android_optimize.md)
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/android_optimize.md)
---
......
title: Android简单录音
date: 2015-10-23 11:18:03
updated: 2015-10-23 11:18:03
permalink: 2015/10/23/android_record
categories:
- Android最佳实践
......
title: Android后台调度任务与省电
date: 2016-08-15 09:07:03
updated: 2016-08-15 09:07:03
permalink: 2016/08/15/android_scheduler_and_battery
categories:
- Android性能与优化
......
title: Android中尽量不用Storage Permission
date: 2015-11-30 09:00:03
updated: 2015-11-30 09:00:03
permalink: 2015/11/30/android_storage_permission
categories:
- Android最佳实践
......
title: Android单元测试与模拟测试
date: 2016-11-30 00:40:03
date: 2016-05-15 00:40:03
updated: 2016-11-30 00:40:03
permalink: 2016/05/15/android_test
categories:
- Android测试
......@@ -574,7 +575,6 @@ class FooWraper{
> (Integration Tests)模拟用户操作,事件流测试。
```java
@RunWith(RobolectricTestRunner.class)
@Config(constants = BuildConfig.class)
public class MyActivityTest{
......@@ -639,7 +639,7 @@ public class MyActivityTest{
---
- 文章创建时间: 2016-5-15,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/android_test.md)
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/android_test.md)
---
......
title: Android中线程、进程与组件的关系
date: 2015-04-08 08:35:03
updated: 2015-04-08 08:35:03
permalink: 2015/04/08/android_thread_process_components
categories:
- Android机制
......
title: Android弱网通信探究
date: 2017-02-10 11:34:03
date: 2016-08-16 11:34:03
updated: 2017-02-10 11:34:03
permalink: 2016/08/16/android_weak_network
categories:
- 网络
......@@ -28,6 +29,6 @@ tags:
---
- 文章创建时间: 2016-08-16,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/android_weak_network.md)
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/android_weak_network.md)
---
title: 屌丝心理学 视频笔记
date: 2015-03-27 08:35:03
updated: 2015-03-27 08:35:03
permalink: 2015/03/27/cock_wire_psychology
categories:
- 生活笔记
......
title: ConstraintLayout
date: 2016-08-03 08:33:03
updated: 2016-08-03 08:33:03
permalink: 2016/08/03/constraint-layout
categories:
- Android UI交互
......
title: Dalvik
date: 2014-12-25 08:35:03
updated: 2014-12-25 08:35:03
permalink: 2014/12/25/dalvik
categories:
- Android机制
......
title: Android 切图与标注
date: 2015-11-08 22:35:03
updated: 2015-11-08 22:35:03
permalink: 2015/11/08/density_dpi
categories:
- Android UI交互
......
title: FileDownloader
date: 2015-12-23 11:18:03
updated: 2015-12-23 11:18:03
permalink: 2015/12/23/file_downloader
categories:
- 开源项目
......
title: Android GC
date: 2015-11-30 09:00:03
updated: 2015-11-30 09:00:03
permalink: 2015/11/30/gc
categories:
- Android内存
......
title: Google IO 2016
date: 2016-05-19 03:03:03
updated: 2016-05-19 03:03:03
permalink: 2016/05/19/google_io_2016
categories:
- Google Summit
......
title: gRPC
date: 2017-02-16 22:38:03
updated: 2017-02-16 22:38:03
categories:
- 网络
tags:
......
title: DexGuard、Proguard、Multi-dex
date: 2015-11-04 19:26:03
updated: 2015-11-04 19:26:03
permalink: 2015/11/04/guard_multi_dex
categories:
- Android机制
......
title: Hybrid Apps
date: 2016-01-20 20:45:03
updated: 2016-01-20 20:45:03
permalink: 2016/01/20/hybrid
categories:
- Html5
......
title: Intellij 使用说明
date: 2015-02-25 08:35:03
updated: 2015-02-25 08:35:03
permalink: 2015/02/25/intellij_readme
categories:
- 工程师技能
......
title: Java Synchronised机制
date: 2015-11-13 21:14:03
updated: 2015-11-13 21:14:03
permalink: 2015/11/13/java_synchronized
categories:
- Android机制
......
title: Android键盘面板冲突 布局闪动处理方案
date: 2015-09-01 13:35:03
updated: 2015-09-01 13:35:03
permalink: 2015/09/01/keyboard-panel-switch
categories:
- 开源项目
......
title: Kotlin
date: 2017-03-10 14:02:03
date: 2016-11-30 14:02:03
updated: 2017-03-10 14:02:03
permalink: 2016/11/30/kotlin
categories:
- 编程语言
......@@ -300,7 +301,7 @@ Java中可以通过[Lombok - @ExtensionMethod](https://github.com/mplushnikov/lo
---
- 文章创建时间: 2016-11-17,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/kotlin.md)。
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/kotlin.md)。
---
......
title: Android大项目开发
date: 2017-03-04 12:48:03
date: 2017-03-01 12:48:03
updated: 2017-03-12 12:48:03
categories:
- 架构
tags:
......@@ -100,7 +101,7 @@ tags:
---
- 文章创建时间: 2017-03-01,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/large-project-develop.md)
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/large-project-develop.md)
---
......
title: 开源协议
date: 2016-1-3 01:48:03
date: 2016-01-03 01:48:03
updated: 2016-01-03 01:48:03
permalink: 2016/1/3/license
categories:
- 工程师技能
......
title: 英语流利说 Android 架构演进
date: 2016-05-29 01:28:03
updated: 2016-05-29 01:28:03
permalink: 2016/05/29/lls_architecture
categories:
- 架构
......
title: Magic Progress Widget
date: 2015-12-13 15:45:03
updated: 2015-12-13 15:45:03
permalink: 2015/12/13/magic_progress_widget
categories:
- 开源项目
......
title: 站点与服务器维护
date: 2017-04-01 15:59:03
date: 2017-03-06 15:59:03
categories:
- 服务器
tags:
......@@ -272,7 +272,7 @@ ClientAliveCountMax 0
---
- 文章创建时间: 2017-03-06,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/maintain-website-server.md)
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/maintain-website-server.md)
---
......
title: 微信Mars与其策略
date: 2017-02-08 19:42:03
updated: 2017-02-08 19:42:03
categories:
- 网络
tags:
......
title: MessageHandler
date: 2016-01-16 17:36:03
updated: 2016-01-16 17:36:03
permalink: 2016/01/16/message_handler
categories:
- 开源项目
......
title: NDK | JNI
date: 2016-12-24 23:16:03
permalink: 2016/11/08/ndk
date: 2015-11-08 23:16:03
updated: 2016-12-24 23:16:03
permalink: 2015/11/08/ndk
categories:
- Android Native Develop
tags:
......@@ -435,7 +436,7 @@ Cinar O. – Pro Android C++ with the NDK – 2012.
---
- 文章创建时间: 2015-11-08,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/ndk.md)
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/ndk.md)
---
- [Building Your Project](http://developer.android.com/intl/zh-cn/ndk/guides/build.html)
......
title: 常见网络协议优化与区分
date: 2017-02-16 14:09:03
date: 2017-02-12 14:09:03
updated: 2017-02-16 14:09:03
categories:
- 网络
tags:
......@@ -201,7 +202,7 @@ SPDY兼容性: http://caniuse.com/#feat=spdy
---
- 文章创建时间: 2017-02-12,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/network_basic.md)
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/network_basic.md)
---
......
title: Newifi Y1 刷Openwrt 自配Shadowsocks高稳定翻墙
date: 2016-04-24 00:22:03
updated: 2016-04-24 00:22:03
permalink: 2016/04/24/newifi_openwrt
categories:
- OpenWrt
......
title: Notification最佳实践
date: 2016-10-25 15:06:03
date: 2016-01-09 15:06:03
updated: 2016-10-25 15:06:03
permalink: 2016/01/09/notification_best_practise
categories:
- Android最佳实践
......@@ -265,7 +266,7 @@ builder.setStyle(new NotificationCompat.MessagingStyle("You")
---
- 文章创建时间: 2016-1-9,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/notification_best_practise.md)
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/notification_best_practise.md)
---
......
title: 架构设计基础知识整理
date: 2016-10-25 22:41:03
date: 2016-03-09 22:41:03
updated: 2016-10-25 22:41:03
permalink: 2016/03/09/oo_architecture
categories:
- 架构
......@@ -228,7 +229,7 @@ TODO
---
- 文章创建时间: 2016-3-9,[本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/oo_architecture.md)
- [本文迭代日志](https://github.com/Jacksgong/Blog/commits/master/source/_posts/oo_architecture.md)
---
......
title: OpenWrt通过迅雷快鸟提速
date: 2016-05-29 14:30:03