diff options
author | Sergey Karayev <sergeykarayev@gmail.com> | 2014-08-11 15:09:53 -0700 |
---|---|---|
committer | Sergey Karayev <sergeykarayev@gmail.com> | 2014-08-11 15:09:53 -0700 |
commit | 9c3710eddbcb42175e71e759554f618b3e5d9009 (patch) | |
tree | 7c478e5d285618a6fd2448bcecb854c9b5c9b917 /docs | |
parent | 3316978fdf71a0ec3fa568d66af5684f28ec3645 (diff) | |
download | caffeonacl-9c3710eddbcb42175e71e759554f618b3e5d9009.tar.gz caffeonacl-9c3710eddbcb42175e71e759554f618b3e5d9009.tar.bz2 caffeonacl-9c3710eddbcb42175e71e759554f618b3e5d9009.zip |
[docs] sorting of examples. if doesn’t work for you, update jekyll.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.md | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/index.md b/docs/index.md index 0450edea..e7a81982 100644 --- a/docs/index.md +++ b/docs/index.md @@ -46,18 +46,16 @@ Guidelines for development and contributing to Caffe. ### Examples -{% for page in site.pages %} -{% if page.category == 'example' %} +{% assign examples = site.pages | where:'category','example' | sort: 'priority' %} +{% for page in examples %} - <div><a href="{{page.url}}">{{page.title}}</a><br />{{page.description}}</div> -{% endif %} {% endfor %} ### Notebook examples -{% for page in site.pages %} -{% if page.category == 'notebook' %} +{% assign notebooks = site.pages | where:'category','notebook' %} +{% for page in notebooks %} - <div><a href="http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/{{page.original_path}}">{{page.title}}</a><br />{{page.description}}</div> -{% endif %} {% endfor %} ## Citing Caffe |