add video chip to Odoo speed-run blog card on homepage + JS/CSS for video chips
This commit is contained in:
@@ -1196,6 +1196,11 @@ section {
|
|||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
}
|
}
|
||||||
|
.blog-card-chip-video {
|
||||||
|
background: rgba(255, 0, 0, 0.1);
|
||||||
|
color: #ff4444;
|
||||||
|
border: 1px solid rgba(255, 0, 0, 0.3);
|
||||||
|
}
|
||||||
.blog-card-date {
|
.blog-card-date {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
|
|||||||
@@ -743,6 +743,9 @@ function blogRender() {
|
|||||||
var chip = p.agent
|
var chip = p.agent
|
||||||
? '<span class="blog-card-chip">' + p.agent + "</span>"
|
? '<span class="blog-card-chip">' + p.agent + "</span>"
|
||||||
: "";
|
: "";
|
||||||
|
var videoChip = p.video
|
||||||
|
? '<span class="blog-card-chip blog-card-chip-video">▶ video</span>'
|
||||||
|
: "";
|
||||||
return (
|
return (
|
||||||
'<a href="' +
|
'<a href="' +
|
||||||
p.link +
|
p.link +
|
||||||
@@ -758,6 +761,7 @@ function blogRender() {
|
|||||||
p.area +
|
p.area +
|
||||||
"</span>" +
|
"</span>" +
|
||||||
chip +
|
chip +
|
||||||
|
videoChip +
|
||||||
"</span>" +
|
"</span>" +
|
||||||
'<span class="blog-card-date">' +
|
'<span class="blog-card-date">' +
|
||||||
blogFormatDate(p.date) +
|
blogFormatDate(p.date) +
|
||||||
|
|||||||
@@ -68,6 +68,7 @@
|
|||||||
"date": "2026-06-10",
|
"date": "2026-06-10",
|
||||||
"area": "speed-run",
|
"area": "speed-run",
|
||||||
"agent": "hermes",
|
"agent": "hermes",
|
||||||
|
"video": true,
|
||||||
"headline": "Speed Run: Create an Odoo Community Agent from Zero",
|
"headline": "Speed Run: Create an Odoo Community Agent from Zero",
|
||||||
"teaser": "From signup to an Odoo-connected AI agent in under 10 Minutes. Free trial included.",
|
"teaser": "From signup to an Odoo-connected AI agent in under 10 Minutes. Free trial included.",
|
||||||
"link": "blog/posts/speed-run-odoo-community-agent.html"
|
"link": "blog/posts/speed-run-odoo-community-agent.html"
|
||||||
|
|||||||
Reference in New Issue
Block a user