Skip to content

Commit

Permalink
Implement short_title, resolves #21
Browse files Browse the repository at this point in the history
  • Loading branch information
tachyondecay committed Feb 6, 2015
1 parent 03052c7 commit 91e8894
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions _includes/nav-docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ <h3>{{ current_section | replace: '-',' ' | capitalize }}</h3>
{% if current_section == this_section and p.weight >= 0 %}
<li>
<a {% if p.url == page.url %}class="active"{% endif %} href="{{ site.baseurl }}{{ p.url }}">
{% if include.mode == "description" or p.short_title == null %}
{{ p.title }}
{% else %}
{{ p.short_title }}
{% endif %}
</a>
{% if include.mode == "description" %}
<p>{{ p.description }}</p>
Expand Down
3 changes: 2 additions & 1 deletion community/contributing-to-the-core.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Contributing to Symphony"
title: "Contributing to Symphony: Core"
short_title: Core Development
weight: 0
description: "Symphony is an open source product under the MIT license, meaning that we are very much open to contributions from our users and the wider community. Before you start, there's a couple of things you might like to know."
---
Expand Down
1 change: 1 addition & 0 deletions community/developing-extensions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Contributing to Symphony: Extensions"
short_title: Extension Development
weight: 5
description: "Give back to the community by making Symphony more awesome."
---
Expand Down
1 change: 1 addition & 0 deletions getting-started/upgrading-symphony.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Updating from an older version"
short_title: "Updating"
weight: 6
description: ""
---
Expand Down

0 comments on commit 91e8894

Please sign in to comment.