{{ partial "header.html" . }} {{ partial "navbar.html" . }} {{ $section := "" }} {{ if .IsHome }} {{ $section = "home" }} {{ else }} {{ $section = .Section }} {{ end }} {{ range $index, $st := where (where .Data.Pages "Section" $section) ".Params.active" "!=" false }} {{/* Begin widget styling */}} {{ $bg := $st.Params.design.background }} {{ $style := "" }} {{ if $bg.color }} {{ $style = printf "background-color: %s;" ($bg.color | default "transparent") }} {{ end }} {{ if and $bg.gradient_start $bg.gradient_end }} {{ $style = printf "%sbackground-image: linear-gradient(%s, %s);" $style $bg.gradient_start $bg.gradient_end }} {{ end }} {{ if $bg.image }} {{ $darken := "" }} {{ if $bg.image_darken }} {{ $darken = printf "linear-gradient(rgba(0, 0, 0, %s), rgba(0, 0, 0, %s))," (string $bg.image_darken) (string $bg.image_darken) }} {{ end }} {{/* See Hugo note on linking assets in styles: https://github.com/gohugoio/hugoThemes#common-permalink-issues */}} {{ $style = printf "%sbackground-image: %s url('%s');" $style $darken (printf "img/%s" $bg.image | absURL) }} {{ end }} {{ with $st.Params.advanced.css_style }} {{ $style = print $style . }} {{ end }} {{ $params := dict "root" $ "page" $st }} {{ $widget := or $st.Params.widget "blank" }} {{ if eq $widget "custom" }}{{ $widget = "blank" }}{{ end }}{{/* Support legacy Custom widget */}} {{ if eq $widget "projects" }}{{ $widget = "portfolio" }}{{ end }}{{/* Support legacy Projects widget */}} {{ $widget_path := printf "widgets/%s.html" $widget }} {{ if in (slice "slider") $widget }} {{ partial $widget_path $params }} {{ else }}
{{ partial $widget_path $params }}
{{ end }} {{ end }} {{ partial "footer_container.html" . }} {{ partial "footer.html" . }}