on master help sign in
Expanded
commit3a5d267695e97c9c94f403bb698a0e10e468c259 authorDevine Lu Linvega <aliceffekt@gmail.com> dateWed 3 Jul 2019, 19:59 (7 years ago) parent1414bc4
2 files changed+3−3
links/main.css+1−2 scripts/hallway.js+2−1
links/main.css+1−2
@@ -19,10 +19,9 @@ body #hallway #sidebar > * li { text-transform: lowercase; }
1919body #hallway #sidebar > * li span.right { color:#555; float:right; }
2020body #hallway #sidebar > * li span.right:after { content: " msgs"; }
2121
22−body #hallway .entry { line-height: 16px; display: block; position: relative; padding-left:140px; }
22+body #hallway .entry { line-height: 16px; display: block; position: relative; padding-left:100px; }
2323body #hallway .entry .date { color: #555;display: block;float:right; margin-left:20px; padding-bottom: 16px;}
2424body #hallway .entry .author { font-family: 'input_mono_medium'; position: absolute;left: 0px; }
25−body #hallway .entry .author:after { content:":"; }
2625body #hallway .entry .body { display: block;border-bottom: 1px solid #333;padding-bottom: 10px;margin-bottom: 10px; }
2726body #hallway .entry .body a { text-decoration: underline; }
2827body #hallway .entry .body .channel { display: inline-block;border-radius: 1px;font-family: 'input_mono_medium';color: #777; }
scripts/hallway.js+2−1
@@ -92,8 +92,9 @@ function Hallway (sites) {
9292
9393 const filter = window.location.hash.substr(1).replace(/\+/g, ' ').toLowerCase()
9494 const highlight = filter === entry.author.toLowerCase()
95+ const origin = feeds[entry.author].path
9596
96− return `<li class='entry ${highlight ? 'highlight' : ''}'><span class='date'>${timeAgo(Date.parse(entry.date))}</span> <a class='author' href=''>${entry.author}</a> <span class='body'>${entry.body}</span></li>`
97+ return `<li class='entry ${highlight ? 'highlight' : ''}'><span class='date'>${timeAgo(Date.parse(entry.date))}</span> <a class='author' href='${origin}' target='_blank'>${entry.author}</a> <span class='body'>${entry.body}</span></li>`
9798 }
9899
99100 // Feeds