| --- | |
| /* | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file | |
| * to you under the Apache License, Version 2.0 (the | |
| * "License"); you may not use this file except in compliance | |
| * with the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, | |
| * software distributed under the License is distributed on an | |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| * KIND, either express or implied. See the License for the | |
| * specific language governing permissions and limitations | |
| * under the License. | |
| */ | |
| // The root sends visitors to the English homepage at once. Astro's own | |
| // redirect page waits two seconds first, so it is written out by hand. | |
| // Link-preview crawlers stop here rather than follow the refresh, so the | |
| // page carries the English homepage's preview tags itself. | |
| import Preview from '../components/Preview.astro'; | |
| import { en } from '../copy/en'; | |
| const home = new URL('/en/', Astro.site); | |
| --- | |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="refresh" content="0;url=/en/" /> | |
| <meta name="robots" content="noindex" /> | |
| <link rel="canonical" href={home} /> | |
| <title>{en.siteName}</title> | |
| <meta name="description" content={en.positioning} /> | |
| <Preview copy={en} url={home} title={en.siteName} description={en.positioning} /> | |
| <script is:inline> | |
| location.replace('/en/'); | |
| </script> | |
| </head> | |
| <body><a href="/en/">{en.siteName}</a></body> | |
| </html> |