问题描述
我使用src =“ example.com/json”看到了amp-list。但是有没有办法在amp-list中使用Blogger json Feed?
<amp-list width="auto" height="140" layout="fixed-height"
src="https://example.blogspot.com/Feeds/posts/default?alt=json">
<template type="amp-mustache">
-----
</template>
</amp-list>
解决方法
通过使用以下模板配置,您应该能够从Blogger提要中渲染数据-
-MG3WxkPWaK-SFh7Q5M_ / ynnh
,
是的,有一种方法可以在amp列表中使用Blogger JSON;
为此,您需要提及items='feed.entry'
进入JSON的子部门
然后按照“胡子模板”准则获取必填字段。