Skip to content

Commit

Permalink
Add homepage link in #site_header. Fixes #18.
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenlillie committed Jul 9, 2019
1 parent 328dc3a commit ae0c8f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/includes/layouts/base.11ty.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ module.exports = function (data) {
</head>
<body>
<header id="site_header">
<h1>${data.site.title}</h1>
${data.page.url === '/'
? `<h1>${data.site.title}</h1>`
: `<a href="/"><h1>${data.site.title}</h1></a>`
}
</header>
${data.content}
<footer id="site_footer">
<p>&copy; ${data.site.copyright.year} by ${data.site.copyright.owner}</p>
<p><a href="/copyright/">Copyright</a> &copy; ${data.site.copyright.year} by ${data.site.copyright.owner}</p>
</footer>
</body>
</html>
Expand Down

0 comments on commit ae0c8f3

Please sign in to comment.