on master help sign in
External mentions are now marked as ^
cf12a6cDevine Lu Linvega
links/main.css+2
@@ -40,6 +40,8 @@ body #hallway .entry .body { display: block;border-bottom: 1px solid #333;paddin
40body #hallway .entry .body a { text-decoration: underline; }
40body #hallway .entry .body a { text-decoration: underline; }
41body #hallway .entry .body .channel { display: inline-block;border-radius: 1px;font-family: 'input_mono_medium';color: #777; }
41body #hallway .entry .body .channel { display: inline-block;border-radius: 1px;font-family: 'input_mono_medium';color: #777; }
42body #hallway .entry .body .user { display: inline-block;border-radius: 1px;font-family: 'input_mono_medium';color: #777; }
42body #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; }
43body #hallway .entry .body .tag { display: inline-block;border-radius: 1px;font-family: 'input_mono_medium';color: #777; }
45body #hallway .entry .body .tag { display: inline-block;border-radius: 1px;font-family: 'input_mono_medium';color: #777; }
44body #hallway .entry.highlight .author { color:#555; }
46body #hallway .entry.highlight .author { color:#555; }
45body #hallway .entry:hover .author { color:#ccc; }
47body #hallway .entry:hover .author { color:#ccc; }
scripts/hallway.js+1−1
@@ -102,7 +102,7 @@ function Hallway (sites) {
102
102
103 this.findMention = function (found) {
103 this.findMention = function (found) {
104 const mention = Object.keys(feeds).filter(user => found.indexOf(feeds[user].path) > -1)
104 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>`
106 }
106 }
107
107
108 this.templateEntry = function (entry) {
108 this.templateEntry = function (entry) {