Adding New Pages

If you have custom materials that don’t make sense to add to an existing page, you can inject a new routed page into the application structure. New pages can either be behind a login (private pages) or visible without a login (public pages).

Public Pages

  1. To install a public page, in your templates/<your_host>/ folder, make a folder named custom.
  2. In that custom folder, make a folder named public
  3. Create your public file. The required extension on the file is .html. Nested directories are not supported.
  4. Open your browser to https://yoursite.com/c/file . Your file should be visible and render appropriately.
  5. These are rendered templates through the Jinja templating system, so be careful about braces.
  6. Available variables:
    1. api_url: The fully qualified URL for API requests.
    2. app_token: The application token for API requests.

Private Pages

  1. To install a private page, in your templates/<your_host>/ folder, make a folder named custom.
  2. In that custom folder, make a folder named private
  3. Create your private file. The required extension on the file is .html. Nested directories are not supported.
  4. Open your browser to https://yoursite.com/t/file . Your file should be visible and render appropriately if you are logged in. Not logged in users will be redirected to the login page.
  5. These are rendered templates through the Jinja templating system, so be careful about braces.
  6. Available variables:
    1. api_url: The fully qualified URL for API requests.
    2. app_token: The application token for API requests.
    3. token: The user token for API requests.