-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
225 lines (212 loc) · 8.62 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
---
layout: page
title: SasView
subtitle: SasView for Small Angle Scattering Analysis
use-site-title: true
bigimg:
- "/img/sasview_init.jpg"
---
<!-- Just one box for 5 but with link to 4 -->
<h3 class="text-center">Download The Latest Release Version of SasView</h3>
<div class="row">
<div class="col-sm-6">
<div class="jumbotron">
<h3 class="text-center">Version 6</h3>
{% for post in site.posts %}
{% if post.tags contains "release" %}
{% assign versionSplitted = post.title | remove: "Version " | split: "." %}
{% if versionSplitted[0] == "6" %}
{% assign post_title = post.title | split: ' ' %}
<p class="text-center"><a class="btn btn-primary btn-lg" href="https://github.com/SasView/sasview/releases/tag/v{{post_title[-1]}}" role="button">
Download {{ post.title }}</a></p>
<p class="text-center">Released {{ post.date | date: "%B %-d, %Y" }}.
<br/>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">See what's new!</a></p>
{% break %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
<div class="col-sm-6">
<div class="jumbotron">
<h3 class="text-center">Version 5</h3>
{% for post in site.posts %}
{% if post.tags contains "release" %}
{% assign versionSplitted = post.title | remove: "Version " | split: "." %}
{% if versionSplitted[0] == "5" %}
{% assign post_title = post.title | split: ' ' %}
<p class="text-center"><a class="btn btn-primary btn-lg" href="https://github.com/SasView/sasview/releases/tag/v{{post_title[-1]}}" role="button">
Download {{ post.title }}</a></p>
<p class="text-center">Released {{ post.date | date: "%B %-d, %Y" }}.
<br/>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">See what's new!</a></p>
{% break %}
{% endif %}
{% endif %}
{% endfor %}
{% for post in site.posts %}
{% if post.tags contains "release" %}
{% assign versionSplitted = post.title | remove: "Version " | split: "." %}
{% if versionSplitted[0] == "4" %}
{% assign post_title = post.title | split: ' ' %}
<p class="text-center"><a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">Looking for Version 4?</a></p>
{% break %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
<!-- The new 2 box version 4 and 5 Download -->
<!--
<h3 class="text-center">Download The Latest Release Version of SasView</h3>
<div class="row">
<div class="col-sm-6">
<div class="jumbotron">
<h3 class="text-center">Version 4</h3>
{% for post in site.posts %}
{% if post.tags contains "release" %}
{% assign versionSplitted = post.title | remove: "Version " | split: "." %}
{% if versionSplitted[0] == "4" %}
{% assign post_title = post.title | split: ' ' %}
<p class="text-center"><a class="btn btn-primary btn-lg" href="https://github.com/SasView/sasview/releases/tag/v{{post_title[-1]}}" role="button">
Download {{ post.title }}</a></p>
<p class="text-center">Released on {{ post.date | date: "%B %-d, %Y" }}.
<br/>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">Important Message!</a></p>
{% break %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
<div class="col-sm-6">
<div class="jumbotron">
<h3 class="text-center">Version 5</h3>
{% for post in site.posts %}
{% if post.tags contains "release" %}
{% assign versionSplitted = post.title | remove: "Version " | split: "." %}
{% if versionSplitted[0] == "5" %}
{% assign post_title = post.title | split: ' ' %}
<p class="text-center"><a class="btn btn-primary btn-lg" href="https://github.com/SasView/sasview/releases/tag/v{{post_title[-1]}}" role="button">
Download {{ post.title }}</a></p>
<p class="text-center">Released on {{ post.date | date: "%B %-d, %Y" }}.
<br/>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">See what's new!</a></p>
{% break %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
-->
<!-- The old 1 version download: Uncomment below to make it active -->
<!-- Iterates all the posts in order of appearance in the main page (by default
sorted by most recent) and then all the tags until it finds a release tag
- Download: Link must be https://github.com/SasView/sasview/releases/tag/v4.2.1
- The version comes from the post title
-->
<!--
<div class="row">
<div class="col-sm-12">
<div class="jumbotron">
<h3 class="text-center">Download The Latest Release SasView</h3>
{% for post in site.posts %}
{% if post.tags contains "release" %}
{% assign post_title = post.title | split: ' ' %}
<p class="text-center"><a class="btn btn-primary btn-lg" href="https://github.com/SasView/sasview/releases/tag/v{{post_title[-1]}}" role="button">
Download {{ post.title }}</a></p>
<p class="text-center">Released on {{ post.date | date: "%B %-d, %Y" }}.
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">See what's new!</a></p>
{% break %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
-->
<!-- Highlight -->
{% for post in site.posts %}
{% for tag in post.tags %}
{% assign tag_split = tag | split: " " %}
{% if tag_split[0] == "highlight" %}
{% capture now_unix %}{{'now' | date: '%s'}}{% endcapture %}
{% capture highlight_date %}{{tag_split[1] | date: '%s'}}{% endcapture %}
{% if highlight_date >= now_unix %}
<div class="well">
<h3 class="text-center"><u>{{ post.title }}</u>
<div class="pull-right"><img src="{{ site.baseurl }}/img/pin.png"></div></h3>
<p>{{ post.excerpt | strip_html | xml_escape | truncatewords: 15 }}
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">Read more...</a></p>
</div>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
<!-- Description -->
<p><strong>A SAS Community Project launched from the NSF DANSE effort</strong><br/>
SasView is a Small Angle Scattering Analysis Software Package, originally developed as part of the NSF DANSE project under the name SansView, now managed by an international collaboration of facilities. Feedback and contributions are welcome and encouraged.
</p>
<!-- Posts -->
<h1>News:</h1>
<div class="posts-list">
{% for post in paginator.posts %}
<article class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title">{{ post.title }}</h2>
{% if post.subtitle %}
<h3 class="post-subtitle">
{{ post.subtitle }}
</h3>
{% endif %}
</a>
<p class="post-meta">
Posted on {{ post.date | date: "%B %-d, %Y" }}
</p>
<div class="post-entry-container">
{% if post.image %}
<div class="post-image">
<a href="{{ post.url | prepend: site.baseurl }}">
<img src="{{ site.baseurl }}{{ post.image }}">
</a>
</div>
{% endif %}
<div class="post-entry">
{{ post.excerpt | strip_html | xml_escape | truncatewords: site.excerpt_length }}
{% assign excerpt_word_count = post.excerpt | number_of_words %}
{% if post.content != post.excerpt or excerpt_word_count > site.excerpt_length %}
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read More]</a>
{% endif %}
</div>
</div>
{% if post.tags.size > 0 %}
<div class="blog-tags">
Tags:
{% if site.link-tags %}
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tags#{{- tag -}}">{{- tag -}}</a>
{% endfor %}
{% else %}
{{ post.tags | join: ", " }}
{% endif %}
</div>
{% endif %}
</article>
{% endfor %}
</div>
{% if paginator.total_pages > 1 %}
<ul class="pager main-pager">
{% if paginator.previous_page %}
<li class="previous">
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">← Newer Posts</a>
</li>
{% endif %}
{% if paginator.next_page %}
<li class="next">
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts →</a>
</li>
{% endif %}
</ul>
{% endif %}