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).
+3
View File
@@ -10,3 +10,6 @@ select a topic for {project}
## blog
write a blogpost for {project} do not tell the subagent where to save the output
## webdev
upload the blogpost for {project} and push the changes
+1 -1
View File
@@ -69,7 +69,7 @@ choose an image that fits the blog post topic and supports the message for the i
---
## 6. Video Selection
Read /workspace/content/videos/videos.json
Read https://my-biz.app/content/videos/videos.json
choose an video that fits the blog post topic and supports the message for the icp
---
+12
View File
@@ -61,6 +61,18 @@ All file paths in this prompt are relative to the resolved project path.
sed -i "s/{{TITLE}}/${landing_page_changes}/" index.html
```
5. **Add Blog Post** (if `blogpost` provided)
make sure the blog pose has this format
{
"area": "",
"date": "",
"title": "",
"teaser": "",
"content": "",
"image":""
}
```bash
posts_file="posts.json"
if [ -f "$posts_file" ]; then