Todos Novo

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Entrar


Todos Novo Entrar

All gists matching topic hexo

Mais recente criado
Menos recente criado
Mais recente atualizado
Menos recente atualizado
LiuShen's Avatar

LiuShen / github action构建hexo源码

0 curtidas
0 bifurcações
1 arquivos
Última atividade 1744361423
github action构建hexo源码,yml文件分享
action github hexo npm
1 name: 自动部署
2
3 on:
4 push:
5 branches:
6 - main
7
8 release:
9 types:
10 - published
LiuShen's Avatar

LiuShen / 友链friend.json生成新方式

0 curtidas
0 bifurcações
1 arquivos
Última atividade 1744361444
通过HEXO内置Generator生成,更加快捷,不需要json包
hexo json script
1 const blacklist = ["友站名称1", "友站名称2", "友站名称3"];
2 const path = "friend.json";
3
4 function genFriendJSON(locals) {
5 var friends = [];
6 var data = locals.data.link;
7 data.forEach((entry, index) => {
8 let lastIndex = 2;
9 if (index < lastIndex) {
10 const filteredLinkList = entry.link_list.filter(
Próximo Anterior

Desenvolvido por Opengist ⋅ Load: 41ms⋅

Português
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ 个人主页 ⋅ 站长博客