/DataBeersGRX_website

DataBeers Event WebSite Generator

Primary LanguageHTMLApache License 2.0Apache-2.0

DataBeersGrx WebSite Generator

This is the DataBeersGrx WebSite Generator, an adaptation of GrayScale theme migrated to Hugo by elbauldelprogramador.com

How to build

Install Hugo, and then:

For testing

hugo  server --bind="0.0.0.0" --verboseLog -DFw --i18n-warnings -d /tmp/hugo

For production

Just make your changes and then run ./deploy.sh

Create new events

To add a new event:

hugo new event/my-event-name.md

Then you must complete the information for the event in the frontmatter. For example:

+++
title =  "My Event Name"
date = 2017-11-21T11:18:15+01:00

[[eventDetails]]
    when = 2017-11-21T11:18:15+01:00
    where = ""
    whereUrl = "" # Url to link to the site
    whereAddrs = "" # Address of the place
    city = ""
    description = ""
    url = "" # Meetup  URL
    start = 2017-11-21T11:18:15+01:00 # Event start
    end = 2017-11-21T11:18:15+01:00 # Event ends
[[eventDetails.speakers]] # List of speakers
    name = ""
    motto = ""
    contact = "" # How to contact the speaker
    contactAnchor = "" # how to display the contact url, example @username
    bio = ""
    image = "" # path to image (Relative to /img/speakers)
+++

If you need more speakers, simply add them:

[[eventDetails.speakers]] # List of speakers
    name = ""
    motto = ""
    contact = "" # How to contact the speaker
    contactAnchor = "" # how to display the contact url, example @username
    bio = ""
    image = "" # path to image (Relative to /img/speakers)
[[eventDetails.speakers]] # List of speakers
    name = ""
    motto = ""
    contact = "" # How to contact the speaker
    contactAnchor = "" # how to display the contact url, example @username
    bio = ""
    image = "" # path to image (Relative to /img/speakers)

If you want to show two speakers as one, because they speak together, set isMultiple to true:

[[eventDetails.speakers]]
    isMultiple = true
    name = ["Speaker1", "Speaker2"]
    motto = ""
    contact = ["https://speaker1.com", "https://speaker2.com/"]
    contactAnchor = ["@speaker1", "@speaker2"]
    bio = ""
    image = ["speaker1.jpg", "speaker2.jpg"] # path to image

That’s it!