mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 05:24:10 +03:00
Sort search results in ascending order
This commit is contained in:
1 parent
f3f68db3d8
commit
d07c72072a
2 files changed
+1
-6
No files matched your search
@@ -19,11 +19,6 @@
|
||||
<i class="icon icon-github md:mr-2"></i>
|
||||
<span class="hidden md:inline text-sm">Github</span>
|
||||
</button>
|
||||
<!-- <button type="button"-->
|
||||
<!-- class="fadeIn inline-flex h-8 items-center rounded-full bg-slate-200 dark:bg-gray-900 text-slate-700 dark:text-gray-300 ml-1 lg:ml-4 px-2 md:px-3 py-2 md:hover:bg-slate-300 md:dark:hover:bg-slate-800">-->
|
||||
<!-- <i class="icon icon-github md:mr-2"></i>-->
|
||||
<!-- <span class="hidden md:inline text-sm">Edit</span>-->
|
||||
<!-- </button>-->
|
||||
</a>
|
||||
<button id="darkMode" class="fadeIn inline-flex items-center justify-center flex-shrink-0 h-8 w-8 rounded-full text-gray-900 ml-1 lg:ml-4 dark:text-gray-300 bg-gray-200 dark:bg-gray-900">
|
||||
<i class="icon icon-light text-gray-600 dark:text-gray-300 dark:hover:text-white"></i>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
hexo.extend.generator.register('json', function (locals) {
|
||||
|
||||
let searchName = "search.json";
|
||||
let datas = locals.posts.sort('-date') || [];
|
||||
let datas = locals.posts.sort('date') || [];
|
||||
|
||||
let res = []
|
||||
let index = 0
|
||||
|
||||
Reference in new issue
Block a user