Skip to content

Commit

Permalink
Merge pull request #4 from jasonlally/projects-features
Browse files Browse the repository at this point in the history
Add branch as config variable for prose workflow
  • Loading branch information
jasonlally committed Jan 25, 2015
2 parents 1b02723 + 5ab8554 commit c8a6df8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ permalink: /:categories/:title/
markdown: kramdown
url: "http://codeforsanfrancisco.org"
baseurl: /sfbrigade-website
defaultbranch: gh-pages

owner:
twitter: sfbrigade
Expand Down
1 change: 1 addition & 0 deletions js/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function showProjects(response){
}

project['repository_nwo'] = {% if site.github.repository_nwo %}"{{site.github.repository_nwo}}"{% else %}" "{% endif %};
project['default_branch'] = "{{site.defaultbranch}}";
project['file_name'] = moment().format('MM-DD-YYYY-') + slugify(project['name']).toLowerCase() + ".md";
// to display text like 'x days ago' we use moment.js's awesome fromNow function
// http://momentjs.com/docs/#/displaying/fromnow/
Expand Down
2 changes: 1 addition & 1 deletion projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="row">
<div class="col-sm-12">
<h1>{{name}} {{^cfsf_url}}
<a href="https://github.com/login/oauth/authorize?client_id=c602a8bd54b1e774f864&scope=repo&redirect_uri=http://prose.io/#{{repository_nwo}}/new/master/_posts/projects/{{id}}/{{file_name}}" class="btn btn-xs btn-success">Claim this project</a></strong>
<a href="https://github.com/login/oauth/authorize?client_id=c602a8bd54b1e774f864&scope=repo&redirect_uri=http://prose.io/#{{repository_nwo}}/new/{{default_branch}}/_posts/projects/{{id}}/{{file_name}}" class="btn btn-xs btn-success">Claim this project</a></strong>
{{/cfsf_url}}</h1>
<p class="lead">{{description}}
{{#cfsf_url}}
Expand Down

0 comments on commit c8a6df8

Please sign in to comment.