Use Hugo page bundles.
This commit is contained in:
parent
77a7c369f3
commit
5d94af8e7c
@ -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",
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "Boolean"
|
||||
target: "boolean"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### Boolean
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "Date"
|
||||
target: "date"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### Date
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "DateTime"
|
||||
target: "datetime"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### DateTime
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "File"
|
||||
target: "file"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### File
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "Hidden"
|
||||
target: "hidden"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### Hidden
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "Image"
|
||||
target: "image"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### Image
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "List"
|
||||
target: "list"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### List
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "Markdown"
|
||||
target: "markdown"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### Markdown
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "Number"
|
||||
target: "number"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### Number
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "Object"
|
||||
target: "object"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### Object
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "Relation"
|
||||
target: "relation"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### Relation
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "Select"
|
||||
target: "select"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### Select
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "String"
|
||||
target: "string"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### String
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
label: "Text"
|
||||
target: "text"
|
||||
type: "widget"
|
||||
---
|
||||
|
||||
### Text
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user