This repository has been archived by the owner on Sep 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (46 loc) · 1.74 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
---
layout: default
description: סטודיו משלך הוא מיזם חברתי-מגדרי הפועל בירושלים והוקם על מנת לתמוך באמניות צעירות בתחילת דרכן
---
<h1>חדש בגלריית סטודיו משלך</h1>
{%
assign pages = site.pages | sort: "date" | reverse %}{%
assign index = 0 %}{%
assign max = 4 %}
<div class=grid>{%
for item in pages %}{%
if item.layout == "exhibition" %}{%
if index < max %}{%
if index > 0 %}{% assign short = true %}{% else %}{% assign short = nil %}{% endif %}{%
if index > 3 %}{% assign hideImage = true %}{% else %}{% assign hideImage = nil %}{% endif %}{%
if hideImage == nil and index == 1 %}{% assign imageClassName = "small" %}{% else %}{% assign imageClassName = nil %}{% endif %}{%
if index < 2 %}{% assign className = "span" %}{% else %}{% assign className = nil %}{% endif %}{%
include exhibition.html
data = item
className = className
hideImage = hideImage
imageClassName = imageClassName
short = short
%}{%
endif %}{%
assign index = index | plus: 1 %}{%
endif %}{%
endfor %}{%
assign more = index | minus: max %}{%
if more %}
<div><a class=button href=/exhibitions>קרא עוד {{ more }}</a></div>{%
endif %}
</div>{%
assign pages = site.pages | sort: "date" | reverse %}{%
assign index = 0 %}
<h2>כתבות</h2>
<div class=grid>{%
for item in pages %}{%
if item.layout == "publication" %}{%
if index < max %}{%
include publication.html data = item short = true %}{%
assign index = index | plus: 1 %}{%
endif %}{%
endif %}{%
endfor %}
</div>