change the specifications layout page

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
newmemberlevels
Toshaan Bharvani 3 years ago
parent 7d7e66ee5a
commit 4cba396cd9

@ -1,9 +1,6 @@
{{ partial "header.html" . }}

{{ partial "navbar.html" . }}

<main id="main">

<section id="specifications">
<div id="specifications" class="container-fluid">
<div class="section-header">
@ -18,9 +15,9 @@
<div class="row">
<div class="col-lg-2">&nbsp;</div>
<div class="col-lg-8 text-center">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.2.0/fuse.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js"></script>
<script src="{{ "/lib/search//jquery-3.3.1.min.js" | relURL }}"></script>
<script src="{{ "/lib/search/fuse-3.2.0.min.js" | relURL }}"></script>
<script src="{{ "/lib/search/jquery.mark-8.11.1.min.js" | relURL }}"></script>
<script>var jsonfile = "{{ .RelPermalink }}/index.json"</script>
{{ $searchjavascript := resources.Get "js/search.js" }}
{{ $searchjs := $searchjavascript | resources.Minify }}
@ -47,7 +44,7 @@
</div>
</div>
<div class="row pb-4 text-center">
{{ range .Data.Pages }}
{{ range .Data.Pages.ByTitle }}
<div class="col-lg-2">&nbsp;</div>
<div class="col-lg-8">
<a class="mb-4" href="{{ .Permalink }}">{{ .Title }}</a>
@ -57,7 +54,5 @@
</div>
</div>
</section>

</main>

{{ partial "footer.html" . }}

@ -1,10 +1,7 @@
{{ partial "header.html" . }}

{{ partial "navbar.html" . }}

{{ $filename := .File.BaseFileName }}
{{ $datafile := index $.Site.Data.specifications $filename }}

<main id="main" class="specifications-single">
<section id="page" class="section-bg">
<div class="row">
@ -13,7 +10,7 @@
<p class="section-description"></p>
</div>
<div class="row">
<div class="col-lg-2"></div>
<div class="col-lg-3"></div>
<div class="col-lg-6">
{{ if $datafile.versions }}
{{ range last 1 $datafile.versions }}
@ -21,17 +18,32 @@
<span class="changetime-wrapper"><span class="changetime">{{ .date }}</span></span>
{{ end }}
{{ end }}
{{ if .Param "group" }}
{{ $group := printf "%s/%s" "groups" (.Param "group") }}
{{ with $.Site.GetPage $group }}
Owned by : {{ .Title }}
{{ end }}
{{ end }}
</div>
<div class="col-lg-3"></div>
</div>
{{ if .Param "publicreview" }}
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6">
</div>
<div class="col-lg-3"></div>
</div>
{{ end }}
<div class="row">
<div class="col-lg-2"></div>
<div class="col-lg-3"></div>
<div class="col-lg-6 content wow fadeInTop">
<p>{{ .Content }}</p>
</div>
<div class="col-lg-3">
{{ if $datafile.versions }}
<ul class="changelogtimeline">
{{ range sort $datafile.versions "number" "desc" }}
{{ range sort $datafile.versions "date" "desc" }}
<li>
<div class="direction-r">
<div class="changeflag-wrapper">
@ -39,7 +51,9 @@
<span class="changetime-wrapper"><span class="changetime">{{ .date }}</span></span>
</div>
<div class="desc">{{ .description }}</div>
{{ if .download }}
<div class="desc"><a href="{{ .download }}">download</a></div>
{{ end }}
</div>
</li>
{{ end }}
@ -47,6 +61,17 @@
{{ end }}
</div>
</div>
{{ if .Params.tags }}
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6 text-center">
{{ range .Params.tags }}
{{ . }}
{{ end }}
</div>
<div class="col-lg-3"></div>
</div>
{{ end }}
</section>
</main>


Loading…
Cancel
Save