diff options
author | Patrice Chalin <pchalin@gmail.com> | 2022-07-29 00:00:06 +0300 |
---|---|---|
committer | Geri Ochoa <gerino@protonmail.com> | 2022-08-02 17:47:07 +0300 |
commit | 33b2028be964441a5efa801de482ba9a08ec8119 (patch) | |
tree | e25cd0dd58049492e7bd5d9862be631cf2af63d9 | |
parent | 59df0c5888c8309e6abfb0fc3254cd82f5ec6d1d (diff) |
404 layout: fix HTML, avoid nested main
-rw-r--r-- | assets/scss/_main-container.scss | 14 | ||||
-rw-r--r-- | layouts/404.html | 14 |
2 files changed, 12 insertions, 16 deletions
diff --git a/assets/scss/_main-container.scss b/assets/scss/_main-container.scss index bd02071..4720773 100644 --- a/assets/scss/_main-container.scss +++ b/assets/scss/_main-container.scss @@ -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; } } diff --git a/layouts/404.html b/layouts/404.html index 3296746..d32828c 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -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 }} |