Skip to content

Commit

Permalink
404 layout: fix HTML, avoid nested main
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored and geriom committed Aug 2, 2022
1 parent 59df0c5 commit 5d31b24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
14 changes: 6 additions & 8 deletions assets/scss/_main-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@

.td-main {
flex-grow: 1;
}

main {
@include media-breakpoint-up(md) {
padding-top: 5.5rem;
}


padding-bottom: 2rem;
}
.td-404 main,
.td-main main {
padding-top: 1.5rem;
padding-bottom: 2rem;
@include media-breakpoint-up(md) { padding-top: 5.5rem; }
}
14 changes: 6 additions & 8 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{{ define "main"}}
<main id="main">
<div>
<h1 id="title">Not found</h1>
<p>Oops! This page doesn't exist. Try going back to our <a href="{{ "" | relURL }}">home page</a>.</p>
</div>
</main>
{{ end }}
{{ define "main" -}}
<div class="td-content">
<h1>Not found</h1>
<p>Oops! This page doesn't exist. Try going back to the <a href="{{ "" | relURL }}">home page</a>.</p>
</div>
{{- end }}

0 comments on commit 5d31b24

Please sign in to comment.