font
This commit is contained in:
parent
7442e12d9d
commit
603fa7b07f
|
@ -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) {
|
||||
|
|
|
@ -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 + '"> </p>';
|
||||
el += '<p class="username" ff="title" type="text" id="name"> </p>';
|
||||
el += '<p class="bio" type="text" id="bio"> </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>';
|
||||
|
|
|
@ -53,3 +53,6 @@ table:not([class])
|
|||
trans()
|
||||
&:hover
|
||||
background: var(--block)
|
||||
|
||||
*[ff=title]
|
||||
font-family: $ff-logo
|
|
@ -75,7 +75,6 @@
|
|||
font-weight: 900
|
||||
color: inherit
|
||||
line-height: 1.2
|
||||
font-family: $ff-logo
|
||||
display: block
|
||||
position: relative
|
||||
.main
|
||||
|
|
Loading…
Reference in New Issue