Use Hugo page bundles.

This commit is contained in:
Caleb
2018-03-28 15:34:26 -06:00
committed by Shawn Erquhart
parent 77a7c369f3
commit 5d94af8e7c
18 changed files with 6 additions and 20 deletions

View File

@ -1,11 +1,11 @@
<section class="widgets">
<div class="widgets__cloud">
{{- range $index, $widget := where .Site.RegularPages "Type" "eq" "widget" -}}
{{- range $index, $widget := .Resources -}}
<span class="widgets__item {{if eq $index 0}}widgets__item_active{{end}}" data-widget-target="{{.Params.target}}">{{.Params.label}}</span>
{{- end -}}
</div>
<div class="widgets__container">
{{- range $index, $widget := where .Site.RegularPages "Type" "eq" "widget" -}}
{{- range $index, $widget := .Resources -}}
<div class="widget {{if eq $index 0}}widget_open{{end}}" id="{{.Params.target}}">
{{.Content}}
</div>