forked from josealvesmacieljunior/cccatalog-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-server.html
96 lines (95 loc) · 3.1 KB
/
index-server.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="twitter:card" content="summary_large_image" />
<meta
name="description"
content="A new Creative Commons search tool for creators seeking to discover and reuse free resources with greater ease."
/>
<meta name="twitter:site" content="@creativecommons" />
<meta name="og:title" content="CC Search" />
<meta
name="og:image"
content="{{ state.image && state.image.url ? state.image.url : 'https://ccsearch.creativecommons.org/static/img/cc-logo_large_black.png'}}"
/>
<meta
name="og:description"
content="Empowering the world to share through 6 simple licenses + a global community of advocates for open. "
/>
<meta name="twitter:site" content="@creativecommons" />
<meta
property="og:url"
content="{{ `https://search.creativecommons.org${ url }` }}"
/>
<meta property="og:site_name" content="CC Search" />
<% if (process.env.NODE_ENV == 'production') { %>
<meta
http-equiv="Content-Security-Policy"
content="upgrade-insecure-requests"
/>
<% } %>
<title>CC Search</title>
<link
rel="icon"
type="image/png"
href="https://d15omoko64skxi.cloudfront.net/wp-content/uploads/2016/05/cc-site-icon-150x150.png"
sizes="32x32"
/>
<link
rel="icon"
type="image/png"
href="https://d15omoko64skxi.cloudfront.net/wp-content/uploads/2016/05/cc-site-icon-300x300.png"
sizes="192x192"
/>
<link
rel="apple-touch-icon-precomposed"
href="https://d15omoko64skxi.cloudfront.net/wp-content/uploads/2016/05/cc-site-icon-300x300.png"
/>
<link
rel="search"
type="application/opensearchdescription+xml"
title="CC Search"
href="/static/opensearch.xml"
/>
</head>
<body>
<div data-server-rendered="true">
<!--vue-ssr-outlet-->
{{{ renderState() }}} {{{ renderScripts() }}}
</div>
<script>
// Use production Google Analytics ID if search. or ccsearch. is in the URL, otherwise use development/staging ID
// TODO: Refactor this to use environment variables instead of hardcoding IDs here.
var gaID =
(document.location.hostname.indexOf('search.') >= 0 ||
document.location.hostname.indexOf('ccsearch.')) >= 0
? 'UA-2010376-33'
: 'UA-2010376-36'
/* eslint-disable */
;(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r
;(i[r] =
i[r] ||
function () {
;(i[r].q = i[r].q || []).push(arguments)
}),
(i[r].l = 1 * new Date())
;(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0])
a.async = 1
a.src = g
m.parentNode.insertBefore(a, m)
})(
window,
document,
'script',
'https://www.google-analytics.com/analytics.js',
'ga'
)
/* eslint-enable */
ga('create', gaID, 'auto')
ga('send', 'pageview')
</script>
</body>
</html>