Skip to content

Commit d05c1e1

Browse files
Fix missing secondary sidebars on SPECs pages (#843)
* Remove article-content wrapper * Remove another one * Fix mismatched header tag
1 parent d3067a1 commit d05c1e1

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

layouts/partials/specs/project_meta.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@
1212
{{- $card := dict "body" $projectMetaBody -}}
1313
{{- partial "_elements/card.html" (dict "card" $card) -}}
1414

15-
<div class="article-content">
16-
<h2>Endorsed SPECs</h1>
17-
{{- $specs := where $.Site.Pages "Section" "specs" -}}
18-
<ul class="endorsed-specs-list">
19-
{{- range ($specs.ByParam "number") -}}
20-
{{- if not (in (lower .Title) "meta") -}}
21-
{{- if in ( index .Params "endorsed-by" ) $root.File.BaseFileName }}
22-
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
23-
{{- end -}}
15+
<h2>Endorsed SPECs</h2>
16+
{{- $specs := where $.Site.Pages "Section" "specs" -}}
17+
<ul class="endorsed-specs-list">
18+
{{- range ($specs.ByParam "number") -}}
19+
{{- if not (in (lower .Title) "meta") -}}
20+
{{- if in ( index .Params "endorsed-by" ) $root.File.BaseFileName }}
21+
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
2422
{{- end -}}
2523
{{- end -}}
26-
</ul>
27-
</div>
24+
{{- end -}}
25+
</ul>

layouts/specs/single.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ <h5 class="subtitle">{{ .Params.Subtitle }}</h5>
1010
{{ . }}
1111
{{- end }}
1212

13-
<div class="article-content">
14-
{{ .Content }}
15-
{{ partial "specs/comments.html" . }}
16-
</div>
13+
{{ .Content }}
14+
{{ partial "specs/comments.html" . }}
1715
</div>
1816
{{ partial "shortcuts.html" . }}
1917
</section>

0 commit comments

Comments
 (0)