Skip to content

Commit

Permalink
Update routing
Browse files Browse the repository at this point in the history
Signed-off-by: mohin7 <[email protected]>
  • Loading branch information
mohin7 authored and tamalsaha committed Sep 13, 2024
1 parent 4dc88ff commit 2d1b248
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@
"gallery-area",
"gallery-card",
"gallery-wrapper",
"gap-4",
"go-to-top",
"h-6",
"h-right-content",
Expand Down
3 changes: 1 addition & 2 deletions layouts/_default/solutions.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ <h1 class="is-gradient">AppsCode solutions Speed up your cloud journey</h1>
<!-- <p>{{ $.Site.Data.products.stash.website.domainKey }}</p> -->
{{ $productNames := slice "kubedb" "stash" "kubevault" "voyager" "configsyncer" "guard" }}

{{ $configParams := dict "siteName" .Site.Params.domain_kubedb }}
{{ $configParams := dict "siteName" .Site.Params }}

{{ range $productNames }}
{{ $productData := index $.Site.Data.products . }}
<p>{{$productNames}}</p>
{{ partial "components/solution.html" (dict "ProductData" $productData "Config" $configParams) }}
{{ end }}

Expand Down
10 changes: 5 additions & 5 deletions layouts/partials/components/solution.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ <h2>{{ .tagline }}</h2>
<img src="{{ .ProductData.logo.src }}" alt="{{ .ProductData.fullname}}">
<h3>{{ .ProductData.tagline | plainify }}</h3>
<p>{{ .ProductData.summary | plainify}}</p>
<pre>{{ .Config.siteName}} / {{.ProductData.website.domainKey}}</pre>

<a href="#" class="button ac-button is-primary">
{{ $siteName := .Config.siteName }}
{{ $domainKey := .ProductData.website.domainKey }}
<a href="{{index $siteName $domainKey}}" class="button ac-button is-primary">
<span>Try {{ .ProductData.name }}</span>
<span class="icon">
<iconify-icon icon="heroicons:arrow-up-right-solid"></iconify-icon>
Expand All @@ -27,8 +27,8 @@ <h3>{{ .ProductData.tagline | plainify }}</h3>

<div class="column is-8">
<div class="right-content">
{{range $feature := .features}}
<a href="#" class="single-card">
{{range $feature := .ProductData.features}}
<a href="{{index $siteName $domainKey}}/features" class="single-card">
<h5>{{$feature.title}}</h5>
<p class="is-ellipsis-3">{{$feature.description}}</p>
<button class="ac-button is-flex is-align-items-center is-gap-4 is-transparent is-clickable">
Expand Down

0 comments on commit 2d1b248

Please sign in to comment.