videos in url
This commit is contained in:
+14
-7
@@ -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 URL‑safe slug from the `headline` field: convert to lowercase, replace all non‑alphanumeric characters (except letters, numbers) with hyphens, and trim leading/trailing hyphens.
|
||||
- Determine the current date (ISO 8601) 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": "<current‑date>"
|
||||
}
|
||||
```
|
||||
{
|
||||
"area": "",
|
||||
"Vertical":"",
|
||||
"date": "",
|
||||
"title": "",
|
||||
"teaser": "",
|
||||
"content": "",
|
||||
"image":""
|
||||
}
|
||||
```
|
||||
- `<title from <h1>>` is the same string used for the slug.
|
||||
- `<htmlContent>` is the HTML generated in step 4.
|
||||
- `<image>` comes from the topic step (`{image}` variable).
|
||||
|
||||
Reference in New Issue
Block a user