Skip to content

Commit bbcbde0

Browse files
committed
style tweaks: add OG meta tags and remove homepage registration banner
1 parent a6a70d4 commit bbcbde0

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed

src/_includes/layout.jlhtml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ $(begin
33
"The contents of `<head>` from a Pluto HTML export."
44
const pluto_head = let
55
default = Pluto.generate_html(;
6-
pluto_cdn_root=Pluto.PLUTO_VERSION < v"0.19" ? "https://cdn.jsdelivr.net/gh/fonsp/Pluto.jl@9ca70c36/frontend/" : nothing)
6+
version=PlutoSliderServer.try_get_exact_pluto_version(),
7+
)
78
m = match(r"<head.*?>(.*)</head>"s, default)
89
reduce([
910
# r"<script[^\n]data-pluto-file=[\"']?launch-parameters.*?/script>"s
1011
r"<title.*?/title>"
1112
r"<meta name=[\"']?description.*?>"
12-
r"<meta name=[\"']?description.*?>"
1313
r"<link rel=[\"']?icon.*?>"
1414
]; init=m[1]) do s,r
1515
replace(s, r => "")
@@ -29,12 +29,7 @@ $(begin
2929
end)<html lang="en">
3030
<head>
3131

32-
<title>$(f("title", splitext(basename(page.input.relative_path))[1])) — Interactive Computational Thinking — MIT</title>
33-
$(let d = f("description", nothing)
34-
if d !== nothing
35-
@htl("""<meta name="description" content=$(d) />""")
36-
end
37-
end)
32+
$(Pluto.frontmatter_html(page.output.frontmatter) |> HTML)
3833

3934
<link rel="root" href="$(root_url)" />
4035

src/_includes/welcome.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,6 @@ layout: "layout.jlhtml"
44

55
<link rel="stylesheet" href="$(root_url)/assets/styles/homepage.css" type="text/css" />
66

7-
<div style="
8-
background: white;
9-
padding: 0.3em 1em;
10-
border: 3px solid #b97777;
11-
box-shadow: 0px 0px 10px #00000036;
12-
z-index: 99999999;
13-
position: relative;
14-
font-size: 1.3rem;
15-
color: black;
16-
">
17-
<p><strong>MIT students:</strong> Sign up for the Fall 2024 edition of this class!</p><p>Register for <strong><code>18C25</code></strong>, <strong><code>6C25</code></strong>, etc: <br><em>"Julia: Solving Real-World Problems with Computation"</em> (<a href="https://student.mit.edu/catalog/search.cgi?search=computation+with+Julia&amp;style=verbatim&amp;when=C&amp;termleng=4&amp;days_offered=*&amp;start_time=*&amp;duration=*&amp;total_units=*" class="" style="
18-
color: #6c6cca;
19-
font-weight: bold;
20-
text-decoration: underline;
21-
">catalog link</a>)</p>
22-
<p style="
23-
opacity: .7;
24-
">Counts for course 6 and course 18 majors, etc.</p><p></p></div>
25-
267
<div id="title" class="banner">
278
<h1>Julia: <strong>A Fresh Approach to Computing</strong></h1>
289
</div>

0 commit comments

Comments
 (0)