From 6d9656c891e0199daa5eb202477ff247a9bc0a4f Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Sat, 10 Aug 2019 17:13:04 +0200 Subject: [PATCH] Add portfolio page --- _pages/portfolio.md | 0 static/admin/config.yml | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 _pages/portfolio.md diff --git a/_pages/portfolio.md b/_pages/portfolio.md new file mode 100644 index 0000000..e69de29 diff --git a/static/admin/config.yml b/static/admin/config.yml index 4c0e354..56753df 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -18,4 +18,20 @@ collections: - { label: "Publish Date", name: "date", widget: "datetime" } - { label: "Featured Image", name: "thumbnail", widget: "image" } - { label: "Rating (scale of 1-5)", name: "rating", widget: "number" } - - { label: "Body", name: "body", widget: "markdown" } \ No newline at end of file + - { label: "Body", name: "body", widget: "markdown" } + - name: "pages" + label: "Pages" + files: + - label: "Portfolio" + name: "portfolio" + file: "_pages/portfolio.md" + fields: + - { label: Title, name: title, widget: string } + - { label: Content, name: content, widget: markdown } + - label: Projects + name: projects + widget: list + fields: + - { label: Name, name: name, widget: string } + - { label: Description, name: description, widget: markdown } + - { label: Image, name: image, widget: image } \ No newline at end of file