使用引导程序时Apostrophe-cms不显示小部件

时间:2018-12-13 23:31:49

标签: apostrophe-cms

我正在使用带有引导程序的撇号。我引用了以下github示例 https://github.com/apostrophecms/apostrophe-gallery-demo

它正确地创建了网页,问题在于它没有显示窗口小部件。 我的layout.html文件:可以正确显示内容

{# Automatically extends the right outer layout and also handles AJAX siutations #}
{% extends data.outerLayout %}

{% block title %}
{# Create a useful, SEO-friendly title tag based on what we have #}
{% if data.piece %}
{{ data.piece.title }}
{% elseif data.page %}
{{ data.page.title }}
{% else %}
{{ apos.log(‘Looks like you forgot to override the title block in a template that does not have access to an Apostrophe page or piece.’) }}
{% endif %}
{% endblock %}

{% block extraHead %}
{#
This block outputs its contents in the HTML document’s .
It is a good place to put extra and tags.
#}
{% endblock %}

{% block beforeMain %}

FAQ
{% endblock %}
{% block main %}
{#
Usually, your page templates in the apostrophe-pages module will override
this block. It is safe to assume this is where your page-specific content
should go.
#}
{% endblock %}

{% block afterMain %}

 Logo
{% endblock %}
my default page template used:

{% extends “layout.html” %}

{% import “macros/utils.html” as utils with context %}

{% block main %}

{{ utils.columns() }} {% endblock %}

请帮助我如何在页面上显示我的窗口小部件。 PS:我是单引号的初学者

0 个答案:

没有答案