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-rename": "^1.2.2",
"gulp-transform": "^3.0.5", "gulp-transform": "^3.0.5",
"gulp-util": "^3.0.7", "gulp-util": "^3.0.7",
"hugo-bin": "^0.18.0", "hugo-bin": "^0.23.0",
"imports-loader": "^0.6.5", "imports-loader": "^0.6.5",
"postcss-at2x": "^2.0.0", "postcss-at2x": "^2.0.0",
"postcss-colour-functions": "^1.5.1", "postcss-colour-functions": "^1.5.1",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,11 +1,11 @@
<section class="widgets"> <section class="widgets">
<div class="widgets__cloud"> <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> <span class="widgets__item {{if eq $index 0}}widgets__item_active{{end}}" data-widget-target="{{.Params.target}}">{{.Params.label}}</span>
{{- end -}} {{- end -}}
</div> </div>
<div class="widgets__container"> <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}}"> <div class="widget {{if eq $index 0}}widget_open{{end}}" id="{{.Params.target}}">
{{.Content}} {{.Content}}
</div> </div>

View File

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