Navigation Menu

Skip to content

Commit

Permalink
Fix link to source paths for news articles
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Feb 13, 2014
1 parent 86a5b7a commit 2cec82f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 221 deletions.
10 changes: 7 additions & 3 deletions _layouts/base.html
Expand Up @@ -70,10 +70,14 @@ <h1>{{ page.title }}</h1>
<li><a href="/ja/{{ relative_path }}">日本語</a></li>
</ul>
<p class="contribute">
{% if page.language == "en" %}
{% assign source_path = page.url | remove: ".html" | append: ".md" %}
{% if page.categories contains "news" %}
{% assign source_path = page.url | remove_first: "/news" | prepend: "/news/_posts" | remove: ".html" | append: ".md" %}
{% else %}
{% assign source_path = page.url | prepend: "/_po" | remove: ".html" | append: ".po" %}
{% if page.language == "en" %}
{% assign source_path = page.url | remove: ".html" | append: ".md" %}
{% else %}
{% assign source_path = page.url | prepend: "/_po" | remove: ".html" | append: ".po" %}
{% endif %}
{% endif %}
{% assign source_path = source_path | prepend: "https://github.com/droonga/droonga.org/blob/gh-pages" %}
<a href="{{ source_path }}">{{ page.label_edit }}</a></p>
Expand Down
30 changes: 0 additions & 30 deletions _posts/2013-11-29-release.md

This file was deleted.

55 changes: 0 additions & 55 deletions _posts/2013-12-29-release.md

This file was deleted.

53 changes: 0 additions & 53 deletions _posts/2014-01-29-release.md

This file was deleted.

48 changes: 0 additions & 48 deletions _posts/2014-02-09-release.md

This file was deleted.

32 changes: 0 additions & 32 deletions _posts/2014-02-28-release.md

This file was deleted.

0 comments on commit 2cec82f

Please sign in to comment.