summaryrefslogtreecommitdiff
path: root/examples/starter/src/pages/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/starter/src/pages/index.astro')
-rw-r--r--examples/starter/src/pages/index.astro16
1 files changed, 11 insertions, 5 deletions
diff --git a/examples/starter/src/pages/index.astro b/examples/starter/src/pages/index.astro
index de052e9c4..8b44f19ae 100644
--- a/examples/starter/src/pages/index.astro
+++ b/examples/starter/src/pages/index.astro
@@ -1,16 +1,22 @@
---
+// Component Imports
import Tour from '../components/Tour.astro';
----
-<!doctype html>
+// Component Script:
+// You can write any JavaScript/TypeScript that you'd like here.
+// It will run during the build, but never in the browser.
+// All variables are available to use in the HTML template below.
+let title = 'My Astro Site';
+
+// Full Astro Component Syntax:
+// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
+---
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Astro</title>
-
+ <title>{title}</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
-
<link rel="stylesheet" href="/style/global.css">
<link rel="stylesheet" href="/style/home.css">