【问题标题】:Meteor Spiderable with phantomjs doesn't show yield content带有 phantomjs 的 Meteor Spiderable 不显示产量内容
【发布时间】:2014-11-04 16:12:39
【问题描述】:

按照这篇文章 METEOR SEO GUIDE https://gentlenode.com/journal/meteor-12-the-complete-guide-to-seo/20:

我已经安装了 Spiderable (meteor add spiderable)、phantomjs (apt-get install phantomjs),确保我所有的出版物都有回报。我正在使用流星 1.0.0 和 Iron-router 1.0.0。

一切似乎都运行良好,当我打开 localhost/?_escaped_fragment_= 时,我得到了 phantomjs 生成的静态内容(没有错误),但 {{>yield}} 中的内容不包括在内。如果我尝试将任何数据直接加载到布局 phantomjs 也会读取它。

如何使 {{>yield}} 中包含的内容对蜘蛛可读?

感谢任何帮助。

【问题讨论】:

    标签: meteor seo web-crawler phantomjs iron-router


    【解决方案1】:

    我使用 Iron router 0.9.4 版本解决了这个问题,但我仍然无法使用最新的 Iron router

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多