halpcrew.gitlab.io

halpcrew.gitlab.io

This is the private repository for the public HALP website hosted on Gitlab Pages.

The fees for the custom domain https://halpgta.com/ that this site uses were very graciously paid by Rhodian27.

General / Highlights

This site was generated using Hugo, originally using the custom theme MIT-licensed theme Bento. It was modified significantly to fit the needs of HALP as a sort of test/demo/fun project by Gritz_ aka Gtz#7884 and renamed to 'Bento-halp'.

There is a custom JS function that iterates over all of Hugo's static event datetimes and converts them to the browser's preferred LOCAL TIME for viewers of the site. This requires JavaScript to be enabled, however.

The Bento theme that the Bento-halp theme is based on also implements turbolinks which does some amazing stuff to make the pages load very fast. , The templates and outers, as well as the content is styled with TailwindCSS.


Content Layout / Creating new Events

The events on this site are laid out in accordance with Hugo's best practices recommendation: "Structure B"

An example event is as follows:

/event/gfred
      |-/gfred_MAP.png
      |-/index.md

The "index.md" file contains the content that will be rendered to http://halpgta.com/gfred/ and any content relating to the "gfred" event, such as gfred_MAP.png, lives in this folder as well. Any images contained in an event folder should be referenced somewhere in the index.md for a given event.

The first occurance of an event should not have a number after it, so the directory would be named gfred, and that is how it appears in the URL. You can also set aliases = [event-1] where event is the name of the event, so that if someone types event-1 into their browser, it redirects properly to the event. Duplicate/repeating events should have -### suffixed to them. gfred-4, gfred-5, gfred-6..., and so on.

When duplicate/repeating events are made, the gfred_MAP.png does not need to be duplicated in the new event's folder. For example, /gfred-69's index.md should refer directly to the first instance of /events/gfred/gfred_MAP.png. This saves a lot on file space since large images are only stored once.

See some real example events rawr