From 0205e9da04642f882033da27869541d7aceeac5b Mon Sep 17 00:00:00 2001 From: wes Date: Sat, 29 Jul 2017 15:03:13 -0400 Subject: [PATCH] update title dynamically --- src/scripts/app.tag | 3 +++ src/scripts/raw.tag | 2 +- src/scripts/social.tag | 23 ++++++++++++++++------- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/scripts/app.tag b/src/scripts/app.tag index af85a47..c9fe797 100644 --- a/src/scripts/app.tag +++ b/src/scripts/app.tag @@ -115,6 +115,9 @@ menuOff(ev) { function activate(page) { return function() { + if (page !== "posts") { + document.title = `Wes Kerfoot ${page.slice(0,1).toUpperCase()}${page.slice(1,page.length)}`; + } console.log(`activating ${page}`); self.active = lens.setActive(self.active, page); self.update(); diff --git a/src/scripts/raw.tag b/src/scripts/raw.tag index f8a64dc..f402c06 100644 --- a/src/scripts/raw.tag +++ b/src/scripts/raw.tag @@ -1,5 +1,5 @@ - +