forked from opensearch-project/project-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
homepage.html
117 lines (93 loc) · 3.6 KB
/
homepage.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
---
layout: default
---
{% capture header %}
{% comment%}<h1 class="visuallyhidden">OpenSearch</h1>
<p>
<em>{{- page.headline -}}</em>
</p>
{% endcomment %}
{% comment%}
<p>
<a href="" class="cta">get started</a>
</p>
{% endcomment %}
{% endcapture %}
{% include copy_banner.html %}
{% capture content %}
<div class="section headline">
{% include carousel.html carousel-id="herobanner" carousel-collection=site.herobanners %}
</div>
<div class="section">
<!-- <h2>{{ page.greeting }}</h2> -->
<p>
{{ page.long_description | markdownify }}
</p>
</div>
<div class="section" id="{{page.callouts_id}}">
<!-- <dl class="{{ page.callouts_class }}">
<h2>{{ page.callouts_head }}</h2>
{% if page.callouts_leader %}<p>{{page.callouts_leader}}</p>{% endif %}
{% for callout in site.data.principles %}
<dt>{{callout.title}}</dt>
<dd><p>{{callout.description}}</p></dd>
</dd>
{% endfor %}
-->
{% include testimonial-carousel.html %}
</div>
{% endcapture %}
{% capture content_secondary %}
<!--<div class="section">
<h1>{{ page.secondary.heading }}</h1>
{{ page.secondary.content | markdownify }}
</div>-->
<!-- END #content-secondary -->
{% endcapture %}
{% capture content_related %}
<div role="complementary">
<a href="{{page.ctas.primary.url}}" class="cta">{{page.ctas.primary.text}}</a>
{% assign org = site.data.repos | find: "shortname", "org" %}
{% if org.url %}
<a href="{{ org.url }}" target="_blank" class="cta outline">
{{page.ctas.pre}} {{ org.title }} {{page.ctas.post}}
</a>
{% endif %}
<a href="{{ page.ctas.roadmap.url }}" class="link-readmore" target="_blank">{{ page.ctas.roadmap.text }}</a>
{% assign versions = site.versions | sort_versions: 'version_sort' | reverse %}
{% assign latest = versions | first %}
{% assign previous_major = latest.version | split: "." | first | plus: -1 %}
{% for version in versions %}
{% assign major_version = version.version | split: "." | first | plus: 0 %}
{% if major_version == previous_major %}
{% assign latest_first = version %}
{% break %}
{% endif %}
{% endfor %}
<div class="latest-version">{{ page.version_feature.latest_label }} {{ latest.version }} {{ page.version_feature.date_label }} {{ latest_first.version }} {{ page.version_feature.date_label }} {{ latest.date | date_to_string: "ordinal", "US" }}</div>
{% include feedback.html %}
<div class="whats-new">
<h3>What's new?</h3>
{% for post in site.posts limit:5 %}
<div class="whats-new-post">
<h4><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h4>
<p>{{ post.excerpt | strip_html | truncatewords: 20 }}</p>
</div>
{% endfor %}
<a href="{{ '/blog' | relative_url }}" class="link-readmore">More news</a>
</div>
{% for sidebar_category in page.sidebar %}
<h3>{{sidebar_category.title}}</h3>
{% if sidebar_category.description %}
{{ sidebar_category.description | markdownify }}
{% endif %}
<ul class="list-links-small">
{% for link in sidebar_category.links %}
<li><a href="{{ link.url }}">{{ link.title}}</a></li>
{% endfor %}
</ul>
{% if sidebar_category.more %} <a href="sidebar_category.more.url" class="link-readmore">{{sidebar_category.more.title}}</a> {%endif%}
{% endfor %}
</div>
{% endcapture %}
{% include base_3col.html %}