- Creating a Show or Event
- Creating a Sponsor
- Creating a Special Hero
- Changing hero order
- Optimizing images
The following is a fairly comprehensive guide for contributing new or changes to the site content. For guidance with contributing additional coding elements, like CSS and Javascript, see CONTRIBUTING-DEV
This process is generally the same for Shows and Events but they are in two different directories, show/ and event/ respectively.
The archetypes for content are in the archetypes directory in the root of the project. An archetype is like a template for creating new content. You may change the archetype to change the default values for the frontmatter for a new content element.
content/show/2016-2017
├── 30-day-mourning-period
│ ├── index.md
│ └── poster.jpg
├── calling-all-kates
│ ├── hero.jpg
│ ├── index.md
│ └── poster.jpg
├── happily-after-ever
│ ├── hero.jpg
│ ├── index.md
│ └── poster.jpg
├── home
│ ├── index.md
│ └── poster.jpg
└── row-after-row
├── hero.jpg
├── index.md
└── poster.jpg
content/event/2016-2017
├── annual-gala
│ ├── index.md
│ └── poster.jpg
├── escape-the-room
│ ├── hero.jpg
│ ├── index.md
│ └── poster.jpg
├── ike-and-julie-arnove-playoffs
│ ├── index.md
│ └── poster.jpg
├── miniplay-playwriting-competition
│ ├── index.md
│ └── poster.jpg
└── vintage-songs
├── hero.jpg
├── index.md
└── poster.jpg
In your terminal, navigate to the location of your project. Here's an example:
cd ~/dev/bppwrite.github.io$ hugo new show/[2016-2017]/[the-title-of-the-show]/index.mdReplace [2016-2017] with the season series to which you're adding the show. Replace [the-title-of-the-show] with the actual title of the show -- all lowercase with hyphens separating words.
You should get a result of something like this:
$ hugo new show/2015-2016/the-bull-the-moon-and-the-coronet-of-stars/index.md
/Users/marcguyer/dev/bppwrite.github.io/content/show/2015-2016/the-bull-the-moon-and-the-coronet-of-stars/index.md createdOpen the content file you created with your favorite text editor. The frontmatter is shown at the top of the content file delimited by +++. Each element of the frontmatter has a default (usually empty). It's your job to change the value of each element according to the show components. Here's a quick checklist:
- Set the
title. Set thesubtitleif applicable. - List the
showtimesusing the ISO 8601 datetime format (e.g., "2016-01-01T19:30:00") - List the OvationTix link to the tickets page for each showtime.
- Set the
dateparameter equal to the first element of the list ofshowtimes - Set the
seriesparameter equal to the season lable in format<year>-<year> - Set the
slotparameter - Set the
genresparameter to the effective genre or multiple genres if applicable - Set the cast and crew elements as they become known
Note: the frontmatter elements for an Event will be different than for a Show
Create an image called poster of any valid web type (e.g., JPG, GIF, PNG, SVG) and place it in the same directory as the show. e.g., show/2015-2016/the-bull-the-moon-and-the-coronet-of-stars/poster.png.
Create an image called hero of any valid web type (e.g., JPG, GIF, PNG, SVG) and place it in the same directory as the show. e.g., show/2015-2016/the-bull-the-moon-and-the-coronet-of-stars/hero.jpg. See guidelines for image sizing and optimization.
By default, the title and subtitle (if set) are used for the hero headline. You may override these with the frontmatter params hero_title and hero_subtitle. The override params are markdown enabled so you may choose to add emphasis to the text of the headline.
By default, the call to action is "Buy a Season Subscription". If a tickets_run frontmatter param is set, this is used for the target with the text of "Get Tickets". Lastly, if the hero_call_to_action and hero_call_to_action_link are both set, these values are used.
$ mkdir -p show/[2016-2017]/[the-title-of-the-show]/galleryAdd all of the images related to this show in the show/[2016-2017]/[the-title-of-the-show]/gallery directory. See guidelines for image sizing and optimization.
$ hugo new sponsor/[the-name-of-the-sponsor]/index.mdReplace [the-name-of-the-sponsor] with the name of the sponsor -- all lowercase with hyphens separating words.
You should get a result of something like this:
$ hugo new sponsor/ivy-tech/index.md
/Users/marcguyer/dev/bppwrite.github.io/content/sponsor/ivy-tech/index.md createdOpen the content file you created with your favorite text editor. The frontmatter is shown at the top of the content file delimited by +++. Each element of the frontmatter has a default (usually empty). It's your job to change the value of each element according to the show components.
Create an image called logo of any valid web type (e.g., JPG, GIF, PNG, SVG) and place it in the same directory as the show. e.g., sponsor/ivy-tech/logo.png. See guidelines for image sizing and optimization.
The next (or currently running) Show and the next Event are automatically included in the hero system on the homepage. You may choose to add special hero images and corresponding call-to-action. See guidelines for image sizing and optimization.
$ hugo new special/[the-name-of-the-special]/index.mdReplace [the-name-of-the-special] with the name of the special -- all lowercase with hyphens separating words.
You should get a result of something like this:
$ hugo new special/new-works/index.md
/Users/marcguyer/dev/bppwrite.github.io/content/special/new-works/index.md createdOpen the content file you created with your favorite text editor. The frontmatter is shown at the top of the content file delimited by +++. Each element of the frontmatter has a default (usually empty). It's your job to change the value of each element according to the special hero components. The frontmatter options are generally the same as for a show or event.
A special hero may have multiple images chosen randomly for each visitor. Simply add at least one and potentially several images starting with hero of any valid web type (e.g., JPG, GIF, PNG, SVG) and place it in the same directory as the special hero content file. e.g., special/new-works/hero.png, special/new-works/hero_2.png, special/new-works/hero_xyz.png, etc.
By default, the hero order is the following:
- The next or currently running show (default
hero_weightof "100") - The next or currently running event (default
hero_weightof "200") - All special heros ordered chronologically by
date. (defaulthero_weightof "300", "400", etc)
To override the order, specify a different hero_weight. For example, to force a new special hero to be first, set the hero_weight to "010". Note the leading zero. The heros are ordered by hero_weight alphabetically, not numerically. The value "010" comes before "100" but "10" comes after "100", and is why we must use the leading zero.
| Purpose | Orientation | Dimensions | Compression | Max Expected Disk Size |
|---|---|---|---|---|
| Hero | Landscape | 1920x1280px | 80% | 300-400Kb |
| Poster | Portrait | 960x1280px | 80% | 200-300Kb |
| Gallery | any | 1280x960px | 80% | 200-300Kb |
| Sponsor Logo | any | --- | --- | --- |