on master help sign in
cleanup empty
f360a86DYM
links/main.css+1−1
@@ -62,7 +62,7 @@ body #portal #icon { display: block;width: 30px;height: 30px;background-image: u
62body #portal ul { columns:3; }
62body #portal ul { columns:3; }
63body #portal ul li { display:block; padding-left:5px; text-overflow: ellipsis; text-transform: lowercase;}
63body #portal ul li { display:block; padding-left:5px; text-overflow: ellipsis; text-transform: lowercase;}
64body #portal ul li:before { content: attr(id) ")"; }
64body #portal ul li:before { content: attr(id) ")"; }
65−body #portal ul li:not([data-type=''])::after { content:"<" attr(data-type) ">"; color:#555; }
65+body #portal ul li[data-type]::after { content:"<" attr(data-type) ">"; color:#555; }
66body #portal ul li a { line-height: 20px; padding:0px 5px; text-decoration: none;}
66body #portal ul li a { line-height: 20px; padding:0px 5px; text-decoration: none;}
67body #portal ul li a:visited { color:#ccc; text-decoration: none;}
67body #portal ul li a:visited { color:#ccc; text-decoration: none;}
68body #portal ul li a:hover { text-decoration: underline; }
68body #portal ul li a:hover { text-decoration: underline; }
scripts/portal.js+1−1
@@ -18,7 +18,7 @@ function Portal (sites) {
18 function _directory (sites) {
18 function _directory (sites) {
19 return `
19 return `
20 <ul>${sites.reduce( (acc, site, id) =>
20 <ul>${sites.reduce( (acc, site, id) =>
21− `${acc}<li data-type='${site.type || ''}' id='${id}'><a href='${site.url}'>${_name(site)}</a></li>`
21+ `${acc}<li ${site.type ? `data-type="${site.type}"` : ''} id='${id}'><a href='${site.url}'>${_name(site)}</a></li>`
22 , '')}</ul>\n${_readme()}${_buttons()}`
22 , '')}</ul>\n${_readme()}${_buttons()}`
23 }
23 }
24
24