Source files for the Project Trident website instance
Switch branches/tags
Nothing to show
Clone or download
beanpole135 Update deploy_hugo.sh
Make sure that the deploy script ignores the hugo cache (needs to re-check for manifest.json on the package server every time we build)
Latest commit 89f6d62 Sep 25, 2018
Permalink
Failed to load latest commit information.
hugo-site Few quick updates Sep 18, 2018
.gitignore
LICENSE
README.md Kinda silly not to have a link to our site in our own repo Sep 18, 2018
check_updates.sh
deploy_hugo.sh Update deploy_hugo.sh Sep 25, 2018
deploy_nginx.sh
nginx-hugo.conf Get the hugo site automation working. Jul 24, 2018
pkg_list
setup_vm.sh
test.sh

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] >}}