Skip to content

Commit

Permalink
Merge pull request #1268 from vincent99/master
Browse files Browse the repository at this point in the history
Training link on 2.0 docs homepage
  • Loading branch information
vincent99 authored Mar 19, 2019
2 parents 9e493cd + f74df19 commit baaf011
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions content/rancher/v2.x/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
shortTitle: Rancher 2.x
insertOneSix: true
weight: 1
ctaBanner: intro-k8s-rancher-online-training
---

## What's New?
Expand Down
7 changes: 7 additions & 0 deletions data/cta/intro-k8s-rancher-online-training.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
header = "Get free weekly training on Kubernetes and Rancher"
copy = ""
button = "Join here"
link = "https://info.rancher.com/rancher-kubernetes-online-training"


form-id = ""
10 changes: 9 additions & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@ <h1 class="m-t-0">{{ . }}</h1>
<hr/>
{{end}}

{{ if .Params.ctaBanner }}
{{ with index .Site.Data.cta .Params.ctaBanner }}
<div class="row center-xs middle-xs bg-info shadow rounded-corners">
<h3 class="m-v-sm m-r-sm text-white">{{ .header }}</h3>
<a href="{{ .link }}" target="_blank" class="btn border-btn">{{ .button }}</a>
</div>
{{ end }}
{{ end }}

<div class="main-content docs-body">
<!-- this is a test -->
<!-- {{ partial "page-nav.html" . }} -->
<!-- end test -->

{{ .Content }}

{{ $paginator := .Scratch.Get "paginator" }}
Expand Down

0 comments on commit baaf011

Please sign in to comment.