generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #395 from vishalvivekm/partial-update
Partial update
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{{ define "main" }} | ||
{{ partial "feature-info.html" . }} | ||
{{ .Render "content" }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{ $currentPage := .Page.Permalink }} | ||
{{ $features := .Site.Data.features }} | ||
|
||
{{ if not $features }} | ||
{{ $features = getJSON "features.json" }} | ||
{{ end }} | ||
|
||
{{ if $features }} | ||
{{ range $features }} | ||
{{ $docUrl := .documentation | default "" }} | ||
{{ $cleanDocUrl := (index (split $docUrl "#") 0) }} <!-- Remove the # fragment if it exists --> | ||
{{ if eq $cleanDocUrl $currentPage }} | ||
<div class="matterinfo"> | ||
<h4 class="matterheader">Who can use this feature</h4> | ||
{{ $subscription_tier := index .entire_row "Subscription Tier" }} | ||
<div class="plan-support all-plans {{ lower $subscription_tier }}-plan"> | ||
<img src="/images/subscription.svg" alt="Icon" class="support-icon adaptive-icon"> | ||
Supported on <span class="tier">{{ $subscription_tier }}</span> Plan | ||
</div> | ||
</div> | ||
{{ break }} | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
|