fixed home title

This commit is contained in:
Galen Wolfe-Pauly 2016-04-19 10:33:07 -07:00
parent 9da58cc479
commit 01ccbd6fcc
2 changed files with 8 additions and 4 deletions

2
web.md
View File

@ -2,7 +2,7 @@
container: false
layout: plan
anchor: none
title: Home - Urbit
title: Home
---
<div class="above">

View File

@ -1374,7 +1374,7 @@ module.exports = query({
name: 't',
meta: 'j'
}, recl({
displayName: "Anchor",
displayName: "Nav",
stateFromStore: function() {
return TreeStore.getNav();
},
@ -1434,12 +1434,16 @@ module.exports = query({
}
},
setTitle: function() {
var ref1, title;
var path, ref1, title;
title = $('#body h1').first().text() || this.props.name;
if ((ref1 = this.props.meta) != null ? ref1.title : void 0) {
title = this.props.meta.title;
}
return document.title = title + " - " + this.props.path;
path = this.props.path;
if (path === "") {
path = "/";
}
return document.title = title + " - " + path;
},
pullPath: function() {
var l, path;