Skip to content

Latest commit

 

History

History
330 lines (254 loc) · 39 KB

REFERENCE.md

File metadata and controls

330 lines (254 loc) · 39 KB

Reference for devopsdays-theme

Table of contents

Fields in YYYY-CITY.ymlGeneral FieldsDate-related FieldsBranding FieldsLocation FieldsNavigation FieldsOrganizer Fields   Team Members   Organizer EmailsSponsor fields   Sponsor LevelsProgram Fields   Program Items    Program Element Colors   Ignite Fields Pages and FrontmatterGeneral Page FieldsTalk Page FieldsSpeaker Page FieldsProgram Page FieldsBlog Post Fields Shortcodesgoogle_form

Fields in YYYY-CITY.yml

The YYYY-CITY.yml file is the main configuration file for your event. This is what each field does.

General Fields

Field Name Type Required Description Example
name String Yes The name of the event. Four digit year with the city name in lower-case, with no spaces. "2017-chicago"
year String Yes The year of the event. Make sure it is in quotes. "2017"
city String Yes The displayed city name of the event. Capitalize it. "Salt Lake City"
event_twitter String Yes The twitter handle for your event such as "devopsdayschi" or "devopsdaysmsp". Exclude the "@" symbol. "devopsdayschi"
description String No Overall description of your event. Quotation marks need to be escaped. "It's time for more DevOpsDays at Ponyville!"
ga_tracking_id String No If you have your own Google Analytics tracking ID, enter it here. "UA-74738648-1"
speakers_verbose String No Set this to "true" if you want verbose speaker attributes (URLs visible). "true"

Date-related Fields

All dates are in unquoted YYYY-MM-DD, like this: variable: 2016-01-05, or like variable: 2016-01-05T23:59:00-06:00

Field Name Type Required Description Example
startdate YYYY-MM-DD No The start date of your event. Leave blank if you don't have a venue reserved yet. 2016-01-05
enddate YYYY-MM-DD No The end date of your event. Leave blank if you don't have a venue reserved yet. 2016-01-05
cfp_date_start YYYY-MM-DD No The date you will start accepting talk proposals. Can be a blank value. 2016-01-05
cfp_date_end YYYY-MM-DD No The date you will close your call for proposals. Can be a blank value. If you set the full datetime string with correct TZ, CFP will display as open until local close time. 2016-01-05T23:59:00-06:00
cfp_date_announce YYYY-MM-DD No The date you will inform proposers of status. Can be a blank value. 2016-01-05
cfp_open String No Either "true" or "false". Can be blank. This controls whether or not the "propose" button shows on your event page. Deprecated field; if you have set cfp_date_start and cfp_date_end they will serve the same purpose. "true"
cfp_link String No If you have a custom link for submitting proposals, add it here. This will control the Propose menu item as well as the "Propose" button. "https://myurlhere"
registration_date_start YYYY-MM-DD No The date you will start accepting registration. Can be a blank value. 2016-01-05
registration_date_end YYYY-MM-DD No The date you will close registration. Can be a blank value. 2016-01-05
registration_closed String No Set this to "true" if you need to manually close registration before your registration end date. "true"
registration_link String No If you have a custom registration link, enter it here. This will control the Registration menu item as well as the "Register" button. "https://myurlhere"
sponsor_link String No If you have a custom sponsorship link, enter it here. This will control the "Become an X Sponsor!" links. It does NOT change the "Sponsor" button. "https://myurlhere"

Branding Fields

Field Name Type Required Description Example
masthead_background String No The image, relative to static/events/YYYY-CITY that you want to be the background of the header on your page. skyline-night.jpg

Location Fields

Field Name Type Required Description Example
coordinates String Yes The coordinates of your city. Get Latitude and Longitude of a Point. Required to display event on the map. "41.882219, -87.640530"
location String Yes The generator scripts will default to the value of City, but you can make it the venue name. "Chicago Mart West"
location_address String No Use the street address of your venue. This will show up on the welcome page if set. "350 West Mart Center Drive, Chicago, IL 60654"

Navigation Fields

These fields are used to control the navigation elements (menu) of your event's page. The syntax for navigation is thus:

nav_elements:
  - name: propose
  - name: location
  - name: registration
  - name: program
  - name: speakers
  - name: sponsor
  - name: contact
  - name: conduct

If you would like to add a custom/additional navigation to your menu, add another element where you would like it to appear. You will also need to provide the target for the link if it not relative to your event, as so:

nav_elements
  - name: propose
  - name: volunteer
  - name: party
    url: http://www.google.com

The above example would create a new menu item called "Volunteer" which linked to devopsdays/events/YYYY-CITY/volunteer, and another menu item called "party" which would link to http://www.google.com

The menu items also take an optional parameter of icon where you can set the font-awesome icon that will display on small screens. Choose at http://fontawesome.io/icons/. Example:

nav_elements
  - name: example
    icon: "map-o"

Organizer Fields

Team Members

Remember, the organizers listed are are the same people you have on the mailing list and Slack channel.

Each team member is an element of team_members.

