hero header, title in content and config

This commit is contained in:
lvuch
2018-05-14 12:28:26 -07:00
parent 88b831ef85
commit 3e5addafe5
3 changed files with 70 additions and 72 deletions
+4 -4
View File
@@ -4,9 +4,7 @@
{{ define "hero" }}
<section class="hero">
{{ with .Params.Title }}
<h1>{{ . }}</h1>
{{end}}
<h1>Rancher 2.0 Docs</h1>
{{ with .Params.Author }}
<span class="byline bg-link">{{ . }}</span>
@@ -35,7 +33,9 @@
<article class="{{ if ($.Scratch.Get "showSidebar") }} col-sm-6 {{else}} col-md-9 p-r-lg {{end}} col-xs-12">
<div class="main-content ">
{{ with .Params.Title }}
<h2 class="m-t-0">{{ . }}</h2>
{{end}}
{{ .Content }}
</div>