Skip to content

Commit d6bcff1

Browse files
authored
Merge pull request #566 from rust-lang/edition-banner
feat(edition): add flash for 2018
2 parents 9a399d8 + 03b03d0 commit d6bcff1

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

src/styles/app.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,3 +634,13 @@ blockquote::before {
634634
display: block;
635635
}
636636
}
637+
638+
.flash {
639+
width: 100%;
640+
font-size: 1em;
641+
padding: 0;
642+
margin: 0;
643+
h3 {
644+
text-align: center;
645+
}
646+
}

templates/edition-banner.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<section class="red flash">
2+
<div class="container">
3+
<h3><a href="https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html">The Rust 2018 Edition is here!</a></h3>
4+
</div>
5+
</section>

templates/layout.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<meta name="theme-color" content="#ffffff">
4848
</head>
4949
<body>
50+
{{> edition-banner }}
5051
{{> nav}}
5152
<div id="main-content">
5253
{{~> page}}

0 commit comments

Comments
 (0)