mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
精简一下
This commit is contained in:
parent
759e63b643
commit
3e1fdf52d4
@ -2,7 +2,6 @@
|
||||
.flink
|
||||
- let pageContent = page.content
|
||||
if page.flink_url
|
||||
- let pageRandom = page.random
|
||||
script.
|
||||
(()=>{
|
||||
const replaceSymbol = (str) => {
|
||||
@ -20,7 +19,7 @@
|
||||
|
||||
let listResult = ""
|
||||
const lists = str[i].link_list
|
||||
if (!{pageRandom}) {
|
||||
if (!{page.random}) {
|
||||
lists.sort(() => Math.random() - 0.5)
|
||||
}
|
||||
for(let j = 0; j < lists.length; j++){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user