{# CV Page Builder Sidebar — renders widgets from cvPageConfig.sidebar #} {% if cvPageConfig.sidebar and cvPageConfig.sidebar.length %} {% for widget in cvPageConfig.sidebar %} {% if widget.type == "author-card" %} {% include "components/widgets/author-card.njk" %} {% elif widget.type == "social-activity" %} {% include "components/widgets/social-activity.njk" %} {% elif widget.type == "github-repos" %} {% include "components/widgets/github-repos.njk" %} {% elif widget.type == "funkwhale" %} {% include "components/widgets/funkwhale.njk" %} {% elif widget.type == "recent-posts" %} {% include "components/widgets/recent-posts.njk" %} {% elif widget.type == "blogroll" %} {% include "components/widgets/blogroll.njk" %} {% elif widget.type == "feedland" %} {% include "components/widgets/feedland.njk" %} {% elif widget.type == "categories" %} {% include "components/widgets/categories.njk" %} {% elif widget.type == "search" %} {% include "components/widgets/search.njk" %} {% elif widget.type == "webmentions" %} {% include "components/widgets/webmentions.njk" %} {% elif widget.type == "custom-html" %} {# Custom content widget #} {% set wConfig = widget.config or {} %}
{% if wConfig.title %}

{{ wConfig.title }}

{% endif %} {% if wConfig.content %}
{{ wConfig.content | safe }}
{% endif %}
{% else %} {% endif %} {% endfor %} {% endif %}