Skip to content

Commit

Permalink
Added consistent use of index redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
pelegri committed Jun 9, 2012
1 parent 897a304 commit 28ed19a
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 64 deletions.
2 changes: 1 addition & 1 deletion _includes/default-navigation.html
Expand Up @@ -22,7 +22,7 @@
</li>
<li>News Links
<ul>
<li><a href="{{ base-url }}/news/index.html">All News</a></li>
<li><a href="{{ base-url }}/news/All_News.html">All News</a></li>
<li><a href="{{ base-url }}/news/Latest_News.html">Latest News</a></li>
</ul>
</li>
Expand Down
7 changes: 7 additions & 0 deletions articles/index.md
@@ -0,0 +1,7 @@
---
title: BlackBerry Community Wiki - Articles
redirect-page: All_Articles
redirect-seconds: 0
redirect-message: "Please wait while we redirect you to the starting page"
layout: redirect
---
2 changes: 1 addition & 1 deletion index.md
@@ -1,6 +1,6 @@
---
title: BlackBerry Community Wiki
redirect-page: BlackBerry_Jam
redirect-page: news/Latest_News
redirect-seconds: 0
redirect-message: "Please wait while we redirect you to the starting page"
layout: redirect
Expand Down
62 changes: 62 additions & 0 deletions news/All_News.md
@@ -0,0 +1,62 @@
---
layout: news
title: Community News
---

<h3>Latest News</h3>
See [News Highlights](Latest_News.html).

<div id="posts">
<div>
{% for post in site.posts %}
<div style="border-bottom: 1px solid #DFDFDF;">
<div>
<h3><a class="newsPost" href="{{ site.baseurl }}/{{ post.url }}">{{ post.title }}</a></h3>
<div>{{ post.date | date: '%m-%d-%Y' }}</div>
{% if content %}
{{ content }}
{% else %}
{{ post.content }}
{% endif %}
</div>
</div>
{% endfor %}
</div>

{% if site.total_pages > 1 %}
<div>
<div>
{% if site.previous_page > 1 %}
{% capture page_url %}page{{ page }}{% endcapture%}
{% endif %}
{% if site.previous_page %}
<div>
<a href="{{ page_url }}" title="Go to previous page">
&laquo;
</a>
</div>
{% endif %}
<div>
{% for page in (1..site.total_pages) %}
<div>
{% if page > 1 %}
{% capture page_url %}page{{ page }}{% endcapture%}
{% endif %}
{% if page == site.page %}
{{ page }}
{% else %}
<a href="/{{ page_url }}">{{ page }}</a>
{% endif %}
</li>
{% endfor %}
{% if site.next_page %}
<div>
<a href="/page{{ site.next_page }}" title="Go to next page">
&raquo;
</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
</div>
69 changes: 7 additions & 62 deletions news/index.md
@@ -1,62 +1,7 @@
---
layout: news
title: Community News
---

<h3>Latest News</h3>
See [News Highlights](Latest_News.html).

<div id="posts">
<div>
{% for post in site.posts %}
<div style="border-bottom: 1px solid #DFDFDF;">
<div>
<h3><a class="newsPost" href="{{ site.baseurl }}/{{ post.url }}">{{ post.title }}</a></h3>
<div>{{ post.date | date: '%m-%d-%Y' }}</div>
{% if content %}
{{ content }}
{% else %}
{{ post.content }}
{% endif %}
</div>
</div>
{% endfor %}
</div>

{% if site.total_pages > 1 %}
<div>
<div>
{% if site.previous_page > 1 %}
{% capture page_url %}page{{ page }}{% endcapture%}
{% endif %}
{% if site.previous_page %}
<div>
<a href="{{ page_url }}" title="Go to previous page">
&laquo;
</a>
</div>
{% endif %}
<div>
{% for page in (1..site.total_pages) %}
<div>
{% if page > 1 %}
{% capture page_url %}page{{ page }}{% endcapture%}
{% endif %}
{% if page == site.page %}
{{ page }}
{% else %}
<a href="/{{ page_url }}">{{ page }}</a>
{% endif %}
</li>
{% endfor %}
{% if site.next_page %}
<div>
<a href="/page{{ site.next_page }}" title="Go to next page">
&raquo;
</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
</div>
---
title: BlackBerry Community News
redirect-page: Latest_News
redirect-seconds: 0
redirect-message: "Please wait while we redirect you to the starting page"
layout: redirect
---
7 changes: 7 additions & 0 deletions other/index.md
@@ -0,0 +1,7 @@
---
title: BlackBerry Community Wiki
redirect-page: Contribute
redirect-seconds: 0
redirect-message: "Please wait while we redirect you to the starting page"
layout: redirect
---

0 comments on commit 28ed19a

Please sign in to comment.