Skip to content

Commit

Permalink
Make aka work for more than one to one (#144)
Browse files Browse the repository at this point in the history
Fixes #140

Signed-off-by: Matt Stratton <[email protected]>
  • Loading branch information
mattstratton authored Feb 10, 2018
1 parent 0e8a59d commit 51c1439
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Facebook = "johndoe"
Linkedin = "johndoe"
GitHub = "johndoe"
Thumbnail = "img/guest/jdoe.jpg"
Aka = "jdoe2"
Aka = ["jsmith", "jsmith2"]
+++
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.
Expand All @@ -260,7 +260,7 @@ Spoon fresh pie ingredients groceries oranges luncheon farm. Broth chick peas Ch
| `Pinterest` | No | Pinterest profile name. | "mattstratton" |
| `Instagram` | No | Instagram profile name. | "mattstratton" |
| `YouTube` | No | YouTube profile/channel name | "mattstratton" |
| `Aka` | No | The name of another guest file which is an alternate identity for this guest (for example, if the bio changes, name changes, etc). This should be set in both directions (i.e., the `Aka` field should be set on `mstratton.md` and `mstratton2.md` pointing to each other). | "mstratton2" |
| `Aka` | No | The name(s) of another guest file which is an alternate identity for this guest (for example, if the bio changes, name changes, etc). This should be set in both directions (i.e., the `Aka` field should be set on `mstratton.md` and `mstratton2.md` pointing to each other). | Aka = ["jsmith", "jsmith2"] |
### Sponsors

If your podcast doesn't have sponsors, feel free to disregard this section.
Expand Down
25 changes: 25 additions & 0 deletions config.codekit3
Original file line number Diff line number Diff line change
Expand Up @@ -40977,6 +40977,13 @@
"oAP": "\/exampleSite\/.gitignore",
"oF": 0
},
"\/exampleSite\/config.toml": {
"cB": 0,
"ft": 8192,
"oA": 2,
"oAP": "\/exampleSite\/config.toml",
"oF": 0
},
"\/exampleSite\/content\/about\/about.md": {
"cB": 0,
"cS": 0,
Expand Down Expand Up @@ -41391,6 +41398,24 @@
"rFN": 0,
"uCM": 0
},
"\/exampleSite\/content\/guest\/jsmith2.1.md": {
"cB": 0,
"cS": 0,
"eF": 1,
"eL": 1,
"ema": 1,
"eSQ": 1,
"ft": 4096,
"oA": 1,
"oAP": "\/exampleSite\/content\/guest\/jsmith2.1.html",
"oF": 0,
"oFM": 0,
"oS": 0,
"pHT": 0,
"pME": 1,
"rFN": 0,
"uCM": 0
},
"\/exampleSite\/content\/guest\/jsmith2.md": {
"cB": 0,
"cS": 0,
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/guest/jsmith.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Thumbnail = "img/guest/jsmith.jpg"
Pinterest = "mattstratton"
Instagram = "mattstratton"
YouTube = ""
Aka = "jsmith2"
Aka = ["jsmith3", "jsmith2"]
+++
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.
2 changes: 1 addition & 1 deletion exampleSite/content/guest/jsmith2.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Thumbnail = "img/guest/jsmith.jpg"
Pinterest = "mattstratton"
Instagram = "mattstratton"
YouTube = ""
Aka = "jsmith"
Aka = ["jsmith", "jsmith3"]
+++
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.
17 changes: 17 additions & 0 deletions exampleSite/content/guest/jsmith3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
+++
Title = "Jane Smith-Wesson"
date = "2016-12-08T20:55:58-06:00"
Twitter = "jsmith"
Website = "http://www.apple.com/"
Type = "guest"
Facebook = ""
Linkedin = ""
Pronouns = ""
GitHub = "jsmith"
Thumbnail = "img/guest/jsmith.jpg"
Pinterest = "mattstratton"
Instagram = "mattstratton"
YouTube = ""
Aka = ["jsmith", "jsmith2"]
+++
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.
12 changes: 7 additions & 5 deletions layouts/guest/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,13 @@ <h3>Episodes Featuring {{ .Title }}</h3>
{{ end }}
{{ end }}
{{- with .Params.Aka -}}
{{- $.Scratch.Set "guest-name" . -}}
{{- range $page := where $.Site.Pages "Type" "episode" -}}
{{- range $page.Params.guests -}}
{{- if eq . ($.Scratch.Get "guest-name") -}}
<a href = "{{$page.Permalink}}" class = "guest_page_episode_link list-group-item list-group-item-action">{{$page.Title}}</a>
{{ range $name := . }}
{{- $.Scratch.Set "guest-name" $name -}}
{{- range $page := where $.Site.Pages "Type" "episode" -}}
{{- range $page.Params.guests -}}
{{- if eq . ($.Scratch.Get "guest-name") -}}
<a href = "{{$page.Permalink}}" class = "guest_page_episode_link list-group-item list-group-item-action">{{$page.Title}}</a>
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
Expand Down

0 comments on commit 51c1439

Please sign in to comment.