Skip to content

Commit db5ce07

Browse files
committed
reverting changes done for sort
1 parent 138b098 commit db5ce07

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

members/index.html

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,18 @@ <h1>PythonPune Members</h1>
1212
<th>Blog</th>
1313
<th>Homepage</th>
1414
</tr>
15-
{% assign all_urls = site.pages | map: 'to_liquid' | map: 'url' | sort %}
16-
{% for url in all_urls %}
17-
{% for page in site.pages %}
18-
{% capture prefix %}{{page.url | truncate: 15, ''}}{% endcapture%}
19-
{% if prefix == "/members/pages/" %}
20-
{% if page.url == url %}
21-
<tr>
22-
<td><a href="{{page.url}}">{{page.name}}{% if page.twitter_id %} (@{{page.twitter_id}}){% endif %}</a></td>
23-
{% if page.github_id %}<td><a href="http://github.com/{{page.github_id}}">&#x2713;</a></td>{% else %}<td>&nbsp;</td>{% endif %}
24-
{% if page.bitbucket_id %}<td><a href="http://bitbucket.org/{{page.bitbucket_id}}">&#x2713;</a></td>{% else %}<td>&nbsp;</td>{% endif %}
25-
{% if page.twitter_id %}<td><a href="http://twitter.com/{{page.twitter_id}}">&#x2713;</a></td>{% else %}<td>&nbsp;</td>{% endif %}
26-
{% if page.blog %}<td><a href="{{page.blog}}">&#x2713;</a></td>{% else %}<td>&nbsp;</td>{% endif %}
27-
{% if page.homepage %}<td><a href="{{page.homepage}}">&#x2713;</a></td>{% else %}<td>&nbsp;</td>{% endif %}
28-
</tr>
29-
{% endif %}
30-
{% endif %}
31-
{% endfor %}
15+
{% assign all_pages = site.pages | sort: 'url' %}
16+
{% for page in all_pages %}
17+
{% capture prefix %}{{page.url | truncate: 15, ''}}{% endcapture%}
18+
{% if prefix == "/members/pages/" %}
19+
<tr>
20+
<td><a href="{{page.url}}">{{page.name}}{% if page.twitter_id %} (@{{page.twitter_id}}){% endif %}</a></td>
21+
{% if page.github_id %}<td><a href="http://github.com/{{page.github_id}}">&#x2713;</a></td>{% else %}<td>&nbsp;</td>{% endif %}
22+
{% if page.bitbucket_id %}<td><a href="http://bitbucket.org/{{page.bitbucket_id}}">&#x2713;</a></td>{% else %}<td>&nbsp;</td>{% endif %}
23+
{% if page.twitter_id %}<td><a href="http://twitter.com/{{page.twitter_id}}">&#x2713;</a></td>{% else %}<td>&nbsp;</td>{% endif %}
24+
{% if page.blog %}<td><a href="{{page.blog}}">&#x2713;</a></td>{% else %}<td>&nbsp;</td>{% endif %}
25+
{% if page.homepage %}<td><a href="{{page.homepage}}">&#x2713;</a></td>{% else %}<td>&nbsp;</td>{% endif %}
26+
</tr>
27+
{% endif %}
3228
{% endfor %}
3329
</table>

0 commit comments

Comments
 (0)