Skip to content

Commit 4897d9e

Browse files
committed
fix: change jinja pattern to normal html
1 parent b7db16a commit 4897d9e

2 files changed

Lines changed: 47 additions & 12 deletions

File tree

templates/ceph/_blog.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<section class="p-section--deep">
2+
<div class="u-fixed-width">
3+
<hr class="p-rule" />
4+
<h2 class="p-muted-heading">Latest blogs about Ceph</h2>
5+
</div>
6+
<div class="grid-row" id="maas-latest"></div>
7+
8+
<template id="maas-latest-template">
9+
<div class="grid-col-2 grid-col-medium-2 u-equal-height-items">
10+
<div class="p-section--shallow">
11+
<div class="u-crop--16-9">
12+
<div class="article-image p-image-wrapper"></div>
13+
</div>
14+
<h3 class="p-heading--5">
15+
<a class="article-link article-title"></a>
16+
</h3>
17+
<p class="article-excerpt"></p>
18+
</div>
19+
</div>
20+
</template>
21+
</section>
22+
23+
<script src="{{ versioned_static('js/modules/latest-news/latest-news.js') }}"></script>
24+
{# djlint:off #}
25+
<script>
26+
canonicalLatestNews.fetchLatestNews(
27+
{
28+
articlesContainerSelector: "#maas-latest",
29+
articleTemplateSelector: "#maas-latest-template",
30+
excerptLength: 200,
31+
{% if group_id %}
32+
groupId: {{ group_id }},
33+
{% endif %}
34+
{% if tag_id %}
35+
tagId: {{ tag_id }},
36+
{% endif %}
37+
linkImage: true,
38+
limit: 4
39+
}
40+
)
41+
</script>
42+
{# djlint:on #}
43+

templates/ceph/index.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -400,21 +400,13 @@ <h2>Learn more <br>about Canonical Ceph</h2>
400400
<p>Discover how AI impacts your storage systems and what it means for your business. Discover insights into storage economics, scale out storage architecture, and AI application improvements to improve storage performance.</p>
401401
</div>
402402
</div>
403-
404403
</div>
405404
</section>
406405

407-
<section class="grid-row p-section--deep">
408-
{{ vf_blog(
409-
title={"text": "Latest blogs about ceph"},
410-
padding="deep",
411-
template_config={
412-
"enabled": True,
413-
"template_container_id": "maas-latest",
414-
"layout": "4-blocks",
415-
"template_id": "maas-latest-template"
416-
})
417-
}}
406+
{% with tag_id="1304" %}
407+
{% include "ceph/_blog.html" %}
408+
{% endwith %}
409+
418410
</section>
419411

420412
{{ load_form("/ceph") | safe }}

0 commit comments

Comments
 (0)