1
- <!-- Page banners -->
2
- {{ if ( eq (string .context.Site.Params.vendor.config.version) "1" )}}
3
- {{ partial "banners/banner.html" .context }}
4
- {{ else if and ( ne (string .context.Page.Params.banner.type) "tiered-feature" ) ( ne (string .context.Page.Params.banner.type) "observability-suite" )}}
5
- {{ partial "banners/banner.html" .context }}
6
- {{ end }}
7
1
8
- <!-- Tier-gated features -->
9
- {{ if eq (string .Site.Params.vendor.config.version) "1"}}
10
- {{ partial "tiered-features/banner.html" .context }}
11
- {{ end }}
12
-
13
- <!-- If the feature is part of the Observability Suite -->
14
- {{ if eq (string .Site.Params.vendor.config.version) "1"}}
15
- {{ partial "observability-suite/banner.html" .context }}
16
- {{ end }}
17
2
18
3
<!-- If the feature is in beta -->
19
4
{{ partial "beta-flag/banner.html" .context }}
20
5
21
- {{ if ne .context.Params.editPage false }}
22
- {{ partial "editpagebutton.html" .context }}
23
- {{ end }}
6
+ < div class ="flex justify-end mr-4 ">
7
+ <!-- Add a Button to open the Markdown version of this page (Upsun only) -->
8
+ {{ if and ( eq .context.Site.Params.vendor.config.version 2 ) ( ne .context.Page.RelPermalink "/" ) }}
9
+ < div class ="hidden md:block mb-6 mr-2 text-right ">
10
+ < a href ="{{ if eq .context.Page.RelPermalink "/" }}/index.md{{ else }}{{ .context.Page.RelPermalink | replaceRE ".html" ".md" }}{{ end }}"
11
+ class="print:hidden font-semibold bg-skye text-white hover:bg-skye-dark focus:bg-skye-dark px-4 py-2 font-['Space_Grotesk'] text-xs rounded-full inline-flex items-center gap-2"
12
+ title="Open this page in a markdown format. This format is easier for AI and other tools to read."
13
+ target="_blank">
14
+ View in markdown
15
+ </ a >
16
+ </ div >
17
+ {{ end }}
18
+
19
+ <!-- Edit page button link -->
20
+ {{ if ne .context.Params.editPage false }}
21
+ {{ partial "editpagebutton.html" .context }}
22
+ {{ end }}
23
+ </ div >
24
24
25
25
<!-- Page title -->
26
26
{{ if ne .context.Params.showTitle false }}
27
27
< h1 class ="font-black text-2xl mb-8 xl:text-4xl "> {{ .context.Title | .context.RenderString }}</ h1 >
28
28
{{ end }}
29
29
30
- < div class ="grid md:grid-cols-80-20 md:gap-4 print:block ">
30
+ < div class ="grid md:grid-cols-[minmax(0,1fr),270px] md:gap-4 md:pr -4 print:block ">
31
31
32
- < div class ="print:hidden max-w-[92vw] md:max-w-none md:order-2 md:top-24 md:sticky md:max-h-fullv md:overflow-y-auto border-t border-stone ">
32
+ < div class ="print:hidden max-w-[92vw] md:max-w-none md:order-2 md:top-24 md:sticky md:h-[calc(100vh-6rem)] md:overflow-y-auto border-t border-stone ">
33
33
<!-- Table of contents -->
34
34
{{ if and (ne .context.Params.toc false) (ne .context.TableOfContents "< nav id =\ "TableOfContents\"> </ nav > ") }}
35
- < div class ="border border-stone border-t-0 px-6 pt-1 pb-4 mb-8 md:mb-0 text-sm [&_a]:text-skye-dark hover:[&_a]:underline focus:[&_a]:underline [&_ul_ul]:pl-4 ">
35
+ < div class ="border border-stone border-t-0 px-6 pt-1 pb-4 mb-8 md:mb-0 text-sm [&_a]:text-skye-dark hover:[&_a]:underline focus:[&_a]:underline [&_ul_ul]:pl-4 [&_nav_ul>li]:mb-2 [&_nav_ul_ul>li]:mt-2 ">
36
36
37
37
{{ if not .context.Page.IsHome }}
38
38
< h3 class ="pt-4 pb-2 font-light text-base text-slate "> < a href ="/ "> Back to home</ a > </ h3 >
@@ -57,7 +57,7 @@ <h3 class="pt-4 pb-2 font-light text-base text-slate">On this page</h3>
57
57
{{ end }}
58
58
59
59
< div
60
- class ="bg-gradient-to-b from-[#FF4A11] from-0% via-[#ED49F0] via-45% to-[#DDF933] to-100% rounded-2xl p-[1px] my-1 ">
60
+ class ="bg-gradient-to-b from-[#FF4A11] from-0% via-[#ED49F0] via-45% to-[#DDF933] to-100% rounded-2xl p-[1px] mt-1 mb-4 ">
61
61
< div class ="rounded-2xl p-5 bg-[#f9f9f9] flex-col justify-start items-start gap-4 inline-flex ">
62
62
{{ $recruitment := .context.Site.Params.vendor.recruit }}
63
63
{{ $vendorName := .context.Site.Params.vendor.name }}
@@ -89,39 +89,63 @@ <h3 class="pt-4 pb-2 font-light text-base text-slate">On this page</h3>
89
89
< div class ="cta-body ">
90
90
{{ index $recruitment "description"}}
91
91
</ div >
92
- < div class ="cta-terms ">
93
- {{ index $recruitment "fine" }}
94
- </ div >
92
+
95
93
</ div >
96
94
</ div >
97
95
< a href ="{{ index $recruitment "link " }}" class="px-6 py-2 bg-[#6046FF] hover:!bg-[#4D38CC] rounded-3xl text-white text-center text-sm font-semibold ">
98
96
{{ index $recruitment "cta" }}
99
97
</ a >
98
+ < div class ="cta-terms ">
99
+ {{ index $recruitment "fine" }}
100
+ </ div >
100
101
</ div >
101
102
</ div >
102
103
{{ end }}
103
104
104
105
</ div >
105
106
106
- < div class ="prose xl:prose-lg max-w-[96vw] md:max-w-none prose-code:!mb-0 prose-h2:text-xl prose-h3:text-xl prose-h4:text-lg ">
107
+ < div class ="prose xl:prose-lg max-w-[96vw] md:max-w-full w-full prose-code:!mb-0 prose-h2:text-xl prose-h3:text-xl prose-h4:text-lg ">
107
108
<!-- Add the stack picker for Get started section -->
108
109
{{ if and ( eq .context.Section "get-started" ) ( ne .context.Title "Introduction" ) }}
109
110
{{ if eq $.Site.Params.vendor.name "Platform.sh" }}
110
111
{{ partial "get-started/stack-picker" }}
111
112
{{ end }}
112
113
{{ end }}
113
114
115
+ <!-- Page banners -->
116
+ {{ if ( eq (string .context.Site.Params.vendor.config.version) "1" )}}
117
+ {{ partial "banners/banner.html" .context }}
118
+ {{ else if and ( ne (string .context.Page.Params.banner.type) "tiered-feature" ) ( ne (string .context.Page.Params.banner.type) "observability-suite" )}}
119
+ {{ partial "banners/banner.html" .context }}
120
+ {{ end }}
121
+
122
+ <!-- Tier-gated features -->
123
+ {{ if eq (string .Site.Params.vendor.config.version) "1"}}
124
+ {{ partial "tiered-features/banner.html" .context }}
125
+ {{ end }}
126
+
127
+ <!-- If the feature is part of the Observability Suite -->
128
+ {{ if eq (string .Site.Params.vendor.config.version) "1"}}
129
+ {{ partial "observability-suite/banner.html" .context }}
130
+ {{ end }}
131
+
114
132
<!-- Page content, anchorized -->
115
133
{{ partial "headline-hash.html" .context.Content }}
116
134
117
135
<!-- If the page is a list page, add section cards -->
118
136
{{ if .isList }}
119
- {{ range .context.Pages }}
120
- < button onclick ="location.href = '{{ .RelPermalink }}'; " class ="block text-left mb-7 p-8 text-primary-darker border-l-4 border-skye-dark hover:no-underline bg-stone hover:bg-skye-dark hover:text-white focus:bg-skye-dark focus:text-white hover:cursor-pointer [&:hover_a]:text-snow [&:focus_a]:text-snow [&:hover_a]:font-extrabold [&:focus_a]:font-extrabold ">
121
- < span class ="block font-bold mb-4 "> {{ if isset .Params "sidebartitle" }}{{ .Params.sidebarTitle | .RenderString }}{{ else }}{{ .Title | .RenderString }}{{ end }}</ span >
122
- < span class ="block "> {{ .Params.description | .RenderString }}</ span >
123
- </ button >
124
- {{ end }}
137
+ < div class ="space-y-4 not-prose ">
138
+ {{ range .context.Pages }}
139
+ < a href ="{{ .RelPermalink }} " class ="block p-[2px] bg-stone hover:bg-skye-dark rounded-xl transition-all ">
140
+ < div class ="p-8 bg-white rounded-xl h-full hover:shadow-lg ">
141
+ < h3 class ="text-xl font-medium mb-2 text-gray-900 ">
142
+ {{ if isset .Params "sidebartitle" }}{{ .Params.sidebarTitle | .RenderString }}{{ else }}{{ .Title | .RenderString }}{{ end }}
143
+ </ h3 >
144
+ < p class ="text-gray-600 m-0 "> {{ .Params.description | .RenderString }}</ p >
145
+ </ div >
146
+ </ a >
147
+ {{ end }}
148
+ </ div >
125
149
{{ end }}
126
150
127
151
{{ if .context.Params.related }}
0 commit comments