forked from metacpan/metacpan-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.tx
41 lines (41 loc) · 1.47 KB
/
home.tx
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
%% cascade base {
%% canonical => $canonical || '/',
%% rss => $rss || '/recent.rss',
%% rss_title => $rss_title || 'Recent CPAN Uploads - MetaCPAN',
%% }
%% override left_nav -> { }
%% override search_bar -> { }
%% override content -> {
<script type="application/ld+json">
[
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "MetaCPAN",
"url": "/",
"image": "/static/icons/metacpan-icon-large.png",
"potentialAction": {
"@type": "SearchAction",
"target": "/search?q={query}",
"query-input": "required name=query",
"query": "required"
}
}
]
</script>
<div align="center" class="home">
<a href="/" class="big-logo" alt="meta::cpan"></a>
<h4>A search engine for <a href="https://www.cpan.org">CPAN</a></h4>
<form action="/search">
<input type="hidden" name="size" id="metacpan_search-size" value="20">
<div class="form-group">
<input type="text" name="q" size="41" autofocus="autofocus" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control home-search-input">
</div>
<div class="form-group">
<button type="submit" class="btn search-btn">Search the CPAN</button>
<button type="submit" class="btn search-btn" name="lucky" value="1" title="Hint: Press shift and enter if you are feeling lucky">I'm Feeling Lucky</button>
<button class="btn search-btn help-btn">?</button>
</div>
</form>
</div>
%% }