on master help sign in
External mentions are now marked as ^
commitcf12a6c8c4d68a96eb7d85051a304a0694a8924a authorDevine Lu Linvega <aliceffekt@gmail.com> dateThu 1 Aug 2019, 08:12 (7 years ago) parente66065b
2 files changed+3−1
links/main.css+2 scripts/hallway.js+1−1
links/main.css+2
@@ -40,6 +40,8 @@ body #hallway .entry .body { display: block;border-bottom: 1px solid #333;paddin
4040body #hallway .entry .body a { text-decoration: underline; }
4141body #hallway .entry .body .channel { display: inline-block;border-radius: 1px;font-family: 'input_mono_medium';color: #777; }
4242body #hallway .entry .body .user { display: inline-block;border-radius: 1px;font-family: 'input_mono_medium';color: #777; }
43+body #hallway .entry .body .user.local::before { content:'@';color: #777; }
44+body #hallway .entry .body .user.external::before { content:'^';color: #777; }
4345body #hallway .entry .body .tag { display: inline-block;border-radius: 1px;font-family: 'input_mono_medium';color: #777; }
4446body #hallway .entry.highlight .author { color:#555; }
4547body #hallway .entry:hover .author { color:#ccc; }
scripts/hallway.js+1−1
@@ -102,7 +102,7 @@ function Hallway (sites) {
102102
103103 this.findMention = function (found) {
104104 const mention = Object.keys(feeds).filter(user => found.indexOf(feeds[user].path) > -1)
105− return mention.length === 1 ? ` <span class='user'>@${mention[0]}</span>` : ` <span class='user'>${found}</span>`
105+ return mention.length === 1 ? ` <span class='user local'>${mention[0]}</span>` : ` <span class='user external'>${found.substr(5).split(' ')[0]}</span>`
106106 }
107107
108108 this.templateEntry = function (entry) {