HDDS-2156. Fix alignment issues in HDDS doc pages

Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
Vivek Ratnavel Subramanian 2019-09-19 16:41:00 -07:00 committed by Anu Engineer
parent 298f07abce
commit 9be448b336
5 changed files with 48 additions and 31 deletions

View File

@ -2,7 +2,8 @@
title: "Ozone ACLs" title: "Ozone ACLs"
date: "2019-April-03" date: "2019-April-03"
weight: 6 weight: 6
summary: Native ACL support provides ACL functionality without Ranger integration. summary: Native Ozone Authorizer provides Access Control List (ACL) support for Ozone without Ranger integration.
icon: transfer
--- ---
<!--- <!---
Licensed to the Apache Software Foundation (ASF) under one or more Licensed to the Apache Software Foundation (ASF) under one or more

View File

@ -23,7 +23,7 @@ weight: 5
--> -->
{{<jumbotron title="Securing Ozone">}} {{<jumbotron title="Securing Ozone">}}
Ozone is an enterprise class, secure storage system. There many Ozone is an enterprise class, secure storage system. There are many
optional security features in Ozone. Following pages discuss how optional security features in Ozone. Following pages discuss how
you can leverage the security features of Ozone. you can leverage the security features of Ozone.
{{</jumbotron>}} {{</jumbotron>}}

View File

@ -18,42 +18,53 @@
<body> <body>
{{ partial "navbar.html" . }} {{ partial "navbar.html" . }}
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
{{ partial "sidebar.html" . }} {{ partial "sidebar.html" . }}
<div class="col-sm-10 col-sm-offset-2 col-md-10 col-md-offset-2 main"> <div class="col-sm-10 col-sm-offset-2 col-md-10 col-md-offset-2 main">
<div class="col-md-9">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
</div>
<div class="col-md-9"> <div class="col-md-9">
{{ .Content }} {{ .Content }}
{{.Params.card}} {{.Params.card}}
{{ if not (eq .Params.cards "false")}} {{ if not (eq .Params.cards "false")}}
{{ range .Pages }} {{ range $page_index, $page_val := .Pages }}
{{ $page_count := len .Pages }}
{{if (eq (mod $page_index 2) 0)}}
<div class="row">
{{end}}
<div class="col-sm-6"> <div class="col-sm-6">
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<h2 class="card-title"> <h2 class="card-title">
{{ with .Params.Icon}} {{ with .Params.Icon}}
<span class="glyphicon glyphicon-{{.}}" aria-hidden="true"></span> <span class="glyphicon glyphicon-{{.}}"
aria-hidden="true"></span>
{{end}} {{end}}
{{ .LinkTitle }} {{ .LinkTitle }}
</h2> </h2>
<p class="card-text">{{.Summary}}</p> <p class="card-text">{{.Summary}}</p>
<a href="{{.Permalink}}" class=" btn btn-primary btn-lg">{{.LinkTitle}}</a> <a href="{{.Permalink}}"
class=" btn btn-primary btn-lg">{{.LinkTitle}}</a>
</div> </div>
</div> </div>
</div> </div>
{{if (or (eq (mod $page_index 2) 1) (eq $page_index (sub $page_count 1)))}}
</div>
{{end}}
{{ end }} {{ end }}
{{end}} {{end}}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
</body> </body>

View File

@ -36,7 +36,9 @@
</ol> </ol>
</nav> </nav>
<div class="col-md-9">
<h1>{{.Title}}</h1> <h1>{{.Title}}</h1>
</div>
{{ .Content }} {{ .Content }}

View File

@ -160,6 +160,9 @@ h4 {
padding: 30px; padding: 30px;
} }
h1 {
margin-bottom: 20px;
}
.card { .card {
padding: 20px; padding: 20px;