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

Commit 76f36ad

Browse files
author
Christopher Mills
committed
[refs #611] Add custom_url to program
Add ability to add a custom_url type for all types of talk on the program page. Adding custom_url: "https://valid.url.co.uk" will result in the link on the schedule being opened in another window. I also took it upon myself to change the indenting in the single.html file but this can be reverted.
1 parent 28e6c40 commit 76f36ad

4 files changed

Lines changed: 140 additions & 135 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ bower_components
44
release/
55
dist
66
.DS_Store
7+
.idea/

REFERENCE.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,22 +175,24 @@ program:
175175
date: 2017-06-16
176176
start_time: "08:00"
177177
end_time: "09:00"
178+
custom_url: "https://example.com/registration"
178179
- title: "Opening Welcome"
179180
type: custom
180181
date: 2017-06-16
181182
start_time: "09:15"
182183
end_time: "09:00"
183184
```
184185

185-
| Field Name | Required | Description | Example |
186-
|--------------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|
187-
| `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" |
188-
| `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 |
189-
| `date` | Yes | The date of the program element, in YYYY-MM-DD format. | 2017-06-16 |
190-
| `start_time` | Yes | The start time of the program element. | "08:00" |
191-
| `end_time` | Yes | The end time of the program element. | "13:40" |
192-
| `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](http://www.mattstratton.com),1005 Ponyville Drive,Ponyville, IL,60612" |
193-
| `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" |
186+
| Field Name | Required | Description | Example |
187+
|--------------------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|
188+
| `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" |
189+
| `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 |
190+
| `date` | Yes | The date of the program element, in YYYY-MM-DD format. | 2017-06-16 |
191+
| `start_time` | Yes | The start time of the program element. | "08:00" |
192+
| `end_time` | Yes | The end time of the program element. | "13:40" |
193+
| `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](http://www.mattstratton.com),1005 Ponyville Drive,Ponyville, IL,60612" |
194+
| `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" |
195+
| `custom_url` | No | Replaces the URL for various program types to link to external URL or a URL of your choosing. Valid choices are `custom`, `talk`, `ignite`, `workshop`, or `open-space` | "https://example.com" |
194196

195197
##### Program Element Colors
196198

@@ -213,12 +215,14 @@ ignites:
213215
date: 2017-06-16
214216
- title: "DevOps With Delight"
215217
date: 2017-06-16
218+
custom_url: "https://example.com/ignites
216219
```
217220

218-
| Field Name | Required | Description | Example |
219-
|------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------|
220-
| `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" |
221-
| `date` | Yes | The date of the ignite, in YYYY-MM-DD format. | 2017-06-16 |
221+
| Field Name | Required | Description | Example |
222+
|--------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------|
223+
| `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" |
224+
| `date` | Yes | The date of the ignite, in YYYY-MM-DD format. | 2017-06-16 |
225+
| `custom_url` | No | Allows linking to URL off-site for various reasons. | "https://example.com/schedule" |
222226

223227
## Pages and Frontmatter
224228

0 commit comments

Comments
 (0)