Skip to content

Commit

Permalink
Merge pull request #75 from mattstratton/add-more-fields
Browse files Browse the repository at this point in the history
Add fields to guest and hosts
  • Loading branch information
mattstratton authored May 7, 2017
2 parents 1b7c719 + 259bc42 commit 3dc9c34
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 6 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ You will need to add a handful of configuration items to your `config.toml` file
- `facebook` - Example: `"matt.stratton"`
- `twitter` - Example: `mattstratton`
- `linkedin` - Example: `"mattstratton"`
- `homepage` - Example: `"https://www.mattstratton.com"`
- `pinterest` - Example: `"mattstratton"`
- `instagram` - Example: `"mattstratton"`
- `youtube` - Example: `"mattstratton"`

#### A note about `BaseURL`

Expand Down Expand Up @@ -142,7 +146,7 @@ Graphical user interface influencer value proposition startup hackathon iPad ana
| `podcast_file` | Yes | The filename of your episode, relative to the `media_prefix` of your config.toml. | `"arrested-devops-podcast-episode053.mp3"` |
| `podcast_bytes` | No | The length of the podcast file in bytes. This is optional, but iTunes and many other podcast players prefer this to be set. | "23907533" |
| `Title` | Yes | The title of the episode. | "Back to School" |
| `youtube` | No | The ID of the YouTube video (not the full URL). Currently unusued. | "8ClZXJsgpHY"
| `youtube` | No | The ID of the YouTube video (not the full URL). Currently unusued. | "8ClZXJsgpHY"

### Guests

