Browse Source

make sure title in template is correct

pull/1/head
wes 7 years ago
parent
commit
841c2bda55
  1. 1
      src/scripts/post.tag
  2. 2
      src/templates/index.html

1
src/scripts/post.tag

@ -117,6 +117,7 @@ updatePost(postcontent) {
self.content = postcontent.content;
self.title = postcontent.title;
/* Do not route to this post if we're already on the same route */
if (window.location.pathname !== `/blog/posts/${self._id}`) {
self.route(`/posts/${self._id}`);
}

2
src/templates/index.html

@ -3,7 +3,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#67ADDB"/>
<title>{{ postcontent["title"] }}</title>
<title>{{ postcontent["title"] if page == "posts" else page }}</title>
</head>
<body>
<noscript>{{ postcontent['content']|safe }}</noscript>

Loading…
Cancel
Save