Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Chalin <pchalin@gmail.com>2022-07-29 00:00:06 +0300
committerGeri Ochoa <gerino@protonmail.com>2022-08-02 17:47:07 +0300
commit33b2028be964441a5efa801de482ba9a08ec8119 (patch)
treee25cd0dd58049492e7bd5d9862be631cf2af63d9
parent59df0c5888c8309e6abfb0fc3254cd82f5ec6d1d (diff)
404 layout: fix HTML, avoid nested main
-rw-r--r--assets/scss/_main-container.scss14
-rw-r--r--layouts/404.html14
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 }}