layout change

This commit is contained in:
lvuch
2018-06-27 11:15:08 -07:00
parent 14f05bb8ef
commit 2e4b4e9874
4 changed files with 10 additions and 27 deletions
+7 -24
View File
@@ -3,28 +3,6 @@
{{ end }}
{{ define "hero" }}
<section class="hero">
<h5 class="text-white">
{{ range $product := $.Site.Sections }}
{{ range $version := .Sections }}
{{ range $language := .Sections }}
{{if $.CurrentSection}}
{{ if .IsAncestor $.CurrentSection }}
{{ .Params.shortTitle }}
{{end}}
{{end}}
{{end}}
{{end}}
{{end}}
</h5>
{{ with .Params.Title }}
<h1 class="m-t-0">{{ . }}</h1>
{{end}}
{{ with .Params.Author }}
<span class="byline bg-link">{{ . }}</span>
{{end}}
</section>
{{ end }}
{{ define "main" }}
@@ -36,9 +14,14 @@
{{ partial "docs-side-nav.html" . }}
</aside>
<article class="{{ if ($.Scratch.Get "showSidebar") }} col-sm-6 {{else}} col-md-9 p-r-lg {{end}} col-xs-12">
<article class="{{ if ($.Scratch.Get "showSidebar") }} col-sm-6 {{else}} col-md-9 p-l-lg {{end}} col-xs-12">
<div class="main-content ">
{{ with .Params.Title }}
<h1 class="m-t-0">{{ . }}</h1>
<hr/>
{{end}}
<div class="main-content">
{{ .Content }}