Skip to content

Commit c38da05

Browse files
authored
fix: Avoid putting <body> inside <head> (#738)
1 parent 72b1201 commit c38da05

File tree

3 files changed

+31
-27
lines changed

3 files changed

+31
-27
lines changed
Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,39 @@
11
<!DOCTYPE html>
22
<html>
3+
34
<head>
45
{{ partial "header.html" . }}
56
</head>
6-
<body>
7-
87

9-
{{ block "main" . }}
8+
<body>
9+
<div id="appTidyverseSite" {{ if not .IsHome }}class="shrinkHeader alwaysShrinkHeader" {{ end }}>
10+
<div id="main">
11+
<!-- rstudio header -->
12+
<div id="rStudioHeader">
13+
<nav class="band">
14+
<div class="innards bandContent">
15+
<div>
16+
{{ if .Site.Params.logo.image }}
17+
<a href="{{ " /" | relURL }}" class="nav-logo">
18+
<img src="{{ print " images/" .Site.Params.logo.image | relURL }}" width="{{ .Site.Params.logo.width }}"
19+
height="{{ .Site.Params.logo.height }}" alt="{{ .Site.Params.logo.alt }}">
20+
</a>
21+
{{- else -}}
22+
<a class="productName" href="{{ " /" | relLangURL }}">{{- .Site.Title -}}</a>
23+
{{ end }}
24+
</div>
25+
{{ partial "nav.html" . }}
26+
</div>
27+
</nav>
28+
</div>
29+
<main>
30+
{{ block "main" . }}
31+
</main>
1032
<!-- The part of the page that begins to differ between templates -->
11-
{{ end }}
12-
{{ partial "footer.html" . }}
33+
{{ end }}
34+
{{ partial "footer.html" . }}
35+
</div>
36+
</div>
1337
</body>
38+
1439
</html>

themes/hugo-graphite/layouts/partials/header.html

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,3 @@
33

44
<!--this loads all stylesheets, metadata tags, favicons, and jquery -->
55
{{ partial "head_includes.html" . }}
6-
7-
<body>
8-
<div id="appTidyverseSite" {{ if not .IsHome }}class="shrinkHeader alwaysShrinkHeader"{{ end }}>
9-
<div id="main">
10-
<!-- rstudio header -->
11-
<div id="rStudioHeader">
12-
<div class="band">
13-
<div class="innards bandContent">
14-
<div>
15-
{{ if .Site.Params.logo.image }}
16-
<a href="{{ "/" | relURL }}" class="nav-logo">
17-
<img src="{{ print "images/" .Site.Params.logo.image | relURL }}" width="{{ .Site.Params.logo.width }}" height="{{ .Site.Params.logo.height }}" alt="{{ .Site.Params.logo.alt }}">
18-
</a>
19-
{{- else -}}
20-
<a class="productName" href="{{ "/" | relLangURL }}">{{- .Site.Title -}}</a>
21-
{{ end }}
22-
</div>
23-
{{ partial "nav.html" . }}
24-
</div>
25-
</div>
26-
</div>

themes/hugo-graphite/static/css/main-site.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ html, body {
9595
/* to help push the footer down */
9696
height: 100%; }
9797

98-
#root, #appShinySite, #main {
98+
#root, #appTidyverseSite, #main {
9999
position: absolute;
100100
top: 0px;
101101
left: 0px;

0 commit comments

Comments
 (0)