1

我发现覆盖 outerLayout 和 templateError 核心模板非常容易,但是如何自定义各个错误页面(404、500 等)?我尝试了一些不同的命名选项,在 /lib/modules/apostrophe-pages/views/pages 和 /lib/modules/apostrophe-templates/views 中创建文件,但是每当我遇到错误的 URL 时,我仍然会得到控制台中返回的错误(在本地运行):

Error: template not found: notFound.html

4

1 回答 1

0

Apostrophe HOWTO 中有一些文档:http: //apostrophecms.org/docs/tutorials/howtos/notFoundPage.html

于 2017-04-10T02:28:15.330 回答