Browse Source

fix page titles

pull/1/head
wes 8 years ago
parent
commit
6e237b5546
  1. 6
      src/scripts/app.tag
  2. 2
      src/scripts/browse.tag

6
src/scripts/app.tag

@ -178,11 +178,7 @@ self.titles = {
function activate(page) { function activate(page) {
return function() { return function() {
if (page == "posts") { if (page != "posts") {
document.title = page.slice(0,1).toUpperCase()+page.slice(1,page.length);
self.currentPage = document.title;
}
else {
self.currentPage = self.titles[page]; self.currentPage = self.titles[page];
document.title = self.currentPage; document.title = self.currentPage;
} }

2
src/scripts/browse.tag

@ -67,7 +67,7 @@
href={"/blog/posts/"+result[1].id} href={"/blog/posts/"+result[1].id}
onclick={openPost(result[1].id)} onclick={openPost(result[1].id)}
> >
Read More More <i class="fa fa-ellipsis-h" aria-hidden="true"></i>
</a> </a>
</div> </div>
</div> </div>

Loading…
Cancel
Save