Browse Source

fix page titles

pull/1/head
wes 7 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) {
return function() {
if (page == "posts") {
document.title = page.slice(0,1).toUpperCase()+page.slice(1,page.length);
self.currentPage = document.title;
}
else {
if (page != "posts") {
self.currentPage = self.titles[page];
document.title = self.currentPage;
}

2
src/scripts/browse.tag

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

Loading…
Cancel
Save