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

@ -35,7 +35,7 @@
"gulp-rename": "^1.2.2",
"gulp-transform": "^3.0.5",
"gulp-util": "^3.0.7",
"hugo-bin": "^0.18.0",
"hugo-bin": "^0.23.0",
"imports-loader": "^0.6.5",
"postcss-at2x": "^2.0.0",
"postcss-colour-functions": "^1.5.1",

View File

@ -1,7 +1,6 @@
---
label: "Boolean"
target: "boolean"
type: "widget"
---
### Boolean

View File

@ -1,7 +1,6 @@
---
label: "Date"
target: "date"
type: "widget"
---
### Date

View File

@ -1,7 +1,6 @@
---
label: "DateTime"
target: "datetime"
type: "widget"
---
### DateTime

View File

@ -1,7 +1,6 @@
---
label: "File"
target: "file"
type: "widget"
---
### File

View File

@ -1,7 +1,6 @@
---
label: "Hidden"
target: "hidden"
type: "widget"
---
### Hidden

View File

@ -1,7 +1,6 @@
---
label: "Image"
target: "image"
type: "widget"
---
### Image

View File

@ -1,7 +1,6 @@
---
label: "List"
target: "list"
type: "widget"
---
### List

View File

@ -1,7 +1,6 @@
---
label: "Markdown"
target: "markdown"
type: "widget"
---
### Markdown

View File

@ -1,7 +1,6 @@
---
label: "Number"
target: "number"
type: "widget"
---
### Number

View File

@ -1,7 +1,6 @@
---
label: "Object"
target: "object"
type: "widget"
---
### Object

View File

@ -1,7 +1,6 @@
---
label: "Relation"
target: "relation"
type: "widget"
---
### Relation

View File

@ -1,7 +1,6 @@
---
label: "Select"
target: "select"
type: "widget"
---
### Select

View File

@ -1,7 +1,6 @@
---
label: "String"
target: "string"
type: "widget"
---
### String

View File

@ -1,7 +1,6 @@
---
label: "Text"
target: "text"
type: "widget"
---
### Text

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>

View File

@ -2908,9 +2908,9 @@ https-browserify@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82"
hugo-bin@^0.18.0:
version "0.18.0"
resolved "https://registry.yarnpkg.com/hugo-bin/-/hugo-bin-0.18.0.tgz#db59433ce60b7d756cce5afe53028c3968834fc5"
hugo-bin@^0.23.0:
version "0.23.0"
resolved "https://registry.yarnpkg.com/hugo-bin/-/hugo-bin-0.23.0.tgz#d93101aff9809caecbb25271c7eef8c4442dfc61"
dependencies:
bin-wrapper "3.0.2"
del-cli "1.1.0"