浏览代码

Add links box to root page only

Thibaut 10 年之前
父节点
当前提交
16dcc3d2f8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/docs/filters/core/links.rb

+ 1 - 1
lib/docs/filters/core/links.rb

@@ -1,7 +1,7 @@
 module Docs
   class LinksFilter < Filter
     def call
-      html.prepend(links_html) if links
+      html.prepend(links_html) if root_page? && links
       html
     end