Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.ftd #7

Merged
merged 3 commits into from
Sep 25, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions index.ftd
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-- import: <user_name>.github.io/<repo_name>/custom
-- import: fifthtry.github.io/inter-font/assets as inter-assets
gsalunke marked this conversation as resolved.
Show resolved Hide resolved

;; ⚠️fastn-builders::⚠️ before using this file please find and replace inter-font
;; with font package name you have given inside this package
Expand Down Expand Up @@ -33,7 +34,7 @@ lang: ftd

\-- fastn.dependency: <user_name>.github.io/<repo_name>

-- site-doc.header:
-- site-doc.header: Next Step

Now import `<repo_name>` inside `.ftd` file as shown below:

Expand All @@ -43,7 +44,7 @@ lang: ftd
\-- import: <user_name>.github.io/<repo_name>


-- site-doc.header:
-- site-doc.header: Next Step

add `<repo_name>` `types` to `ds.page` `types` attribute as shown
below:
Expand All @@ -54,7 +55,7 @@ lang: ftd
\-- ds.page:
types: $<repo_name>.types

-- site-doc.header:
-- site-doc.header: Next Step

Once you add `types: $<repo_name>.types` inside your `.ftd` file,
`<repo_name>` will be added as `fastn` default typography to your
Expand All @@ -68,7 +69,7 @@ lang: ftd

\-- fastn.dependency: <user_name>.github.io/<repo_name>

-- site-doc.header:
-- site-doc.header: Next Step

Once you add above dependency, then import `<repo_name>` inside your
`.ftd` file:
Expand All @@ -78,7 +79,7 @@ lang: ftd

\-- import: <user_name>.github.io/<repo_name>

-- site-doc.header:
-- site-doc.header: Next Step

Done! `<repo_name>` is now added. Lets define a `page` component:

Expand Down Expand Up @@ -125,7 +126,7 @@ children: $page.wrap
\-- end: page


-- site-doc.header:
-- site-doc.header: Next Step

In above code snippet we defined `page` component which has `types`, `title`,
`body` and `wrap` attributes.
Expand Down Expand Up @@ -193,7 +194,7 @@ color: $inherited.colors.text

-- end: cb.rendered

-- site-doc.header:
-- site-doc.header: Next Step

Click on download icon on above code snippet `types.ftd` file will be
downloaded, add previously downloaded `my-ds.ftd` and `types.ftd` inside
Expand Down