Skip to content

Commit

Permalink
Merge pull request #7 from fastn-stack/saurabh-lohiya-patch-2
Browse files Browse the repository at this point in the history
Update index.ftd
  • Loading branch information
gsalunke authored Sep 25, 2023
2 parents d6b4182 + 8dddf61 commit fc33c77
Showing 1 changed file with 8 additions and 7 deletions.
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: fastn-community.github.io/inter-font/assets as inter-assets

;; ⚠️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

0 comments on commit fc33c77

Please sign in to comment.