Compare commits

..

4 Commits

Author SHA1 Message Date
3d9ce2c33a adapted cms to hopefully respect layouting
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 45s
2025-06-09 18:04:52 +02:00
9080716e88 updated css 2025-06-09 17:58:47 +02:00
80530e9f33 moved around post files 2025-06-09 17:55:33 +02:00
f20cf526d6 updated flake 2025-06-09 17:55:17 +02:00
5 changed files with 31 additions and 12 deletions

View File

@@ -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";

View File

@@ -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: ""
- {label: "Title", name: "title", widget: "string"} public_folder: ""
- {label: "Publish Date", name: "date", widget: "datetime"} slug: "index" # Filename template
- {label: "Featured Image", name: "image", widget: "image", required: false} editor:
- {label: "Description", name: "description", widget: "text"} preview: false
- {label: "Categories", name: "categories", widget: "list", required: false} fields:
- {label: "Tags", name: "tags", widget: "list", required: false} - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
- {label: "Draft", name: "draft", widget: "boolean", default: false} - { label: "Title", name: "title", widget: "string" }
- {label: "Body", name: "body", widget: "markdown"} - { label: "Summary", name: "summary", widget: "string" }
- { label: "Description", name: "description", widget: "string" }
- {
label: "Authors",
name: "authors",
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" }

View File

@@ -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 -->