Skip to content

Commit e1a7d66

Browse files
committed
get frontmatter from Pluto.frontmatter_html
1 parent 84e221d commit e1a7d66

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/_includes/layout.jlhtml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ $(begin
1010
# r"<script[^\n]data-pluto-file=[\"']?launch-parameters.*?/script>"s
1111
r"<title.*?/title>"
1212
r"<meta name=[\"']?description.*?>"
13-
r"<meta name=[\"']?description.*?>"
1413
r"<link rel=[\"']?icon.*?>"
1514
]; init=m[1]) do s,r
1615
replace(s, r => "")
@@ -20,12 +19,7 @@ $(begin
2019
end)<html lang="en">
2120
<head>
2221

23-
<title>$(get(page.output.frontmatter, "title", splitext(basename(page.input.relative_path))[1])) — Pluto.jl</title>
24-
$(let d = get(page.output.frontmatter, "description", nothing)
25-
if d !== nothing
26-
@htl("""<meta name="description" content=$(d) />""")
27-
end
28-
end)
22+
$(Pluto.frontmatter_html(page.output.frontmatter))
2923

3024
<link rel="root" href="$(root_url)" />
3125

0 commit comments

Comments
 (0)