Skip to content

Commit 0e2981f

Browse files
Updated baseof.html template and simplified single.html template
These go hand in hand and it turns out that this simplifies things for the blog posts as well.
1 parent a70ca47 commit 0e2981f

File tree

2 files changed

+23
-29
lines changed

2 files changed

+23
-29
lines changed
Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
<!DOCTYPE html>
2-
<html>
3-
{{- partial "head.html" . -}}
4-
<body>
5-
{{- partial "header.html" . -}}
6-
<div id="content">
7-
{{- block "main" . }}{{- end }}
8-
</div>
9-
{{- partial "footer.html" . -}}
10-
</body>
2+
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
3+
4+
{{ partial "head.html" . }}
5+
6+
<body>
7+
8+
{{ partial "header.html" . }}
9+
10+
<main>
11+
{{ block "main" . }}{{ end }}
12+
</main>
13+
14+
{{ partial "footer.html" . }}
15+
16+
</body>
17+
1118
</html>
Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
1-
<!DOCTYPE html>
2-
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
1+
{{ define "main" }}
32

4-
{{ partial "head.html" . }}
3+
<article>
4+
<div>
5+
{{ .Content }}
6+
</div>
7+
</article>
58

6-
<body>
7-
8-
{{ partial "header.html" . }}
9-
10-
<main>
11-
<article>
12-
<div>
13-
{{ .Content }}
14-
</div>
15-
</article>
16-
</main>
17-
18-
{{ partial "footer.html" . }}
19-
20-
</body>
21-
22-
</html>
9+
{{ end }}

0 commit comments

Comments
 (0)