summaryrefslogtreecommitdiff
path: root/examples/starter/src/pages/index.astro
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-07-01 05:43:02 -0700
committerGravatar GitHub <noreply@github.com> 2021-07-01 08:43:02 -0400
commit8f74b3bdbb1cae31e036daf1b7f5fc28686ddd4d (patch)
treeef46c13328abae62209ad30d49401285f5f72a01 /examples/starter/src/pages/index.astro
parent6a660f1b08430fe6e8f0e0939220511827cb0bc0 (diff)
downloadastro-8f74b3bdbb1cae31e036daf1b7f5fc28686ddd4d.tar.gz
astro-8f74b3bdbb1cae31e036daf1b7f5fc28686ddd4d.tar.zst
astro-8f74b3bdbb1cae31e036daf1b7f5fc28686ddd4d.zip
update example astro inline docs (#592)
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">