Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Adding talk types #545

Merged
merged 3 commits into from
May 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ program:

| Field Name | Required | Description | Example |
|--------------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| `title` | Yes | The name of the program element. If it is a talk or ignite, it should be the name of the talk/ignite 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. If you set `ignite`, it will also display all ignites for that date. | talk |
| `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" |
Expand Down
2 changes: 1 addition & 1 deletion layouts/program/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h5 class="mb-0">
{{- if .comments -}}
<span class="program-page-desc">{{ .comments | markdownify }}<br/></span>
{{- end -}}
{{- else if eq .type "talk" -}}
{{- else if or (eq .type "talk") (eq .type "workshop") -}}
<a href="{{ (printf "events/%s/program/%s" $e.name .title) | absURL }}">
{{ $.Scratch.Get (printf "%s-speaker" .title) }}
-
Expand Down