Examples

-- fastn.dependency: fastn-community.github.io/header
Lang:
ftd
Input
-- import: fastn-community.github.io/header

-- header.header:
sections: $header.sitemap.sections
site-url: /docs/
site-logo: $header.site-logo
Lang:
ftd
Output

Basic Header with site-name

Input
-- import: fastn-community.github.io/header

-- header.header:
sections: $header.sitemap.sections
site-url: /docs/
site-name: Docs
Lang:
ftd
Output

Header with sub-sections

Input
-- import: fastn-community.github.io/header

-- header.header:
sections: $header.sitemap.sections
sub-sections: $header.sitemap.subsections
current-subsection: $header.sitemap.current-subsection
current-section: $header.sitemap.current-section
current-page: $header.sitemap.current-page
site-url: $header.site-url
site-logo: $header.site-logo
Lang:
ftd
Output
Input
-- import: fastn-community.github.io/header

-- header.header:
sections: $header.sitemap.sections
sub-sections: $header.sitemap.subsections
current-subsection: $header.sitemap.current-subsection
current-section: $header.sitemap.current-section
current-page: $header.sitemap.current-page
site-url: $header.site-url
site-logo: $header.site-logo
search: true
search-url: index.html
Lang:
ftd
Output

Header with Product Switcher and Login

Input
-- import: fastn-community.github.io/header
-- import: fifthtry.github.io/product-switcher as ps

-- header.header:
sections: $header.sitemap.sections
sub-sections: $header.sitemap.subsections
current-subsection: $header.sitemap.current-subsection
current-section: $header.sitemap.current-section
current-page: $header.sitemap.current-page
site-url: $header.site-url
site-logo: $header.site-logo
products: $ps.example-product
login-button: true
login-btn-txt: Login
login-btn-url: https://fastn.com/
Lang:
ftd
Output
Copyright © 2023 - FifthTry