File tree Expand file tree Collapse file tree 5 files changed +65
-4
lines changed Expand file tree Collapse file tree 5 files changed +65
-4
lines changed Original file line number Diff line number Diff line change
1
+ < div class ="version-banner ">
2
+ < img src ="/images/flame.svg ">
3
+ < p >
4
+ LitElement is now part of the Lit library–see the new site at < a href ="https://lit.dev "> lit.dev</ a > .
5
+ This site documents LitElement 2.0, no longer the current version.
6
+ </ p >
7
+ </ div >
Original file line number Diff line number Diff line change 23
23
</ nav >
24
24
25
25
< article >
26
+ {% include version-banner.html %}
26
27
< h1 > {{page.title}}</ h1 >
27
28
{{ content }}
28
29
</ article >
Original file line number Diff line number Diff line change @@ -218,16 +218,34 @@ main {
218
218
}
219
219
220
220
.hero .blm-banner {
221
- position : relative;
222
221
background : # 000 ;
223
222
height : 60px ;
223
+ }
224
+
225
+ .hero .lit-banner {
226
+ background-color : # fff ;
227
+ color : # 000 ;
228
+ }
229
+
230
+ .hero .lit-banner a {
231
+ font-weight : bold;
232
+ }
233
+
234
+ .hero # lit-logo {
235
+ height : 2em ;
236
+ padding-top : 1.5em ;
237
+ padding-right : 1.5em ;
238
+ }
239
+
240
+ .hero .banner {
241
+ position : relative;
224
242
display : flex;
225
243
justify-content : center;
226
244
align-content : center;
227
245
padding : 0 20px 0 20px ;
228
246
}
229
247
230
- .hero .blm- banner p {
248
+ .hero .banner p , {
231
249
margin : auto;
232
250
text-align : center;
233
251
}
@@ -237,8 +255,8 @@ main {
237
255
}
238
256
239
257
.hero .wrapper {
240
- padding-top : 21 vh ;
241
- padding-bottom : 24 vh ;
258
+ padding-top : 20 vh ;
259
+ padding-bottom : 22 vh ;
242
260
}
243
261
244
262
.hero-title {
@@ -454,6 +472,22 @@ article ol li {
454
472
margin : 4px 0 ;
455
473
}
456
474
475
+ .version-banner {
476
+ padding : 0px 20px ;
477
+ border : 1px solid # 000 ;
478
+ max-width : 640px ;
479
+ display : flex;
480
+ align-items : center;
481
+ }
482
+
483
+ .version-banner a {
484
+ font-weight : bold;
485
+ }
486
+
487
+ .version-banner img {
488
+ height : 36px ;
489
+ margin-right : 16px ;
490
+ }
457
491
458
492
.alert {
459
493
position : relative;
Original file line number Diff line number Diff line change 7
7
extensions = ['jinja2.ext.autoescape' ],
8
8
autoescape = True )
9
9
10
+ # Skip old landing page, go direct to guides.
11
+ HOME_PAGE = '/guide'
12
+
10
13
# Match HTML pages from path; similar to behavior of Jekyll on GitHub Pages.
11
14
def find_template (path ):
12
15
if path .endswith ('/' ):
@@ -25,6 +28,9 @@ def find_template(path):
25
28
26
29
class MainPage (webapp2 .RequestHandler ):
27
30
def get (self ):
31
+ if (self .request .path == '/' ):
32
+ self .redirect (HOME_PAGE , permanent = True )
33
+ return
28
34
try :
29
35
template = find_template (self .request .path )
30
36
self .response .headers ['Cache-Control' ] = 'public, max-age=60'
You can’t perform that action at this time.
0 commit comments