Skip to content

Commit 3b5725d

Browse files
committed
Add z.ai url
1 parent f7c4e75 commit 3b5725d

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

bin/data.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import fs from 'fs'
55
import dayjs from 'dayjs'
66
import j5 from 'json5'
77
import { wikiLinks } from './wiki-links.js'
8+
import { title } from 'process'
89

910
config()
1011

@@ -255,7 +256,9 @@ export default {
255256
},
256257
{
257258
url: 'https://z.ai/subscribe?ic=GJWCMU2DD9',
258-
title: 'GLM Coding Plan'
259+
urlCn: 'https://www.bigmodel.cn/invite?icode=YuNwJkc%2FJ3UMT3CjNHAY933uFJ1nZ0jLLgipQkYjpcA%3D',
260+
title: 'GLM 5 Global',
261+
titleCn: 'GLM 5 中国版'
259262
},
260263
{
261264
url: 'https://github.com/electerm/electerm-web',
@@ -312,7 +315,6 @@ export default {
312315
{
313316
title: 'Simple games for kids',
314317
url: 'https://g.html5beta.com'
315-
},
316-
318+
}
317319
].concat(wikiLinks)
318320
}

src/views/parts/container.pug

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@
3131
.pd1y
3232
each val, i in links
3333
p
34+
// Show main link
3435
a(href=val.url, rel='noreferrer', target='_blank', title=val.title)
3536
if val.image
3637
img(src=val.image, alt=val.title)
3738
else
3839
span ✴ #{val.title}
40+
// Show special CN link if present, with clear separation
41+
if val.urlCn && val.titleCn
42+
span
43+
a.mg1l(href=val.urlCn, rel='noreferrer', target='_blank', title=val.titleCn)
44+
span / #{val.titleCn}
3945

4046
.pd2y
4147
h2 Star History

0 commit comments

Comments
 (0)