ブログ一覧ページに、記事以外のリンクを掲載したい

ブログ一覧に、①ブログ記事ページへのリンクと、②それ以外のリンク(別のカテゴリページへのリンクなど)の2種を出力させたいと思っています。

リファレンスでは、以下のように指南があり、私の解釈では、②の場合は空の記事を作成し、そこに埋め込まれる以下のテキストフィールドにリンク先(文字列)を記入することでその値を拾ってくれる…と解釈しています。

{% module "custom_blog_link" path="@hubspot/text", label="Link to external press item", export_to_template_context=True %}

その場合、実際にブログ一覧側のソースコードですが、以下のようにしてみたものの、上手く値が拾えてない状況です。

なにか良い解決策を教えていただきたいです。

▼blog-index.html:

{% module "custom_blog_link" path="@hubspot/text", label="ブログ記事以外のリンク", export_to_template_context=True %}

{% block body %}
<ul>
{% for content in contents %}
{% set blog_url = content.absolute_url %}
{% if content.widgets.custom_blog_link.body.value %}
{% set blog_url = content.widgets.custom_blog_link.body.value %}
{% endif %}

<li>
<a href="{{ blog_url }}">
<p class="title">{{ content.name }}</p>
</a>
</li>

{% endfor %}
</ul>

{% endblock body %}

Hi, @YKAKO :waving_hand: Thanks for your post! I’d like to invite some of our amazing champions to the conversation — hey @skimura @KMurota @assi, can you help @YKAKO?

Thank you very much for taking a look! — Jaycee