Understanding Sitemap

misty-gray page component has inbuilt header. Just using page header will appear on your page.

Header is built using header component. Header uses fastn.sitemap which can be added insite your FASTN.ftd file.
To learn more how to implement fastn.sitemap go through this video tutorial.

How to create clean URL using sitemap

In sitemap, you can clean the URLs and give custom URLs by using the sitemap feature: document.
To learn more how to implement fastn.sitemap go through this video tutorial.

Sample fastn.sitemap code snippet

Below is a set of simple sitemap links which you will see on header and toc-sidebar in your misty-gray project.

Add below code inside your FASTN.ftd file
-- fastn.sitemap:

# Home: index.html

- Liking fastn lang?: https://fastn.com/clean-urls/-/build/
- My First Article: /article-1/

# Star us on GitHub
  url: https://github.com/fastn-stack/fastn
Lang:
ftd

In above code snippet Home is a main section which will be active when you are on the homepage of your misty-gray project. OnClick of Home link it will take you to the index.html which is the homepage of your misty-gray project.

Another link /article-1/ will go to the article.ftd file which you created inside root folder of your misty-gray project. And it will be seen inside the toc-sidebar as toc link to the Home section.

Star us on GitHub will point to https://github.com/fastn-stack/fastn which is an external url.
Copyright © 2023 - fifthtry.com