Skip to content

Commit 25bb74e

Browse files
authored
fix: correct nunjucks templates and generate valid HTML (#72)
There are a number of invalid HTML Lines in the nunjucks templates. This corrects them and then regenerates the HTML. (I temporarily used a nunjucks/prettier linter to achieve this, but it's far too early to install it.)
1 parent e0680f8 commit 25bb74e

11 files changed

Lines changed: 14 additions & 6 deletions

File tree

docs/example/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ <h1>Register for this imaginary service</h1>
209209
/>
210210
</div>
211211
</div>
212+
</div>
212213

213214
</fieldset>
214215

docs/forms/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ <h1>Forms</h1>
201201
/>
202202
</div>
203203
</div>
204+
</div>
204205

205206
</fieldset>
206207

docs/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ <h6>h6, .zeta</h6>
218218
<span class="visually-hidden">Search</span>
219219
</button>
220220
</div>
221-
</form>
222221

223222
<div class="mb-3">
224223
<label class="form-label" for="select-num"
@@ -821,7 +820,7 @@ <h2>Forms</h2>
821820
<form>
822821
<div class="form-group">
823822
<label class="form-label" for="exampleInputEmailAgain"
824-
>Email address <span class="field-required">(Required)</label
823+
>Email address <span class="field-required">(Required)</span></label
825824
>
826825
<input
827826
type="email"

docs/otis/module-added/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ <h1>
132132
View archived modules
133133
</a>
134134
</li>
135+
</ul>
135136
</div>
136137
</header>
137138

@@ -213,6 +214,7 @@ <h1>
213214
</div>
214215

215216

217+
216218
</main>
217219

218220
<footer class="py-4 mt-5"><hr><small class="d-block mb-0"><a href="https://talis.com/accessibility" rel="noreferrer">Accessibility</a></small><small class="d-block mb-0">Copyright © Talis Education Limited, all rights reserved</small></footer>

docs/otis/page-layout/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ <h1>
122122
View archived modules
123123
</a>
124124
</li>
125+
</ul>
125126
</div>
126127
</header>
127128

@@ -203,6 +204,7 @@ <h1>
203204
</div>
204205

205206

207+
206208
</main>
207209

208210
<footer class="py-4 mt-5"><hr><small class="d-block mb-0"><a href="https://talis.com/accessibility" rel="noreferrer">Accessibility</a></small><small class="d-block mb-0">Copyright © Talis Education Limited, all rights reserved</small></footer>

src/docs/_includes/forms-2.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<form>
33
<div class="form-group">
44
<label class="form-label" for="exampleInputEmailAgain"
5-
>Email address <span class="field-required">(Required)</label
5+
>Email address <span class="field-required">(Required)</span></label
66
>
77
<input
88
type="email"

src/docs/_includes/forms.njk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ I'm a textarea</textarea
3232
<span class="visually-hidden">Search</span>
3333
</button>
3434
</div>
35-
</form>
3635

3736
<div class="mb-3">
3837
<label class="form-label" for="select-num"

src/docs/example.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ title: Register for this imaginary service
111111
/>
112112
</div>
113113
</div>
114+
</div>
114115

115116
</fieldset>
116117

src/docs/forms.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ title: Forms
9898
/>
9999
</div>
100100
</div>
101+
</div>
101102

102103
</fieldset>
103104

src/docs/otis/module-added.njk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ title: Page Layout Template
3434
View archived modules
3535
</a>
3636
</li>
37+
</ul>
3738
</div>
3839
</header>
3940

@@ -147,4 +148,4 @@ title: Page Layout Template
147148
<a class="page-link" href="#">Next</a>
148149
</li>
149150
</ul>
150-
</nav> #}
151+
</nav> #}

0 commit comments

Comments
 (0)