Compare commits
4 Commits
3f5cfc3d66
...
3d9ce2c33a
| Author | SHA1 | Date | |
|---|---|---|---|
| 3d9ce2c33a | |||
| 9080716e88 | |||
| 80530e9f33 | |||
| f20cf526d6 |
@@ -1,6 +1,11 @@
|
|||||||
{
|
{
|
||||||
description = "Bennos Private Hugo Page";
|
description = "Bennos Private Hugo Page";
|
||||||
nixConfig.bash-prompt = "\[gohugo\]$ ";
|
nixConfig = {
|
||||||
|
bash-prompt = "\[gohugo\]$ ";
|
||||||
|
|
||||||
|
# Enable submodules
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
|
|||||||
@@ -13,14 +13,26 @@ collections:
|
|||||||
label: "Blog Posts" # Used in the UI
|
label: "Blog Posts" # Used in the UI
|
||||||
folder: "content/blog/posts" # The path to the folder where the documents are stored
|
folder: "content/blog/posts" # The path to the folder where the documents are stored
|
||||||
create: true # Allow users to create new documents in this collection
|
create: true # Allow users to create new documents in this collection
|
||||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template
|
path: "{{year}}-{{month}}-{{day}}-{{title}}/index"
|
||||||
fields: # The fields for each document
|
media_folder: ""
|
||||||
|
public_folder: ""
|
||||||
|
slug: "index" # Filename template
|
||||||
|
editor:
|
||||||
|
preview: false
|
||||||
|
fields:
|
||||||
|
- { label: "Layout", name: "layout", widget: "hidden", default: "post" }
|
||||||
- { label: "Title", name: "title", widget: "string" }
|
- { label: "Title", name: "title", widget: "string" }
|
||||||
- {label: "Publish Date", name: "date", widget: "datetime"}
|
- { label: "Summary", name: "summary", widget: "string" }
|
||||||
- {label: "Featured Image", name: "image", widget: "image", required: false}
|
- { label: "Description", name: "description", widget: "string" }
|
||||||
- {label: "Description", name: "description", widget: "text"}
|
- {
|
||||||
- {label: "Categories", name: "categories", widget: "list", required: false}
|
label: "Authors",
|
||||||
- {label: "Tags", name: "tags", widget: "list", required: false}
|
name: "authors",
|
||||||
- {label: "Draft", name: "draft", widget: "boolean", default: false}
|
widget: "select",
|
||||||
|
multiple: true,
|
||||||
|
options: ["bob", "jane", "peter", "kate"],
|
||||||
|
}
|
||||||
|
- { label: "Date", name: "date", widget: "datetime" }
|
||||||
|
- { label: "Draft", name: "draft", widget: "boolean", default: true }
|
||||||
|
- { label: "Cover Image", name: "image", widget: "image" }
|
||||||
- { label: "Body", name: "body", widget: "markdown" }
|
- { label: "Body", name: "body", widget: "markdown" }
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,9 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="robots" content="noindex" />
|
<meta name="robots" content="noindex" />
|
||||||
<title>Content Manager</title>
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/hithismani/responsive-decap@main/dist/responsive.css"> <!-- Unminfied -->
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/hithismani/responsive-decap@main/dist/responsive.min.css"> <!-- Untested, but Minified -->
|
||||||
|
<title>CMS for my privat page</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Include the script that builds the page and powers Decap CMS -->
|
<!-- Include the script that builds the page and powers Decap CMS -->
|
||||||
|
|||||||
Reference in New Issue
Block a user