updated config for decap to use beta nested files
This commit is contained in:
parent
5e0c3d0407
commit
b764c50ac4
3
.gitignore
vendored
3
.gitignore
vendored
@ -59,4 +59,5 @@ typings/
|
||||
.env
|
||||
|
||||
# 11ty ignores
|
||||
_site/
|
||||
_site/
|
||||
dist/
|
||||
|
@ -13,14 +13,20 @@ media_folder: "src/assets/images/uploads"
|
||||
public_folder: "/images/uploads"
|
||||
|
||||
collections:
|
||||
- label: "Work"
|
||||
name: "work"
|
||||
- name: "work"
|
||||
label: "Work"
|
||||
label_singluar: "Work"
|
||||
folder: "src/_content/work"
|
||||
create: true
|
||||
nested:
|
||||
depth: 2
|
||||
summary: "{{ title }}"
|
||||
fields:
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
- {label: "Tags", name: "tags", widget: "list"}
|
||||
- {label: "Sub-title", name: "subtitle", widget: "string"}
|
||||
- {label: "Data", name: "data", widget: "list", fields: [ { label: "Name", name: "name", widget: "string" }, { label: "Value", name: "value", widget: "string" }]}
|
||||
# - {label: "Featured Image", name: "thumbnail", widget: "image"}
|
||||
- {label: "Publish Date", name: "date", widget: "datetime"}
|
||||
- {label: "Featured Image", name: "thumbnail", widget: "image"}
|
||||
- {label: "Metadata", name: "meta", widget: "list", fields: [ { label: "Name", name: "name", widget: "string" }, { label: "Value", name: "value", widget: "string" }]}
|
||||
- {label: "Tags", name: "tags", widget: "list"}
|
||||
- {label: "Body", name: "body", widget: "markdown"}
|
||||
meta: { path: { widget: string, label: 'Path', index_file: 'index' } }
|
||||
|
26
dist/admin/config.yml
vendored
26
dist/admin/config.yml
vendored
@ -1,26 +0,0 @@
|
||||
backend:
|
||||
name: gitea
|
||||
repo: suroh/pxls.homepage
|
||||
app_id: a9e54ea3-6ab8-455f-bd3d-6149f3859f4e
|
||||
api_root: https://git.suroh.tk/api/v1
|
||||
base_url: https://git.suroh.tk
|
||||
site_domain: localhost:8080
|
||||
branch: main
|
||||
|
||||
site_url: http://localhost:8080
|
||||
|
||||
media_folder: "src/assets/images/uploads"
|
||||
public_folder: "/images/uploads"
|
||||
|
||||
collections:
|
||||
- label: "Work"
|
||||
name: "work"
|
||||
folder: "src/_content/work"
|
||||
create: true
|
||||
fields:
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
- {label: "Tags", name: "tags", widget: "list"}
|
||||
- {label: "Publish Date", name: "date", widget: "datetime"}
|
||||
- {label: "Featured Image", name: "thumbnail", widget: "image"}
|
||||
- {label: "Metadata", name: "meta", widget: "list", fields: [ { label: "Name", name: "name", widget: "string" }, { label: "Value", name: "value", widget: "string" }]}
|
||||
- {label: "Body", name: "body", widget: "markdown"}
|
13
dist/admin/index.html
vendored
13
dist/admin/index.html
vendored
@ -1,13 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="robots" content="noindex" />
|
||||
<title>11ty : admin</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Include the script that builds the page and powers Decap CMS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/decap-cms@^3.0.0/dist/decap-cms.js"></script>
|
||||
</body>
|
||||
</html>
|
4
dist/index.html
vendored
4
dist/index.html
vendored
@ -16,9 +16,9 @@
|
||||
|
||||
<body>
|
||||
<!-- template content -->
|
||||
<div class="single-page"><h1>index</h1>
|
||||
<main><h1>index</h1>
|
||||
<p>the index page.</p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: index
|
||||
layout: singlePage.webc
|
||||
layout: index.webc
|
||||
---
|
||||
|
||||
# index
|
||||
|
@ -17,4 +17,4 @@ Chloë Janssens, INSIDE (the ears, the audio)\
|
||||
Marko Gutić Mižimakov, OBJECT (the eyes, the video)\
|
||||
Anna Lugmeier, SUBJECT (the guide)
|
||||
|
||||
Four people experiment with relational hood group around a tree in which the name Chantal is inscribed. The call was a re-imagining and re-assembling of Lygia Clark's relational object works, involving a group call, selfie sticks and a hood like costume that covered one of the participants heads.
|
||||
Four people experiment with relational hood group around a tree in which the name Chantal is inscribed. The call was a re-imagining and re-assembling of Lygia Clark's relational object works, involving a group call, selfie sticks and a hood like costume that covered one of the participants heads.
|
3
src/_content/work/work.json
Normal file
3
src/_content/work/work.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"layout": "work.webc"
|
||||
}
|
5
src/_includes/index.webc
Normal file
5
src/_includes/index.webc
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
layout: base.webc
|
||||
---
|
||||
|
||||
<main @html="content"></main>
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
layout: base.webc
|
||||
---
|
||||
|
||||
<div class="single-page" @html="content"></div>
|
19
src/_includes/work.webc
Normal file
19
src/_includes/work.webc
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
layout: base.webc
|
||||
---
|
||||
|
||||
<aside>
|
||||
<h2 @text="title"></h2>
|
||||
<span @text="subtitle"></span>
|
||||
|
||||
<div class="meta">
|
||||
<div webc:for="(k,m) in meta">
|
||||
<div @text="m.name"></div>
|
||||
<div @html="m.value"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<article @html="content"></article>
|
||||
</aside>
|
||||
|
||||
<main></main>
|
Loading…
x
Reference in New Issue
Block a user