apostrophe-cms - 使用引导程序时撇号-cms 不显示小部件
问题描述
我在 bootstrap 中使用撇号。我参考了下面的 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:我是撇号的初学者
解决方案
推荐阅读
- javascript - 对象的对象的访问属性
- c# - 合并位时,在移位期间包含 OR 会发生什么
- google-bigquery - 是否有 isnumeric 的 BigQuery 版本
- sequelize.js - 如何在 Sequelize 表中指定范围?
- angular - 更改租户时重新加载整个页面的原因是什么?
- oracle - 适用于 Visual Studio 2017 的 Oracle 开发人员工具 (ODT)
- git - Git:从目录中删除文件,但确保该文件的版本保留在 git 历史记录中
- javascript - Tempusdominus datetimepicker 打开方向
- apache-kafka - java KafkaConsumer 永远不会得到结果
- dart - Flutter - 来自 json api 的数据将列在下拉列表中