Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions pgml-dashboard/src/components/layouts/head/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@
<meta name="twitter:creator" content="@postgresml">
<meta name="twitter:title" content="<%= title %> – PostgresML">

<% if canonical.is_some() { %>
<link rel="canonical" href="<%- canonical.unwrap() %>">
<% } %>

<% if context.is_some() { %>
<%- context.unwrap() %>
<% } else { %>

<script type="importmap" data-turbo-track="reload">
{
"imports": {
Expand All @@ -50,10 +53,6 @@
}
</script>

<% if canonical.is_some() { %>
<link rel="canonical" href="<%- canonical.unwrap() %>">
<% } %>

<link rel="stylesheet" data-turbo-track="reload" href="<%- config::css_url("style.css") %>">
<script async src="https://data.cloud.hyperparam.ai/script.js" data-website-id="499122fd-f307-4e8d-af4b-88b9f5e9903b"></script>
<script defer src="https://cdn.plot.ly/plotly-2.11.1.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion pgml-dashboard/src/templates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl Layout {
}

pub fn canonical(&mut self, canonical: &str) -> &mut Self {
self.head.canonical = Some(canonical.to_string());
self.head.canonical = Some(canonical.to_owned());
self
}

Expand Down