diff options
Diffstat (limited to 'examples/portfolio/src')
-rw-r--r-- | examples/portfolio/src/pages/index.astro | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/portfolio/src/pages/index.astro b/examples/portfolio/src/pages/index.astro index d6616cfe0..4638bb3e9 100644 --- a/examples/portfolio/src/pages/index.astro +++ b/examples/portfolio/src/pages/index.astro @@ -1,14 +1,18 @@ --- +// Component Imports import MainHead from '../components/MainHead.astro'; import Button from '../components/Button/index.jsx'; import Nav from '../components/Nav/index.jsx'; import Footer from '../components/Footer/index.jsx'; import PorfolioPreview from '../components/PortfolioPreview/index.jsx'; +// Data Fetching: List all Markdown posts in the repo. const projects = Astro.fetchContent('./project/**/*.md'); const featuredProject = projects[0]; ---- +// Full Astro Component Syntax: +// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md +--- <html> <head> <MainHead title="Jeanine White: Personal Site" /> |