Expand All @@ -169,7 +173,6 @@ Spoon fresh pie ingredients groceries oranges luncheon farm. Broth chick peas Ch
```


| Field Name | Required | Description | Example |
|-------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------|
| `Title` | Yes | The full name of the guest. This is what is displayed on the episode page, etc. | "Jane Smith" |
Expand All @@ -178,4 +181,7 @@ Spoon fresh pie ingredients groceries oranges luncheon farm. Broth chick peas Ch
| `GitHub` | No | Guest's GitHub username. | "mattstratton" |
| `Facebook` | No | Guest's Facebook username. Do not use the full URL. | "matt.stratton" |
| `Twitter` | No | Guest's Twitter username, without the `@`. | "mattstratton" |
| `LinkedIn` | No | LinkedIn profile name. Optional. This is the part that comes after the `https://www.linkedin.com/in/` in your profile URL. | "mattstratton" | |
| `LinkedIn` | No | LinkedIn profile name. This is the part that comes after the `https://www.linkedin.com/in/` in your profile URL. | "mattstratton" |
| `Pinterest` | No | Pinterest profile name. | "mattstratton" |
| `Instagram` | No | Instagram profile name. | "mattstratton" |
| `YouTube` | No | YouTube profile/channel name | "mattstratton" |
3 changes: 3 additions & 0 deletions archetypes/guest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ Facebook = ""
Linkedin = ""
GitHub = ""
Thumbnail = ""
Pinterest = ""
Instagram = ""
YouTube = ""
+++
10 changes: 10 additions & 0 deletions config.codekit3
Original file line number Diff line number Diff line change
Expand Up @@ -7535,6 +7535,16 @@
"oAP": "\/exampleSite\/static\/.gitkeep",
"oF": 0
},
"\/exampleSite\/static\/img\/episode\/default-banner.jpg": {
"ft": 16384,
"iS": 116684,
"oA": 0,
"oAP": "\/exampleSite\/static\/img\/episode\/default-banner.jpg",
"oF": 0,
"oIPL": 0,
"opt": 0,
"q": 100
},
"\/exampleSite\/static\/img\/episode\/default-social.jpg": {
"ft": 16384,
"iS": 147346,
Expand Down
3 changes: 3 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
twitter = "mattstratton"
linkedin = "mattstratton"
homepage = "https://www.mattstratton.io"
pinterest = "mattstratton"
instagram = "instagram"
youtube = "mattstratton"
[params.authors.Trevor]
name = "Trevor Hess"
thumbnail = "https://www.arresteddevops.com/img/trevor.png"
Expand Down
5 changes: 4 additions & 1 deletion exampleSite/content/guest/jsmith.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ Type = "guest"
Facebook = ""
Linkedin = ""
Pronouns = ""
GitHub = ""
GitHub = "jsmith"
Thumbnail = "img/guest/jsmith.jpg"
Pinterest = "mattstratton"
Instagram = "mattstratton"
YouTube = ""
+++
Spoon fresh pie ingredients groceries oranges luncheon farm. Broth chick peas Chinese food indie foods. Cream heating cheese food locally grown first class caramelize restaurant grocery shopping savory chick peas. Recommendations lovely starter soda herbes fridge chocolate eat better quinoa sausage java chef locally grown wholesome. Broil sweet sushi lasagna cream indian. Desert sour vegetarian sous-chef soda oven tasty eat better rice recommendations relish salt butter grape. Grocery shopping delicious Chinese food beets conserve ginger. Authentic blend drink sausage. Groceries sour desert. Take away lasagna consumer luncheon scent cookie beer groceries meals restaurants java cheese vegan chick peas.
13 changes: 11 additions & 2 deletions layouts/about/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,19 @@ <h3>{{ $p.name }}</h3>
<a href = "https://github.com/{{ $p.social.github}}"><i class="fa fa-github-square fa-2x"></i></a>
{{ end }}
{{ if isset $p.social "linkedin" }}
<a href = "{{ $p.social.linkedin}}"><i class="fa fa-linkedin-square fa-2x"></i></a>
<a href = "https://www.linkedin.com/in/{{ $p.social.linkedin}}"><i class="fa fa-linkedin-square fa-2x"></i></a>
{{ end }}
{{ if isset $p.social "facebook" }}
<a href = "{{ $p.social.facebook}}"><i class="fa fa-facebook-square fa-2x"></i></a>
<a href = "https://www.facebook.com/{{ $p.social.facebook}}"><i class="fa fa-facebook-square fa-2x"></i></a>
{{ end }}
{{ if isset $p.social "pinterest" }}
<a href = "https://www.pinterest.com/{{ $p.social.pinterest}}"><i class="fa fa-pinterest-square fa-2x"></i></a>
{{ end }}
{{ if isset $p.social "instagram" }}
<a href = "https://www.instagram.com/{{ $p.social.instagram}}"><i class="fa fa-instagram fa-2x"></i></a>
{{ end }}
{{ if isset $p.social "youtube" }}
<a href = "https://www.youtube.com/{{ $p.social.youtube}}"><i class="fa fa-youtube-square fa-2x"></i></a>
{{ end }}
</div>
</div>
Expand Down
15 changes: 15 additions & 0 deletions layouts/episode/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,21 @@ <h2><a href = "{{(printf "guest/%s" .File.BaseFileName) | absURL }}">{{ .Title }
<i class="fa fa-facebook-square fa-2x"></i>
</a>
{{ end }}
{{ if .Params.Pinterest }}
<a href="https://www.pinterest.com/{{ .Params.Pinterest}}">
<i class="fa fa-pinterest-square fa-2x"></i>
</a>
{{ end }}
{{ if .Params.Instagram }}
<a href="https://www.instagram.com/{{ .Params.Instagram}}">
<i class="fa fa-instagram fa-2x"></i>
</a>
{{ end }}
{{ if .Params.YouTube }}
<a href="https://www.youtube.com/{{ .Params.YouTube}}">
<i class="fa fa-youtube-square fa-2x"></i>
</a>
{{ end }}
</div>
</div>
{{ end }}
Expand Down
15 changes: 15 additions & 0 deletions layouts/guest/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,21 @@ <h1>{{ title .Title }}</h1>
<i class="fa fa-facebook-square fa-2x"></i>
</a>
{{ end }}
{{ if .Params.Pinterest }}
<a href="https://www.pinterest.com/{{ .Params.Pinterest}}">
<i class="fa fa-pinterest-square fa-2x"></i>
</a>
{{ end }}
{{ if .Params.Instagram }}
<a href="https://www.instagram.com/{{ .Params.Instagram}}">
<i class="fa fa-instagram fa-2x"></i>
</a>
{{ end }}
{{ if .Params.YouTube }}
<a href="https://www.youtube.com/{{ .Params.YouTube}}">
<i class="fa fa-youtube-square fa-2x"></i>
</a>
{{ end }}
</div>
</div>
<div class = "row">
Expand Down

0 comments on commit 3dc9c34

Please sign in to comment.