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).
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
---
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user