|
1 | 1 | {{ define "main" }} |
2 | | - <div class="d-flex container-fluid guides"> |
3 | | - <div class="guides-page"> |
4 | | - <div class=""> |
5 | | - <div class="guides-header"> |
6 | | - <a href="/guides/">Back to guides</a> |
7 | | - </div> |
8 | | - <div class="guides__label"> |
9 | | - {{ with .Params.tags }} |
10 | | - {{ if (in (printf "%T" .) "[]string") }} |
11 | | - {{ range $index, $tag := . }} |
12 | | - {{ $tag }} |
| 2 | + <div class="d-flex container-fluid guides gap-6"> |
| 3 | + <div class="d-flex guides-page"> |
| 4 | + <div class="guides__container"> |
| 5 | + <div class="guides__header"> |
| 6 | + <div class="guides__back"><a href="/guides/">Back to guides</a></div> |
| 7 | + <div class="guides__label"> |
| 8 | + {{ with .Params.tags }} |
| 9 | + {{ if (in (printf "%T" .) "[]string") }} |
| 10 | + {{ range $index, $tag := . }} |
| 11 | + {{ $tag }} |
| 12 | + {{ end }} |
| 13 | + {{ else }} |
| 14 | + <!-- Optional: Handle the case where tags is not an array --> |
| 15 | + <span>No tags available or invalid format</span> |
| 16 | + {{ end }} |
| 17 | + {{ else }} |
| 18 | + <span>No tags available.</span> |
13 | 19 | {{ end }} |
14 | | - {{ else }} |
15 | | - <!-- Optional: Handle the case where tags is not an array --> |
16 | | - <span>No tags available or invalid format</span> |
17 | | - {{ end }} |
18 | | - {{ else }} |
19 | | - <span>No tags available.</span> |
20 | | - {{ end }} |
| 20 | + </div> |
| 21 | + <h1 class="guides__title"> |
| 22 | + {{ if .Params.displayTitle}} |
| 23 | + {{.Params.displayTitle}} |
| 24 | + {{else}} |
| 25 | + {{.Title}} |
| 26 | + {{end}} |
| 27 | + </h1> |
21 | 28 | </div> |
22 | | - |
23 | | - </div> |
24 | | - <h1 class="guides__title"> |
25 | | - {{ if .Params.displayTitle}} |
26 | | - {{.Params.displayTitle}} |
27 | | - {{else}} |
28 | | - {{.Title}} |
29 | | - {{end}} |
30 | | - </h1> |
31 | 29 | <div class="guides-toc-mobile mb-5 pt-3"> |
32 | 30 | <div class="guides-toc-header mb-3 pt-3">On this page</div> |
33 | 31 | {{ .Page.TableOfContents }} |
34 | 32 | </div> |
35 | | - {{ if or (.Description) (.Params.displayDescription) }} |
| 33 | + |
36 | 34 | <p class="guides__description"> |
| 35 | + {{ if or (.Description) (.Params.displayDescription) }} |
37 | 36 | {{ if .Params.displayDescription}} |
38 | 37 | {{.Params.displayDescription}} |
39 | 38 | {{else}} |
40 | 39 | {{.Description}} |
41 | 40 | {{end}} |
| 41 | + {{ end }} |
42 | 42 | </p> |
43 | | - {{ end }} |
| 43 | + |
44 | 44 | <div class="write-info"> |
45 | 45 | <img src="{{ .Params.avatar | relURL }}" alt="{{ .Params.author }}" width="24" height="24" /> |
46 | 46 | <span>{{ .Params.author }} </span> |
47 | 47 |
|
48 | 48 | </div> |
| 49 | + |
49 | 50 | <span class="markdown">{{.Content}}</span> |
50 | 51 | </div> |
51 | | - </div> |
| 52 | + |
52 | 53 |
|
53 | 54 | <aside class="guides-toc mb-3"> |
54 | 55 | <div id="tocMenu"> |
|
0 commit comments