Simplify site title handling, automatically suffix site title to all pages
This commit is contained in:
parent
4088735c69
commit
1b8a07a5f6
8 changed files with 17 additions and 13 deletions
|
@ -5,7 +5,10 @@ $doctype 5
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="generator" content="#{packageName package} #{packageVersion package}">
|
||||
|
||||
<title>#{pageTitle pc}
|
||||
<title>
|
||||
$if hasPageTitle
|
||||
#{pageTitle pc} ~ #
|
||||
#{siteTitle $ appSettings master}
|
||||
$maybe route <- mcurrentRoute
|
||||
<link rel="canonical" href=@{route}>
|
||||
<link rel="sitemap" href=@{SitemapR}>
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<header>
|
||||
<nav .navbar .navbar-expand-lg .navbar-dark.bg-dark>
|
||||
$maybe title <- appTitle $ appSettings master
|
||||
<a .navbar-brand rel="home" href=@{HomeR}>#{title}
|
||||
<a .navbar-brand rel="home" href=@{HomeR}>#{siteTitle $ appSettings master}
|
||||
<button type="button" .navbar-toggler data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar" aria-label="Toggle navigation">
|
||||
<span .navbar-toggler-icon>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue