diff --git a/index.html b/index.html index d001caf..e53797d 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@

All {{site.posts | size}} - {% for category in site.categories order:ascending %} + {% for category in site.categories %} {{ category | first }} {{ category | last | size }} @@ -63,22 +63,3 @@

- \ No newline at end of file diff --git a/note.md b/note.md new file mode 100644 index 0000000..234aa5d --- /dev/null +++ b/note.md @@ -0,0 +1,15 @@ + +展示分类更好的方式: + +http://stackoverflow.com/a/24745825 + +Bonus: + +If you want to display only the posts in a certain tag/category (and not all posts), you can change the first for loop (the one inside the capture) to one of these: + +{% for post in site.tags['whatever'] %} + +{% for post in site.categories['whatever'] %} + +=========== +