Learn full-stack web development using fastn in a week
Learn Now
Create website planning

Create Website using fastn

Welcome to the fastn world.

This course is for anyone irrespective of their background or technical knowledge. No prior coding experience is required.

This document will kickstart your journey in creating a website from scratch. You will be guided through a series of video courses that will enable you to learn and create a website using fastn.

With the promise - If you can type, you can code, let's begin!

Using doc-site template

  • Sign Up or Sign In on GitHub

  • Create repository using doc-site template

Github pages

  • After signing in, you’re ready to create a repository using the business card template. Simply click on the button below to add the template and follow the steps.

    • Go to Settings (last tab) from the list of tabs
    • Select Pages from the Table of Content
    • Under Branch, click on the drop-down and choose gh-pages (by default: None)
    • Click on Save button
    This action will build your GitHub pages and deploy your website.

Editing Content

Let's see how to edit the content and utilise various components.
  • Show small changes in the index.ftd document over the default content.

doc-site components

doc-site has a lot of powerful components that can be used. Check out the following link to read about the components.

Markdown

Let's see how to use markdown in fastn.

Checkout the following video to understand all about markdown.
Markdown in doc-site
doc-site has a lot many components that you can use and create exciting websites. Click here to checkout all doc-site components.
Doc-Site Components

Adding some bling component

There are a lot of exciting blingcomponents. You can use them on your fastn web site.
Bling Components

Add/Update typography

Let's learn how to add or change the typography in doc-site
Add or change the typography

Add/Update color-scheme

Let's learn how to add or change the typography in doc-site
Add or change the color-scheme

Working locally

We have created a package/repository on GitHub. It's easy to make changes on GitHub if the project is small and pages build and deployment does not take much time.

As we grow our website at organization level or full-fledged personal website, it's preferred to work locally and once happy with the changes we push the changes via creating a Pull Request and merge it in the main branch after extensive review from peers.

Now, let's learn how to work locally.

Installation

To work locally you will need to clone the repository in your local machine, and to edit project we will need a text editor, and to view the project in a local server, we will need to install fastn.

Download and Install followings:
Install fastn: Installation of fastn is very easy. Just click on the following link:
Install fastn
Install a text editor: You will need an editor to write your content that will then render in the browser as a website. We recommend you to use Sublime Text.
Download Sublime Text
Install GitHub Desktop: This is a UI that will help you to clone your GitHub repository and push your local changes.
Download GitHub Desktop
📝
For developers
If you are familiar and comfortable with Git commands on terminal/command prompt you can ignore Install GitHub Desktop
Everything is setup.

Sitemap

Sitemap serves as a blueprint or roadmap, providing information about the organization and hierarchy of content on the website. Let's learn how to add Sitemap.
Sitemap in FASTN.ftd

Redirects

Let's learn about redirects
Redirects in FASTN.ftd

Comments

In fastn you can comment a single line or an entire element.
Single line comment
Input
;; This line will be commented out.  

This line will be displayed
So to comment out a line in `fastn`, we use double semi-colons `
Lang:
ftd
Output
This line will be displayed. So to comment out a line in fastn, we use double semi-colons `
Comment an entire Section
Input
-- ds.markdown:

The body text in `first` markdown element will be displayed.

/-- ds.markdown:

The body text of `second` markdown element will be commented out.

-- ds.markdown:

So to comment an entire section, we use forward slash `/`.
Lang:
ftd
Output
The body text in first markdown element will be displayed.
So to comment an entire section, we use forward slash /.

Image

Let's see how to add image
Using Image in the documents
Bonus: Follow the below video and learn how to round the edges of the image.
Create rounded border
Copyright © 2023 - fastn.com