Field Name Type Required Description Example
name String Yes The person's full name. "John Doe"
role String No The role of the organizer in the team. If not specified, will display "Organizer". "Sponsor Coordinator"
twitter String No The twitter handle of the person, without the @ symbol "johndoe"
employer String No The name of the person's employer. "Acme Anvil Co."
github String No The GitHub username of the person "johndoe"
facebook String No The full URL to the person's Facebook page "https://www.facebook.com/sally.fields"
linkedin String No The full URL to the person's LinkedIn page "https://www.linkedin.com/in/sallyfields"
website String No The full URL to the person's webpage "https://mattstratton.com"
image String No The name of the image for this user, located in static/events/YYYY-CITY/organizers/. This image must be a JPEG, either 300px square or (optimally) 600px square. "sally-fields.jpg"
bio String No The bio for the user. Markdown is supported. Quotation marks must be escaped. "Thought leader paradigm affordances physical computing quantitative vs. qualitative disrupt thought leader disrupt. Venture capital Steve Jobs pitch deck moleskine sticky note agile Steve Jobs pivot disrupt grok driven. Human-centered design bootstrapping agile driven grok food-truck ship it long shadow."

Organizer Emails

Field Name Type Required Description Example
organizer_email String Yes Organizer email address "[email protected]"
proposal_email String Yes Proposal email address "[email protected]"

Sponsor fields

Each team member is an element of sponsors.

Field Name Type Required Description Example
id String Yes The name of the sponsor; matches to a file in `date/sponsors arresteddevops
level String Yes The level of sponsorship for this sponsor. gold
url String No Will override the URL specified in the sponsor file. Useful if you have event-specific URL's for a sponsor. http://mysponsor.com/?campaign=me
Field Name Type Required Description Example
sponsors_accepted String No Set this to "yes" if you would like the "become a sponsor" link to appear "yes"

Sponsor Levels

All sponsorship levels are elements of sponsor_levels.

Field Name Type Required Description Example
id String Yes Identifies the sponsor level as mapped to your list of sponsors. No spaces. gold
label String Yes How the sponsor level appears on the site. Spaces are allowed. Gold
max String No The maximum amount of sponsors allowed for this level. Once this has been reached, the "become a sponsor" link for that level will no longer appear. Setting this to "0", or leaving it blank, results in unlimited sponsors for that level 10

Program Fields

Program Items

The elements of your program are set in the program section. Example:

program:
  - title: "Registration, Breakfast, and Sponsor Booths Open"
    type: custom
    date: 2017-06-16
    start_time: "08:00"
    end_time: "09:00"
    custom_url: "https://example.com/registration"
  - title: "Opening Welcome"
    type: custom
    date: 2017-06-16
    start_time: "09:15"
    end_time: "09:00"
Field Name Required Description Example
title Yes The name of the program element. If it is a talk, ignite, or workshop, use the name of the talk/ignite/workshop file, minus the .md extension. "Opening Welcome" or "apple-jack"
type Yes The type for the program element. Valid choices are custom, talk, ignite, workshop, or open-space. This defines the color of the program element. talk, ignite, and workshop types will create a link to the program item named in title. talk
date Yes The date of the program element, in YYYY-MM-DD format. 2017-06-16
start_time Yes The start time of the program element. "08:00"
end_time Yes The end time of the program element. "13:40"
comments No Additional comments/notes about the program types talk, workshop and custom (for example, location of an evening event). Markdown is supported. "This will be at the Pony Club,1005 Ponyville Drive,Ponyville, IL,60612"
background_color No Allows the ability to override the color of the program element. Only the background color can be changed; please test to make sure the color works with the displayed text colors. Color is expressed in RGB HEX value. Must be in quotes. "#FFFA99"
custom_url No Replaces the URL for various program types to link to external URL or a URL of your choosing. Valid for custom, talk, ignite, workshop, or open-space "https://example.com"
Program Element Colors

The current colors for program types (click on a link to see the color):

Ignite Fields

The Ignite elements are set in the ignites section. Example:

ignites:
  - title: "spike"
    date: 2017-06-16
  - title: "DevOps With Delight"
    date: 2017-06-16
    custom_url: "https://example.com/ignites
Field Name Required Description Example
title Yes The title of the ignite. If it is named after the filename (without the .md extension` of a talk, it will generate a link to the talk page. "matt-stratton" or "DevOps With Delight"
date Yes The date of the ignite, in YYYY-MM-DD format. 2017-06-16
custom_url No Allows linking to URL off-site for various reasons. "https://example.com/schedule"

Pages and Frontmatter

The "frontmatter" refers to the TOML fields at the beginning of all .md files in your content directory (i.e., content/events/2017-ponyville/...). Frontmatter looks like this:

+++
Description = "DevOpsDays Ponyville is back for 2017! We will be hanging out and showing off our awesomeness."
Title = "devopsdays Ponyville 2017"
Type = "welcome"
aliases = ["/events/2017-ponyville/welcome"]
+++

The content is everything following the last +++.

General Page Fields

All pages have some common frontmatter elements that they share. These include:

Field Name Required Description Example
Description No The summary, or description, of the content of the page. It is highly recommended that this is populated on every page, as it is used in social sharing, as well as for SEO purposes. "DevOpsDays Ponyville is back for 2017! We will be hanging out and showing off our awesomeness."
Title Yes The title of the page. This is usually prepopulated for you, but it is highly recommended that you do NOT use the default titles; add some flair to set your event apart. "devopsdays Ponyville 2017"
Type Yes This is required, but is usually pre-populated. Valid types are "event", "welcome", "program", "speaker", "speakers", and "talk". The type you should use for "regular" pages is "event". "talk"
aliases No This creates aliases to the page. For example, if you want your index page to also be accessible as /welcome under your event, you would add the alias here. ["/events/2017-ponyville/welcome"]

Talk Page Fields

Pages of the type talk (which can include workshops, ignites, or talks) have a few additional frontmatter elements available to them, in addition to the ones mentioned above.

Field Name Required Description Example
speakers Yes An array of the names of the speakers (relative to the filenames for the speaker in your content/events/YYYY-CITY/speakers directory). Even if there is only one speaker, it should be formatted as an array. speakers = ["fluttershy", "spike"]
youtube No The ID of the YouTube video (not the full URL). "8ClZXJsgpHY"
vimeo No The ID of the Vimeo video (not the full URL). "219025568"
speakerdeck No The URL to the talk on Speakerdeck. Use the full URL. "https://speakerdeck.com/mattstratton/shifting-left-securely"
slideshare No The URL to the talk on Slideshare. Use the full URL "http://www.slideshare.net/mattstratton/the-five-love-languages-of-devops-54549536"
googleslides No The ID of the talk on Google Slides (not the full URL). "1QnakgUC8AaNydPZCmKGYYja8gs2WoHbHRSjioIVdD9g"
pdf No The URL to the PDF. Use the full URL. "http://www.mattstratton.com/my-slides.pdf"
slides No If the slides are available on a service other than Speakerdeck or Slideshare, enter the URL here. "http://www.mattstratton.com/my-slides"

Speaker Page Fields

Pages of the type speaker have a few additional frontmatter elements available to them, in addition to the general ones mentioned above.

Field Name Required Description Example
website No The website for the speaker. "https://www.mattstratton.io"
twitter No Speaker's Twitter username, without the @. "mattstratton"
facebook No Speaker's Facebook URL "https://www.facebook.com/matt.stratton"
linkedin No Speaker's LinkedIn URL "https://www.linkedin.com/in/mattstratton/"
github No Speakers' GitHub username. "mattstratton"
gitlab No Speakers' GitLab username. "mattstratton"
image No The image for the speaker. This image is relative to the static/events/YYYY-CITY/speakers directory. It can be either .png or .jpg. It must be square, and 300px square, 600px square, or 900px square. "matt-stratton.jpg"

Program Page Fields

The page of type program has one additional frontmatter element.

Field Name Required Description Example
icons No Toggles display of slide/video icons on the program page "true"

Blog Post Fields

Field Name Required Description Example
Description No The short summary of this post. This is used in various places on the site, as well as for sharing. While it is optional, it is highly recommended to use it. Markdown is allowed. "DevOpsDays Chicago took place on August 30th & 31st at Summit West in beautiful downtown Chicago. A sold-out, diverse crowd gathered for keynotes, presentations, lightning talks, and open spaces to learn, discuss, and promote all things DevOps."
Author No The name of the person who wrote the blog post. "Matt Stratton"
title Yes The title for the blog post. "Chicago 2016 In Review"
sharing_image No The image to use for social sharing. This is a path relative to the static directory. "img/blog/chicago-2016-sharing.jpg"

Shortcodes

Shortcodes can be used in any of your content (i.e., ".md" files. They provide easy ways to add content without having to write a lot of coding.)

google_form

This shortcode allows for the embedding of a Google form on a page, in a manner that maintains the responsive, mobile-friendly design of the site. To use it, you only need the URL of your form (not the full embed code) and enter this on your page (substituting the proper URL):

{{< google_form "https://docs.google.com/forms/d/e/1FAIpQLScvv-ty_wEBlYkJaEC1OU0qqqbIHjf9JVa-Ptdo5TcHqz5EDA/viewform?usp=sf_link" >}}

tito_widget

Using the tito shortcode enables the embedding of the tito sales widget described on their documentation (https://ti.to/docs/widget). To use it you just need to enter to event path of your tito event which will follow the URL of your event page. For example, if the URL is https://ti.to/devopsdays-london/2019 your event path would be devlopsdays-london/2019. The shortcode also enables the other features described such as the ability to show specific tickets using the examples shown below

{{< tito_widget event="devopsdays-london/2019" >}}

To show only a specific ticket within the widget:

{{< tito_widget event="devopsdays-london/2019" releases="fiaurhghf2k">}}

To show discounted tickets on the page (they display as a striked through full-price along with the new price):

{{< tito_widget event="devopsdays-london/2019" discount-code="examplediscount" >}}