Skip to content

Commit a3d0362

Browse files
committed
Refactor HTML structure for improved readability and consistency
Signed-off-by: Lee Calcote <[email protected]>
1 parent f070f80 commit a3d0362

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

layouts/docs/list.html

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
{{ define "main" }}
22
<div class="td-content">
3-
<h1>{{ .Title }}</h1>
4-
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
5-
<header class="article-meta{{ if or .Params.categories .Params.tags }} article-meta-bg{{ end }}">
6-
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
7-
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
8-
{{ partial "reading-time.html" . -}}
9-
{{ end -}}
10-
</header>
11-
{{ with .Params.plan }}
12-
{{ partial "plan-info.html" (dict "plan" .) }}
13-
{{ end }}
14-
{{ .Content }}
15-
{{ partial "section-index.html" . -}}
3+
<h1>{{ .Title }}</h1>
4+
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
5+
6+
<header class="article-meta{{ if or .Params.categories .Params.tags }} article-meta-bg{{ end }}">
7+
{{ partial "taxonomy_terms_article_wrapper.html" . -}}
8+
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
9+
{{ partial "reading-time.html" . -}}
10+
{{ end -}}
11+
</header>
12+
13+
{{ with .Params.plan }}
14+
{{ partial "plan-info.html" (dict "plan" .) }}
15+
{{ end }}
16+
17+
{{ .Content }}
18+
{{ partial "section-index.html" . -}}
1619

17-
{{ if (.Site.Config.Services.Disqus.Shortname) -}}
18-
<br />
19-
{{- partial "disqus-comment.html" . -}}
20-
{{ end -}}
21-
{{ partial "video-section-related.html" . -}}
22-
{{ partial "pager.html" . }}
23-
{{ partial "page-meta-lastmod.html" . -}}
24-
{{ partial "recent-discussions.html" . -}}
20+
{{ if (.Site.Config.Services.Disqus.Shortname) -}}
21+
<br />
22+
{{- partial "disqus-comment.html" . -}}
23+
{{ end -}}
24+
25+
{{ partial "video-section-related.html" . -}}
26+
{{ partial "pager.html" . }}
27+
{{ partial "page-meta-lastmod.html" . -}}
28+
{{ partial "recent-discussions.html" . -}}
2529
</div>
2630
{{ end -}}

0 commit comments

Comments
 (0)