This commit is contained in:
xaoxuu 2022-10-15 00:28:26 +08:00
parent 7442e12d9d
commit 603fa7b07f
4 changed files with 9 additions and 7 deletions

View File

@ -6,7 +6,7 @@ if (page.layout === 'wiki' && page.wiki) {
function layoutTitle(main, url, sub) {
var el = '';
el += '<a class="title" href="' + url_for(url || "/") + '">';
el += '<div class="main">' + main + '</div>';
el += '<div class="main" ff="title">' + main + '</div>';
if (sub) {
let arr = sub.split('|');
if (arr.length > 1) {

View File

@ -3,17 +3,17 @@ var btns = [];
btns.push({
key: 'followers',
desc: 'followers',
href: '?tab=followers'
tab: 'followers'
});
btns.push({
key: 'following',
desc: 'following',
href: '?tab=following'
tab: 'following'
});
btns.push({
key: 'public_repos',
desc: 'repos',
href: '?tab=repositories'
tab: 'repositories'
});
function layoutDiv() {
@ -35,12 +35,12 @@ function layoutDiv() {
el += '<div class="avatar" ><img no-lazy type="img" id="avatar_url" src="' + config.avatar + '"></div>';
}
// username
el += '<p class="username" type="text" id="name" href="https://github.com/' + item.username + '">&nbsp;</p>';
el += '<p class="username" ff="title" type="text" id="name">&nbsp;</p>';
el += '<p class="bio" type="text" id="bio">&nbsp;</p>';
el += '<div class="buttons">';
btns.forEach((btn, i) => {
el += '<a class="btn" href="https://github.com/' + item.username + '' + btn.href + '">';
el += '<a class="btn" href="https://github.com/' + item.username + '?tab=' + btn.tab + '">';
el += '<span class="title" type="text" id="' + btn.key + '">0</span>';
el += '<span class="desc">' + btn.desc + '</span>';
el += '</a>';

View File

@ -53,3 +53,6 @@ table:not([class])
trans()
&:hover
background: var(--block)
*[ff=title]
font-family: $ff-logo

View File

@ -75,7 +75,6 @@
font-weight: 900
color: inherit
line-height: 1.2
font-family: $ff-logo
display: block
position: relative
.main