如何将帖子类型的首页作为Wordpress的首页提交?在设置中,Wordpress只允许页面作为首页。
Example:
Post type: Book
Post type slug: books
Post type index: archieve-books.php
我需要mydomain.com /book被称为mydomain.com的首页,谢谢。
我试图为Drupal 8的首页隔离节点模板。在Drupal 7中,我可以创建一个模板节点--Front.html,但在Drupal 8中,这似乎不起作用,那么,如何才能将目标节点仅用于首页。如果我用:
{% if node.isPromoted() and not node.isSticky() %}
它还会影响节点在其单个页面上的作用。
更新:我使用Bartik作为一个子主题