-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
executable file
·57 lines (49 loc) · 1.57 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
layout: portfolio
title: Scientific Filesystem (SCI-F) Apps
permalink: /
---
<div class="row">
<div class="col-md-6">
<a class="btn btn-theme"
href="/apps/api/index.json"
role="button"
style="margin-left:10px;">JSON</a>
</div>
<div class="col-md-5" style="margin-right:20px">
<a class="btn btn-theme"
href="/apps/category/#Example"
role="button"
style="float:right;">Tutorials</a>
<a class="btn btn-theme"
href="/apps/generate"
role="button"
title="Coming Soon!"
style="float:right;">Generate</a>
</div>
</div>
{% include tags.html %}
<div class="row">
{% assign loopcount = 1 %}
{% for post in site.posts %}
{% if loopcount < 4 %}
<!-- Parse news-->
{% if post.category == "examples" %}
{% assign loopcount = loopcount | plus: 1 %}
<div class="col-md-4">
<h2><a class="post-link" href="{{ post.url | remove: "/" }}">{{ post.title }}</a></h2>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<p>{{ post.content | truncatewords: 20 | strip_html }}</p>
</div>
{% endif %}
{% if post.category == "tutorials" %}
{% assign loopcount = loopcount | plus: 1 %}
<div class="col-md-4">
<h2><a class="post-link" href="{{ post.url | remove: "/" }}">{{ post.title }}</a></h2>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<p>{{ post.content | truncatewords: 20 | strip_html }}</p>
</div>
{% endif %}
{% endif %}
{% endfor %}
</div>