diff options
author | Doge Gui <[email protected]> | 2021-08-05 21:31:38 +0800 |
---|---|---|
committer | Doge Gui <[email protected]> | 2021-08-05 21:31:38 +0800 |
commit | e1a940a15278760e0b822cad395125f3fe77797f (patch) | |
tree | 5511be2105eb6d7219f600319a4d25496bd221c1 /layout | |
parent | b4115e3e712090eb85d22874978d0c47b226297e (diff) | |
download | chromate-e1a940a15278760e0b822cad395125f3fe77797f.tar.gz chromate-e1a940a15278760e0b822cad395125f3fe77797f.tar.bz2 chromate-e1a940a15278760e0b822cad395125f3fe77797f.zip |
Add title for non-home page
Diffstat (limited to 'layout')
-rw-r--r-- | layout/_partial/head.ejs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 64051a3..bebcf1d 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -1,5 +1,9 @@ <head> - <title><%= config.title %></title> + <% + let title = config.title; + if (!is_home()) title = page.title + ' | ' + title; + %> + <title><%= title %></title> <% if (theme.favicon) { %> <%- favicon_tag(theme.favicon) %> <% } %> |