|
5 | 5 | <metaname="viewport"content="width=device-width, initial-scale=1.0"> |
6 | 6 | <metaname="turbo-cache-control"content="no-cache"> |
7 | 7 | <metaname="author"content="PostgresML"> |
8 | | -<title><%=head.title %> – PostgresML</title> |
| 8 | +<title><%= title %> – PostgresML</title> |
9 | 9 |
|
10 | | -<% ifhead.description.is_some() { %> |
11 | | -<metaname="description"content="<%=head.description.clone().unwrap() %>"> |
12 | | -<metaproperty="og:description"content="<%=head.description.clone().unwrap() %>"> |
13 | | -<metaname="twitter:description"content="<%=head.description.clone().unwrap() %>"> |
| 10 | +<% if description.is_some() { %> |
| 11 | +<metaname="description"content="<%= description.clone().unwrap() %>"> |
| 12 | +<metaproperty="og:description"content="<%= description.clone().unwrap() %>"> |
| 13 | +<metaname="twitter:description"content="<%= description.clone().unwrap() %>"> |
14 | 14 | <% } else { %> |
15 | 15 | <metaname="description"content="Train and deploy models to make online predictions using only SQL, with an open source Postgres extension."> |
16 | 16 | <metaproperty="og:description"content="Train and deploy models to make online predictions using only SQL, with an open source Postgres extension."> |
17 | 17 | <metaname="twitter:description"content="Train and deploy models to make online predictions using only SQL, with an open source Postgres extension."> |
18 | 18 | <% } %> |
19 | 19 |
|
20 | | -<% ifhead.image.is_some() { %> |
21 | | -<metaproperty="og:image"content="<%=head.image.clone().unwrap() %>"> |
22 | | -<metaname="twitter:image"content="<%=head.image.clone().unwrap() %>"> |
| 20 | +<% if image.is_some() { %> |
| 21 | +<metaproperty="og:image"content="<%= image.clone().unwrap() %>"> |
| 22 | +<metaname="twitter:image"content="<%= image.clone().unwrap() %>"> |
23 | 23 | <% } else { %> |
24 | 24 | <metaproperty="og:image"content="https://postgresml.org/dashboard/static/images/owl_gradient.png"> |
25 | 25 | <metaname="twitter:image"content="https://postgresml.org/dashboard/static/images/owl_gradient.png"> |
26 | 26 | <% } %> |
27 | 27 |
|
28 | 28 | <metaproperty="og:site_name"content="PostgresML"> |
29 | 29 | <metaproperty="og:type"content="website"> |
30 | | -<metaproperty="og:title"content="<%=head.title %> – PostgresML"> |
| 30 | +<metaproperty="og:title"content="<%= title %> – PostgresML"> |
31 | 31 | <metaproperty="og:url"content="http://www.postgresML.org"> |
32 | 32 | <metaproperty="og:locale"content="en_US"> |
33 | 33 |
|
34 | 34 | <metaname="twitter:site"content="@postgresml"> |
35 | 35 | <metaname="twitter:card"content="summary_large_image"> |
36 | 36 | <metaname="twitter:creator"content="@postgresml"> |
37 | | -<metaname="twitter:title"content="<%=head.title %> – PostgresML"> |
| 37 | +<metaname="twitter:title"content="<%= title %> – PostgresML"> |
38 | 38 |
|
| 39 | +<% if context.is_some() { %> |
| 40 | +<%- context.unwrap() %> |
| 41 | +<% } else { %> |
| 42 | + |
39 | 43 | <scripttype="importmap"data-turbo-track="reload"> |
40 | 44 | { |
41 | 45 | "imports":{ |
|
45 | 49 | } |
46 | 50 | } |
47 | 51 | </script> |
| 52 | + |
| 53 | +<linkrel="stylesheet"data-turbo-track="reload"href="<%- config::css_url("style.css") %>"> |
| 54 | +<scriptasyncsrc="https://data.cloud.hyperparam.ai/script.js"data-website-id="499122fd-f307-4e8d-af4b-88b9f5e9903b"></script> |
| 55 | +<scriptdefersrc="https://cdn.plot.ly/plotly-2.11.1.min.js"></script> |
| 56 | +<scripttype="module"deferasyncsrc="/dashboard/static/js/libs/sortable-1.12.0.min.js"></script> |
| 57 | +<scriptdata-turbo-trace="reload"type="module"src="<%= config::js_url("bundle.js") %>" async defer></script> |
| 58 | + |
| 59 | +<!-- version: <%= config::git_sha() %> --> |
| 60 | +<% } %> |
| 61 | + |
| 62 | +<% for link in preloads { %> |
| 63 | +<linkrel="preload"fetchpriority="high"as="image"href=<%= link %> type="image/webp"> |
| 64 | +<% }; %> |
48 | 65 |
|
49 | 66 | <linkrel="icon"href="/dashboard/static/images/owl.ico"> |
50 | | -<linkrel="stylesheet"data-turbo-track="reload"href="<%- config::css_url("style.css") %>"> |
| 67 | + |
51 | 68 | <scriptdefersrc="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script> |
| 69 | +<scriptdefersrc="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"crossorigin="anonymous"></script> |
52 | 70 | <linkrel="preconnect"href="https://fonts.googleapis.com"> |
53 | 71 | <linkrel="preconnect"href="https://fonts.gstatic.com"crossorigin> |
54 | 72 | <linkrel="stylesheet"href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined&display=swap"> |
55 | | -<scriptdefersrc="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script> |
56 | | -<scriptdefersrc="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"crossorigin="anonymous"></script> |
57 | 73 |
|
58 | | -<scriptasyncsrc="https://data.cloud.hyperparam.ai/script.js"data-website-id="499122fd-f307-4e8d-af4b-88b9f5e9903b"></script> |
59 | 74 | <scriptasynctype="nomodule"src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script> |
60 | 75 | <scriptdefertype="module"src="/dashboard/static/js/libs/turbo-7.3.0.min.js"></script> |
61 | | -<scriptdefersrc="https://cdn.plot.ly/plotly-2.11.1.min.js"></script> |
62 | 76 |
|
63 | 77 | <!-- Code Mirror --> |
64 | 78 | <scriptdefertype="module"src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/codemirror.min.js"></script> |
|
69 | 83 | <linkrel="stylesheet"href="/dashboard/static/css/codemirror.css"/> |
70 | 84 | <linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/addon/hint/show-hint.min.css"integrity="sha512-OmcLQEy8iGiD7PSm85s06dnR7G7C9C0VqahIPAj/KHk5RpOCmnC6R2ob1oK4/uwYhWa9BF1GC6tzxsC8TIx7Jg=="crossorigin="anonymous"referrerpolicy="no-referrer"/> |
71 | 85 |
|
72 | | -<scripttype="module"deferasyncsrc="/dashboard/static/js/libs/sortable-1.12.0.min.js"></script> |
73 | | -<scriptdata-turbo-trace="reload"type="module"src="<%= config::js_url("bundle.js") %>" async defer></script> |
74 | | - |
75 | | - |
76 | 86 | <% if config::dev_mode() { %> |
77 | 87 | <!-- dev only - save page position after reload --> |
78 | 88 | <script> |
|
86 | 96 | }; |
87 | 97 | </script> |
88 | 98 | <% } %> |
89 | | - |
90 | | -<!-- version: <%= config::git_sha() %> --> |
91 | 99 | </head> |