Skip to content
Source files for the Project Trident website instance
Branch: master
Clone or download
beanpole135 Merge pull request #32 from project-trident/virtualbox-article
Add converted VirtualBox VM create article.
Latest commit 9de2189 Mar 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hugo-site Merge pull request #32 from project-trident/virtualbox-article Mar 19, 2019
.gitignore Get a lot more of the new artwork put into the home page on the website. May 19, 2018
Jenkinsfile-trident-website
LICENSE
README.md Update the README with info about the mermaid shortcode Mar 14, 2019
check_updates.sh
deploy_hugo.sh
deploy_nginx.sh
nginx-hugo.conf Fix up the nginx config to do the http -> https forwarding. Jan 23, 2019
pkg_list Get the hugo site automation working. Jul 24, 2018
setup_vm.sh
test.sh A few tweaks: Sep 4, 2018

README.md

trident-website

Source repository for the Project Trident website. These sources are used by the "hugo" static-site generation system to create/deploy the website.

Deployment

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"

Local Testing

Run ./test.sh to spin up a local version of the website on port 1313.

Site Modification

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.
{{< shortcode [optional inputs] >}}

Charts and such

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 >}}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.