Skip to content

Commit c816c30

Browse files
committed
Increase width of index pages
Also pull descriptions for topic page buttons on tag pages into the button to improve alignment and readability.
1 parent b9454e8 commit c816c30

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

layouts/_default/list.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ <h4 class="list-title">Featured Tutorials</h3>
120120
</div>
121121
</div>
122122
<div class="row justify-content-center topic-container flex-shrink-1">
123-
<div class="col-md-12 col-lg-10 col-xl-8">
123+
<div class="docs-content">
124124
<article>
125125
<h1 class="text-center">{{ if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}</h1>
126126
<div>{{ .Content }}</div>
@@ -150,10 +150,10 @@ <h1 class="text-center">{{ if eq .CurrentSection .FirstSection }}{{ .Section | h
150150
<path d="M1.06199 5.729L0.291992 4.938L4.99999 0.229004L9.70799 4.938L8.93799 5.729L4.99999 1.792L1.06199 5.729Z" fill="currentColor"/>
151151
</svg>
152152
</div>
153-
</a>
154-
{{ if .Description }}
153+
{{ if .Description }}
155154
<div class="button-description">{{ .Description }}</div>
156-
{{ end }}
155+
{{ end }}
156+
</a>
157157
{{ end }}
158158
{{ template "_internal/pagination.html" . }}
159159
{{ end }}

layouts/article/list-images.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ <h5 class="card-title mt-0">
5252
<path d="M1.06199 5.729L0.291992 4.938L4.99999 0.229004L9.70799 4.938L8.93799 5.729L4.99999 1.792L1.06199 5.729Z" fill="currentColor"/>
5353
</svg>
5454
</div>
55-
</a>
56-
{{ if .Description }}
55+
{{ if .Description }}
5756
<div class="button-description">{{ .Description }}</div>
57+
{{ end }}
58+
</a>
5859
{{ end }}
59-
{{ end }}
6060
{{ template "_internal/pagination.html" . }}
6161
{{ end }}
6262
</div>

0 commit comments

Comments
 (0)