Source repository for the Project Trident website. These sources are used by the "hugo" static-site generation system to create/deploy the website.
On a FreeBSD/TrueOS system, just run this command:
sudo ./deploy_nginx.sh
This will install the website and startup the nginx web server.
Notes:
- It is highly recommended to install the website into a FreeBSD/TrueOS jail.
- Packages used: "gohugo" and "nginx"
Run ./test.sh
to spin up a local version of the website on port 1313.
Locations of files (relative to root of repository):
- Website source tree: "hugo-site"
- Image directory: hugo-site/static/images (can be referenced with /images/) within the site.
- Custom CSS file: hugo-site/static/css/theme-trident.css (overlayed on top of default theme CSS)
- Custom HTML "shortcodes" for use within Markdown pages/posts: hugo-site/layouts/shortcodes/*.html.
- These shortcodes can be used in a markdown post via the following syntax (also see the hugo documentation on shortcodes)
{{< shortcode [optional inputs] >}}
The "mermaid" shortcode can be use to access the mermaid.js library for generating flowcharts and such. The reference material for this library is located HERE, and can be used in a markdown pages as such:
{{< mermaid >}}
graph LR
A[Square Box] --> B((Circle))
B --> C{Diamond}
C -.-> A
{{< /mermaid >}}