Linking Conventions For Pages
Trio supports the following linking conventions for pages:
Linking Conventions For Assets
Trio supports the following linking conventions for assets (e.g. .js, .css, .jpg, etc.):
If you intend to cache bust your site's assets then you are required to construct your site's asset URLs using either site relative or absolute URLs.
Some Web hosting services deploy sites in subfolders, and require that their site relative URLs begin with the subfolder's path.
For example, the site at https://4awpawz.github.io/trio-docs-pages is hosted on Github Pages, and linking internally with <a href="/docs/v1">Documentation</a> wouldn't work but linking with <a href="/trio-docs-pages/docs/v1">Documentation</a> would work.
In this case, you can decorate any HTML tag that has a src or href attribute using the data-trio-link attribute,
<a data-trio-link href="/docs/v1">Documentation</a>
and in your project's root/trio.json configuration file you would then assign the subfolder's path to baseUrl. When you build your site, Trio will prepend these URLs with the path that you assigned to baseUrl.
Your Financial Support Of This Project Is Greatly Appreciated
Trio is an open source project and is therefore free of charge to use both for noncommercial and commercial use, but when you use Trio to create a new website, please consider donating a few bucks. It doesn't take very long, the process is secure, and it will allow us to continue to support the community and to maintain and enhance Trio going forward.
Show your ❤️, add your ★ to the Github repo.