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 "header.html" . }}

{{ partial "navbar.html" . }} {{ partial "navbar.html" . }}

<main id="main"> <main id="main">

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

</main> </main>

{{ partial "footer.html" . }} {{ partial "footer.html" . }}

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

{{ partial "navbar.html" . }} {{ partial "navbar.html" . }}

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

<main id="main" class="specifications-single"> <main id="main" class="specifications-single">
<section id="page" class="section-bg"> <section id="page" class="section-bg">
<div class="row"> <div class="row">
@ -13,7 +10,7 @@
<p class="section-description"></p> <p class="section-description"></p>
</div> </div>
<div class="row"> <div class="row">
<div class="col-lg-2"></div> <div class="col-lg-3"></div>
<div class="col-lg-6"> <div class="col-lg-6">
{{ if $datafile.versions }} {{ if $datafile.versions }}
{{ range last 1 $datafile.versions }} {{ range last 1 $datafile.versions }}
@ -21,17 +18,32 @@
<span class="changetime-wrapper"><span class="changetime">{{ .date }}</span></span> <span class="changetime-wrapper"><span class="changetime">{{ .date }}</span></span>
{{ end }} {{ end }}
{{ 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>
<div class="col-lg-3"></div>
</div> </div>
{{ end }}
<div class="row"> <div class="row">
<div class="col-lg-2"></div> <div class="col-lg-3"></div>
<div class="col-lg-6 content wow fadeInTop"> <div class="col-lg-6 content wow fadeInTop">
<p>{{ .Content }}</p> <p>{{ .Content }}</p>
</div> </div>
<div class="col-lg-3"> <div class="col-lg-3">
{{ if $datafile.versions }} {{ if $datafile.versions }}
<ul class="changelogtimeline"> <ul class="changelogtimeline">
{{ range sort $datafile.versions "number" "desc" }} {{ range sort $datafile.versions "date" "desc" }}
<li> <li>
<div class="direction-r"> <div class="direction-r">
<div class="changeflag-wrapper"> <div class="changeflag-wrapper">
@ -39,7 +51,9 @@
<span class="changetime-wrapper"><span class="changetime">{{ .date }}</span></span> <span class="changetime-wrapper"><span class="changetime">{{ .date }}</span></span>
</div> </div>
<div class="desc">{{ .description }}</div> <div class="desc">{{ .description }}</div>
{{ if .download }}
<div class="desc"><a href="{{ .download }}">download</a></div> <div class="desc"><a href="{{ .download }}">download</a></div>
{{ end }}
</div> </div>
</li> </li>
{{ end }} {{ end }}
@ -47,6 +61,17 @@
{{ end }} {{ end }}
</div> </div>
</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> </section>
</main> </main>



Loading…
Cancel
Save