最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

liquid - Nested partials, cssscript includes aren't loading in eleventy - Stack Overflow

programmeradmin3浏览0评论

I have a page that uses a partial and this partial loops through a collection "docs".

{% set itemList = collections.docs %}
{% include 'partials/details.njk' %}

I also have a gallery partial, which takes frontmatter and builds a gallery:

gallery:
  - image: /assets/images/projects/FAR/FAR1-workbook.PNG
    alt: 'Fidelity Investments FAR workbook, 1st page'
    caption: 'Fidelity Accessibility Requirements scoring workbook'
  - image: /assets/images/projects/FAR/FAR1-scores-for-steps.PNG
    alt: 'Close-up of a delicate white flower with a yellow center, surrounded by green leaves'
    caption: 'Jasmine nightshades blooming in July'
  - image: /assets/images/projects/FAR/FAR1-worksheet.PNG
    alt: "A traditional Asturian village with it's raised granaries, surrounded by lush green hills and mountains"
    caption: 'Traditional houses in Santullano, Somiedo Natural Park, Asturias'
  - image: /assets/images/projects/FAR/FAR1-worksheet-filled.PNG
    alt: 'Close-up with unfocused background of a vibrant large blue butterfly gracefully perched on a delicate flower amidst lush green grass'
    caption: 'A large blue (Phengaris arion)'
---

and the include

{% include "partials/gallery.njk" %}

If I use the gallery partial within a page within the docs collection, the gallery include's css/script includes are not loaded.

How do I ensure that nested nature of the partials/includes, works as expected?

发布评论

评论列表(0)

  1. 暂无评论