summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2017-06-30 20:35:51 +0200
committerAlan Pearce2017-06-30 20:35:51 +0200
commit4df9074e0fc8db381d94fb4680a5d7dee3d096de (patch)
treef9daf4c657553dfcbe6be09331a8f62cb68118e7 /src
parent5eb982dc5b8c4853931bdfa3b216c35720dd8b98 (diff)
downloadhomestead-4df9074e0fc8db381d94fb4680a5d7dee3d096de.tar.lz
homestead-4df9074e0fc8db381d94fb4680a5d7dee3d096de.tar.zst
homestead-4df9074e0fc8db381d94fb4680a5d7dee3d096de.zip
fix: add page title to header
Diffstat (limited to 'src')
-rw-r--r--src/responders.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/responders.js b/src/responders.js
index 0bd841f..acfcaf1 100644
--- a/src/responders.js
+++ b/src/responders.js
@@ -42,7 +42,10 @@ const templates = {
 function setTitle(siteTitle, pageTitle) {
   return rheo.template(function(s) {
     return s
-      .inner("title", rheo((pageTitle ? " · " : "") + siteTitle))
+      .inner(
+        "title",
+        rheo(pageTitle ? `${pageTitle} ยท ${siteTitle}` : siteTitle)
+      )
       .inner("body header h1", rheo(siteTitle));
   });
 }