diff --git a/README.template.md b/README.template.md
index 35c8923..10d05ec 100644
--- a/README.template.md
+++ b/README.template.md
@@ -23,5 +23,5 @@ the folder with your team name and inside this folder, create two files:
We will periodically run a script that will pull your info and populate
the lower section of this README.md file.
-| #TeamName | Team Lead | Team Members | Team Page |
-|---------------|-----------|--------------|-----------|
+| #TeamName | Team Members | Team Page |
+|---------------|--------------|-----------|
diff --git a/gulpfile.coffee b/gulpfile.coffee
index 41a4933..c025ae1 100644
--- a/gulpfile.coffee
+++ b/gulpfile.coffee
@@ -47,9 +47,11 @@ format_json = (data, filepath) ->
# Get the lead, ahead of time.
teamLead = null
if data.members? and data.members instanceof Array
- for member in data.members
+ for member, i in data.members
if member.lead is true
teamLead = member
+ data.members.splice i, 1
+ data.members.unshift teamLead
break
output = '|'
@@ -67,20 +69,16 @@ format_json = (data, filepath) ->
else
output += " |"
- # Second column, TeamLead
- if teamLead?
- output += "#{format_member teamLead} |"
- else
- output += " |"
-
- # Third column, TeamMembers
+ # Second column, TeamMembers
if data.members? and data.members instanceof Array
for member in data.members
- output += "#{format_member member}
- #{member.location ? ''}
"
+ output += format_member member
+ output += " #{member.location}" if member.location?
+ output += " *(team lead)*" if member.lead is true
+ output += "
"
output += " |"
- # Fourth column, TeamPage
+ # Third column, TeamPage
if data.teamName? then teamName = data.teamName
else teamName = teamPathName
output += " [#{teamName}](./Teams/#{teamPathName}/ABOUT.md) |"