UNPKG

oxil-net1

Version:
123 lines (90 loc) 3.1 kB
{{- define "herotag" -}} {{- if eq "help-hero" .Params.hero -}} {{- $img := .Resources.GetMatch "*featured*" -}} {{- with $img -}} {{- $medium := .Resize "1000x" -}} <div class="maxh400 rel"> <img class="cover abs z2" src="{{$medium.RelPermalink}}" alt="Mountaineers helping each other"> <div class="z3 rel"> <div class="grid w flex justify-start align-center px1 px2l"> <div class="py3 w-50"> <div class="f1 white-text shadow semi mb2 mb050l">{{- $.Page.Params.subtitle -}}</div> <div class="f2 white-text normal mb2 mt050 hidden-sm">{{- $.Page.Params.subtitle2 -}}</div> <div class="flex align-center search-group white py050 "> <i class="net-search ga-text f4 pl075 "></i><input id="search" class="bortrans w" type="text" placeholder="{{- $.Page.Params.searchtext -}}"> </div> {{- partial "help/search-results" . -}} </div> </div> </div> </div> {{- end -}} {{- end -}} {{- end -}} {{- define "main" -}} <div class="grid px1 px2l flex mt3 pb5"> <div class="w-25 hidden-sm" > {{- partial "help/sidenav" . -}} </div> <div class="w-75 px2l px1" > <div class="breadcrumb small">{{- partial "breadcrumb" (dict "p1" . "p2" .) -}}</div> <h1 class="f-subheadline mt050 mb2">{{- .Title -}}</h1> <div class="flex flex-wrap"> {{- if .RegularPages -}} <div class="w-50 simple-menu pb3"> {{- range .RegularPages -}} {{- if ne .Params.noList "1" -}} <a class="normal blk inv mb050" href="{{- .Permalink -}}">{{- .Title -}}</a> {{- end -}} {{- end -}} </div> {{- end -}} {{- range where .Sections ".Draft" "ne" true -}} <div class="w-50 simple-menu pb3 flex"> {{- $title := .Title -}} {{- $thumb := .Resources.GetMatch "*-icon*" -}} {{- with $thumb -}} <div class="pr2"> <div class="help-svg"> {{- .Content | safeHTML -}} </div> </div> {{- end -}} <div class=""> <h4 >{{- .Title -}}</h4> {{- range .RegularPages -}} {{- if ne .Params.noList "1" -}} <a class="normal blk inv mb050" href="{{- .Permalink -}}">{{- .Title -}}</a> {{- end -}} {{- end -}} {{- range .Sections -}} <a class="normal blk inv mb050" href="{{- .Permalink -}}">{{- .Title -}}</a> {{- end -}} </div> </div> {{- end -}} {{- if .Params.links -}} <div class="w-50 simple-menu pb3 flex"> {{- if .Params.linkicon -}} {{- $thumb := .Resources.GetMatch "*-icon*" -}} {{- with $thumb -}} <div class="pr2"> <div class="help-svg"> {{- .Content | safeHTML -}} </div> </div> {{- end -}} {{- end -}} <div> <h4 >{{- .Params.linkstitle -}}</h4> {{- range .Params.links -}} <a class="normal blk inv mb050" href="{{- .url -}}">{{- .text -}}</a> {{- end -}} </div> </div> {{- end -}} </div> </div> </div> {{- end -}}