使用Livefyre API將Google AMP功能新增至Storify 2頁面,讓內容保持互動式和SEO友好。
若要搭配Storify 2使用Google AMP,您必須為Storify 2應用程式搭配Google AMP標籤建立頁面。
應用程式請求的AMP版本會從原始頁面更新(使用amp-live-list API中的pollInterval參數來設定更新請求的間隔)。 為確保AMP頁面上的訪客能快速取得最新內容,請在Storify 2 AMP頁面上保留低快取TTL。
包含在Storify 2應用程式中的貼文的非影像資產(例如視訊)必須使用HTTPS,如AMP規格所指定。 使用Google Cloud內容傳送網路(CDN)的AMP URL使用HTTPS。
若要搭配Storify 2使用Google AMP:
<style amp-custom>
標籤中,將下列Storify 2 AMP頁面的內容加入Storify 2頁面的CSS中:https://cdn.livefyre.com/libs/liveblog-v2-component/amp.min.csshttps://api.livefyre.com/app-service/v4/bootstrap/{{APP_ID}}/amp
其中{{APP_ID}}是Livefyre Studio中Storify 2應用程式的應用程式ID。