summaryrefslogtreecommitdiff
path: root/examples/portfolio
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/portfolio
parent6a660f1b08430fe6e8f0e0939220511827cb0bc0 (diff)
downloadastro-8f74b3bdbb1cae31e036daf1b7f5fc28686ddd4d.tar.gz
astro-8f74b3bdbb1cae31e036daf1b7f5fc28686ddd4d.tar.zst
astro-8f74b3bdbb1cae31e036daf1b7f5fc28686ddd4d.zip
update example astro inline docs (#592)
Diffstat (limited to 'examples/portfolio')
-rw-r--r--examples/portfolio/src/pages/index.astro6
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" />