Merge pull request #3292 from flyinprogrammer/eliminate_section_metadata
This commit is contained in:
commit
06b6e86d52
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Assets
|
title: Assets
|
||||||
prev_section: datafiles
|
|
||||||
next_section: migrations
|
|
||||||
permalink: /docs/assets/
|
permalink: /docs/assets/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Collections
|
title: Collections
|
||||||
prev_section: variables
|
|
||||||
next_section: datafiles
|
|
||||||
permalink: /docs/collections/
|
permalink: /docs/collections/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Configuration
|
title: Configuration
|
||||||
prev_section: structure
|
|
||||||
next_section: frontmatter
|
|
||||||
permalink: /docs/configuration/
|
permalink: /docs/configuration/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Continuous Integration
|
title: Continuous Integration
|
||||||
prev_section: deployment-methods
|
|
||||||
next_section: troubleshooting
|
|
||||||
permalink: /docs/continuous-integration/
|
permalink: /docs/continuous-integration/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Contributing
|
title: Contributing
|
||||||
prev_section: upgrading
|
|
||||||
next_section: history
|
|
||||||
permalink: /docs/contributing/
|
permalink: /docs/contributing/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Data Files
|
title: Data Files
|
||||||
prev_section: collections
|
|
||||||
next_section: assets
|
|
||||||
permalink: /docs/datafiles/
|
permalink: /docs/datafiles/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Deployment methods
|
title: Deployment methods
|
||||||
prev_section: github-pages
|
|
||||||
next_section: continuous-integration
|
|
||||||
permalink: /docs/deployment-methods/
|
permalink: /docs/deployment-methods/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Working with drafts
|
title: Working with drafts
|
||||||
prev_section: posts
|
|
||||||
next_section: pages
|
|
||||||
permalink: /docs/drafts/
|
permalink: /docs/drafts/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Extras
|
title: Extras
|
||||||
prev_section: plugins
|
|
||||||
next_section: github-pages
|
|
||||||
permalink: /docs/extras/
|
permalink: /docs/extras/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Front Matter
|
title: Front Matter
|
||||||
prev_section: configuration
|
|
||||||
next_section: posts
|
|
||||||
permalink: /docs/frontmatter/
|
permalink: /docs/frontmatter/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: GitHub Pages
|
title: GitHub Pages
|
||||||
prev_section: extras
|
|
||||||
next_section: deployment-methods
|
|
||||||
permalink: /docs/github-pages/
|
permalink: /docs/github-pages/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
layout: docs
|
layout: docs
|
||||||
title: History
|
title: History
|
||||||
permalink: "/docs/history/"
|
permalink: "/docs/history/"
|
||||||
prev_section: contributing
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 2.5.3 / 2014-12-22
|
## 2.5.3 / 2014-12-22
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Welcome
|
title: Welcome
|
||||||
next_section: quickstart
|
|
||||||
permalink: /docs/home/
|
permalink: /docs/home/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Installation
|
title: Installation
|
||||||
prev_section: quickstart
|
|
||||||
next_section: usage
|
|
||||||
permalink: /docs/installation/
|
permalink: /docs/installation/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Blog migrations
|
title: Blog migrations
|
||||||
prev_section: assets
|
|
||||||
next_section: templates
|
|
||||||
permalink: /docs/migrations/
|
permalink: /docs/migrations/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Creating pages
|
title: Creating pages
|
||||||
prev_section: drafts
|
|
||||||
next_section: variables
|
|
||||||
permalink: /docs/pages/
|
permalink: /docs/pages/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Pagination
|
title: Pagination
|
||||||
prev_section: permalinks
|
|
||||||
next_section: plugins
|
|
||||||
permalink: /docs/pagination/
|
permalink: /docs/pagination/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Permalinks
|
title: Permalinks
|
||||||
prev_section: templates
|
|
||||||
next_section: pagination
|
|
||||||
permalink: /docs/permalinks/
|
permalink: /docs/permalinks/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Plugins
|
title: Plugins
|
||||||
prev_section: pagination
|
|
||||||
next_section: extras
|
|
||||||
permalink: /docs/plugins/
|
permalink: /docs/plugins/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Writing posts
|
title: Writing posts
|
||||||
prev_section: frontmatter
|
|
||||||
next_section: drafts
|
|
||||||
permalink: /docs/posts/
|
permalink: /docs/posts/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Quick-start guide
|
title: Quick-start guide
|
||||||
prev_section: home
|
|
||||||
next_section: installation
|
|
||||||
permalink: /docs/quickstart/
|
permalink: /docs/quickstart/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Resources
|
title: Resources
|
||||||
prev_section: sites
|
|
||||||
next_section: upgrading
|
|
||||||
permalink: /docs/resources/
|
permalink: /docs/resources/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Sites using Jekyll
|
title: Sites using Jekyll
|
||||||
prev_section: troubleshooting
|
|
||||||
next_section: resources
|
|
||||||
permalink: /docs/sites/
|
permalink: /docs/sites/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Directory structure
|
title: Directory structure
|
||||||
prev_section: usage
|
|
||||||
next_section: configuration
|
|
||||||
permalink: /docs/structure/
|
permalink: /docs/structure/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Templates
|
title: Templates
|
||||||
prev_section: migrations
|
|
||||||
next_section: permalinks
|
|
||||||
permalink: /docs/templates/
|
permalink: /docs/templates/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Troubleshooting
|
title: Troubleshooting
|
||||||
prev_section: deployment-methods
|
|
||||||
next_section: sites
|
|
||||||
permalink: /docs/troubleshooting/
|
permalink: /docs/troubleshooting/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Upgrading
|
title: Upgrading
|
||||||
prev_section: resources
|
|
||||||
next_section: contributing
|
|
||||||
permalink: /docs/upgrading/
|
permalink: /docs/upgrading/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Basic Usage
|
title: Basic Usage
|
||||||
prev_section: installation
|
|
||||||
next_section: structure
|
|
||||||
permalink: /docs/usage/
|
permalink: /docs/usage/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Variables
|
title: Variables
|
||||||
prev_section: pages
|
|
||||||
next_section: collections
|
|
||||||
permalink: /docs/variables/
|
permalink: /docs/variables/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Jekyll on Windows
|
title: Jekyll on Windows
|
||||||
prev_section: configuration
|
|
||||||
next_section: posts
|
|
||||||
permalink: /docs/windows/
|
permalink: /docs/windows/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,39 @@
|
||||||
<div class="section-nav">
|
{% comment %}
|
||||||
|
Map grabs the doc sections, giving us an array of arrays. Join, flattens all
|
||||||
|
the items to a comma delimited string. Split turns it into an array again.
|
||||||
|
{% endcomment %}
|
||||||
|
{% assign docs = site.data.docs | map: 'docs' | join: ',' | split: ',' %}
|
||||||
|
|
||||||
|
{% comment %}
|
||||||
|
Because this is built for every page, lets find where we are in the ordered
|
||||||
|
document list by comparing url strings. Then if there's something previous or
|
||||||
|
next, lets build a link to it.
|
||||||
|
{% endcomment %}
|
||||||
|
|
||||||
|
{% for document in docs %}
|
||||||
|
{% assign document_url = document | prepend:"/docs/" | append:"/" %}
|
||||||
|
{% if document_url == page.url %}
|
||||||
|
<div class="section-nav">
|
||||||
<div class="left align-right">
|
<div class="left align-right">
|
||||||
{% if page.prev_section != null %}
|
{% if forloop.first %}
|
||||||
<a href="/docs/{{ page.prev_section }}/" class="prev">
|
|
||||||
Back
|
|
||||||
</a>
|
|
||||||
{% else %}
|
|
||||||
<span class="prev disabled">Back</span>
|
<span class="prev disabled">Back</span>
|
||||||
|
{% else %}
|
||||||
|
{% assign previous = forloop.index0 | minus: 1 %}
|
||||||
|
{% assign previous_page = docs[previous] | prepend:"/docs/" | append:"/" %}
|
||||||
|
<a href="{{ previous_page }}" class="prev">Back</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="right align-left">
|
<div class="right align-left">
|
||||||
{% if page.next_section != null %}
|
{% if forloop.last %}
|
||||||
<a href="/docs/{{ page.next_section }}/" class="next">
|
|
||||||
Next
|
|
||||||
</a>
|
|
||||||
{% else %}
|
|
||||||
<span class="next disabled">Next</span>
|
<span class="next disabled">Next</span>
|
||||||
|
{% else %}
|
||||||
|
{% assign next = forloop.index0 | plus: 1 %}
|
||||||
|
{% assign next_page = docs[next] | prepend:"/docs/" | append:"/" %}
|
||||||
|
<a href="{{ next_page }}" class="next">Next</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
{% break %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
Loading…
Reference in New Issue