forked from Maxence-L/notenote.link
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.html
76 lines (72 loc) · 3.91 KB
/
feed.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
{%- if page.permalink == "/" -%}
{%- for item in site.notes -%}
{%- if item.season == 'summer' -%}
<div class="feed-title-excerpt-block disable-select" data-url="{{site.url}}{{item.url}}">
<a href="{{item.url}}" style="text-decoration: none; color: #555555;">
{%- if item.status == "Ongoing" or item.status == "ongoing" -%}
<ul style="padding-left: 20px; margin-top: 20px;" class="tags">
<li style="padding: 0 5px; border-radius: 10px;" class="tag"><b>Status: </b>{{item.status | capitalize }}</li>
</ul>
<p style="margin-top: 0px;" class="feed-title">{{ item.title }}</p>
{%- else -%}
<ul style="padding-left: 20px; margin-top: 20px;" class="tags">
<li style="padding: 0 5px; border-radius: 10px;" class="tag">{{item.tags[0]}}</li>
</ul>
<p style="margin-top: 0px;" class="feed-title">{{ item.title }}</p>
{%- endif -%}
<p class="feed-excerpt">{{ item.content | strip_html | strip | escape | truncate: 100}}</p>
</a>
</div>
{%- endif -%}
{%- endfor -%}
{%- for item in site.notes -%}
{%- if item.season == 'spring' -%}
<div class="feed-title-excerpt-block disable-select" data-url="{{site.url}}{{item.url}}">
<a href="{{item.url}}" style="text-decoration: none; color: #555555;">
{%- if item.status == "Ongoing" or item.status == "ongoing" -%}
<ul style="padding-left: 20px; margin-top: 20px;" class="tags">
<li style="padding: 0 5px; border-radius: 10px;" class="tag"><b>Status: </b>{{item.status | capitalize }}</li>
</ul>
<p style="margin-top: 0px;" class="feed-title">{{ item.title }}</p>
{%- else -%}
<ul style="padding-left: 20px; margin-top: 20px;" class="tags">
<li style="padding: 0 5px; border-radius: 10px;" class="tag">{{item.tags[0]}}</li>
</ul>
<p style="margin-top: 0px;" class="feed-title">{{ item.title }}</p>
{%- endif -%}
<p class="feed-excerpt">{{ item.content | strip_html | strip | escape | truncate: 100}}</p>
</a>
</div>
{%- endif -%}
{%- endfor -%}
{%- for item in site.notes -%}
{%- if item.season == 'winter' -%}
<div class="feed-title-excerpt-block disable-select" data-url="{{site.url}}{{item.url}}">
<a href="{{item.url}}" style="text-decoration: none; color: #555555;">
{%- if item.status == "Ongoing" or item.status == "ongoing" -%}
<ul style="padding-left: 20px; margin-top: 20px;" class="tags">
<li style="padding: 0 5px; border-radius: 10px;" class="tag"><b>Status: </b>{{item.status | capitalize }}</li>
</ul>
<p style="margin-top: 0px;" class="feed-title">{{ item.title }}</p>
{%- else -%}
<ul style="padding-left: 20px; margin-top: 20px;" class="tags">
<li style="padding: 0 5px; border-radius: 10px;" class="tag">{{item.tags[0]}}</li>
</ul>
<p style="margin-top: 0px;" class="feed-title">{{ item.title }}</p>
{%- endif -%}
<p class="feed-excerpt">{{ item.content | strip_html | strip | escape | truncate: 100}}</p>
</a>
</div>
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- if page.permalink == "/notes" -%}
{%- for item in site.notes -%}
<div class="feed-title-excerpt-block disable-select" data-url="{{site.url}}{{item.url}}">
<a href="{{item.url}}" style="text-decoration: none; color: #333333;">
<p class="feed-title">{{ item.title }}</p>
<p class="feed-excerpt">{{ item.content | strip_html | strip | escape | truncate: 100 }}</p>
</a>
</div>
{%- endfor -%}
{%- endif -%}