Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d5080c

Browse files
authored
expose for all contexts (#1284)
1 parent3b1bcd7 commit5d5080c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

‎pgml-dashboard/src/components/layouts/head/template.html‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@
3636
<metaname="twitter:creator"content="@postgresml">
3737
<metaname="twitter:title"content="<%= title %> – PostgresML">
3838

39+
<% if canonical.is_some() { %>
40+
<linkrel="canonical"href="<%- canonical.unwrap() %>">
41+
<% } %>
42+
3943
<% if context.is_some() { %>
4044
<%- context.unwrap() %>
4145
<% } else { %>
42-
4346
<scripttype="importmap"data-turbo-track="reload">
4447
{
4548
"imports":{
@@ -50,10 +53,6 @@
5053
}
5154
</script>
5255

53-
<% if canonical.is_some() { %>
54-
<linkrel="canonical"href="<%- canonical.unwrap() %>">
55-
<% } %>
56-
5756
<linkrel="stylesheet"data-turbo-track="reload"href="<%- config::css_url("style.css") %>">
5857
<scriptasyncsrc="https://data.cloud.hyperparam.ai/script.js"data-website-id="499122fd-f307-4e8d-af4b-88b9f5e9903b"></script>
5958
<scriptdefersrc="https://cdn.plot.ly/plotly-2.11.1.min.js"></script>

‎pgml-dashboard/src/templates/mod.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl Layout {
6767
}
6868

6969
pubfncanonical(&mutself,canonical:&str) ->&mutSelf{
70-
self.head.canonical =Some(canonical.to_string());
70+
self.head.canonical =Some(canonical.to_owned());
7171
self
7272
}
7373

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp