Use site.docs instead of site.pages.

This commit is contained in:
Parker Moore 2014-07-31 04:34:38 -04:00
parent 03bca72af6
commit e57cd0031d
33 changed files with 6 additions and 2 deletions

View File

@ -7,3 +7,7 @@ excerpt_separator: noifniof3nioaniof3nioafafinoafnoif
repository: https://github.com/jekyll/jekyll repository: https://github.com/jekyll/jekyll
help_url: https://github.com/jekyll/jekyll-help help_url: https://github.com/jekyll/jekyll-help
google_analytics_id: UA-50755011-1 google_analytics_id: UA-50755011-1
collections:
docs:
output: true

View File

@ -3,7 +3,7 @@
{% for item in items %} {% for item in items %}
{% assign item_url = item | prepend:"/docs/" | append:"/" %} {% assign item_url = item | prepend:"/docs/" | append:"/" %}
{% for p in site.pages %} {% for p in site.docs %}
{% if p.url == item_url %} {% if p.url == item_url %}
<option value="{{ site.url }}{{ p.url }}">{{ p.title }}</option> <option value="{{ site.url }}{{ p.url }}">{{ p.title }}</option>
{% endif %} {% endif %}

View File

@ -10,7 +10,7 @@
{% assign c = "" %} {% assign c = "" %}
{% endif %} {% endif %}
{% for p in site.pages %} {% for p in site.docs %}
{% if p.url == item_url %} {% if p.url == item_url %}
<li class="{{ c }}"><a href="{{ site.url }}{{ p.url }}">{{ p.title }}</a></li> <li class="{{ c }}"><a href="{{ site.url }}{{ p.url }}">{{ p.title }}</a></li>
{% endif %} {% endif %}