on master help sign in
unified type output
d879474DYM
links/main.css+1−2
@@ -61,8 +61,7 @@ body #hallway ul li:last-child { border-bottom:0px; }
61body #portal #icon { display: block;width: 30px;height: 30px;background-image: url(../icon.white.svg);background-size: cover;background-repeat: no-repeat;position: absolute;bottom: 15px;right:15px;background-position: center;padding:0px }
61body #portal #icon { display: block;width: 30px;height: 30px;background-image: url(../icon.white.svg);background-size: cover;background-repeat: no-repeat;position: absolute;bottom: 15px;right:15px;background-position: center;padding:0px }
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;}
64−body #portal ul li.wiki::after { content:"<wiki>"; color:#555; }
64+body #portal ul li:not([data-type=''])::after { content:"<" attr(data-type) ">"; color:#555; }
65−body #portal ul li.blog::after { content:"<blog>"; color:#555; }
66body #portal ul li a { line-height: 20px; padding:0px 5px; text-decoration: none;}
65body #portal ul li a { line-height: 20px; padding:0px 5px; text-decoration: none;}
67body #portal ul li a:visited { color:#ccc; text-decoration: none;}
66body #portal ul li a:visited { color:#ccc; text-decoration: none;}
68body #portal ul li a:hover { text-decoration: underline; }
67body #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 class='${site.type || ''}' id='${id}'><span class='counter'>${id})</span><a href='${site.url}'>${_name(site)}</a></li>`
21+ `${acc}<li data-type='${site.type || ''}' id='${id}'><span class='counter'>${id})</span><a href='${site.url}'>${_name(site)}</a></li>`
22 , '')}</ul>\n${_readme()}${_buttons()}`
22 , '')}</ul>\n${_readme()}${_buttons()}`
23 }
23 }
24
24