videos in url

This commit is contained in:
Oliver
2026-05-03 12:48:08 +00:00
parent ad2c1a996b
commit 78dd3844dd
8 changed files with 49 additions and 24 deletions
+14 -7
View File
@@ -59,15 +59,22 @@ to make the user gain interest to implement this feature in his company.
- Ensure a `copy/` folder exists inside the project (`mkdir -p`).
- Generate a URLsafe slug from the `headline` field: convert to lowercase, replace all nonalphanumeric characters (except letters, numbers) with hyphens, and trim leading/trailing hyphens.
- Determine the current date (ISO8601) via a shell command, e.g. `date -u +"%Y-%m-%d"`.
- Select the area from "Sales" "Restaurant" "Invoicing" "CRM" "Website" "Inventory" "Purchase" "Point of Sale" "Project" "eCommerce" "Manufacturing" "Email Marketing" "Timesheets" "Expenses" "Risk Management"
- Teaser is the first paragraph <p></p>
- for the Vertial put in the project name
- Important: the image name is without the extension so for MyAwesomeImage.jpg just put MyAwesomeImage in the JSON
- Build a JSON object with the required fields:
```json
{
"headline": "<title from <h1>>",
"text": "<htmlContent>",
"image": "<image>",
"date": "<currentdate>"
}
```
{
"area": "",
"Vertical":"",
"date": "",
"title": "",
"teaser": "",
"content": "",
"image":""
}
```
- `<title from <h1>>` is the same string used for the slug.
- `<htmlContent>` is the HTML generated in step4.
- `<image>` comes from the topic step (`{image}` variable).