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