From 2ca88a6e3e453f271d336ac0dabbb4fa5e88f262 Mon Sep 17 00:00:00 2001 From: Jason Lally Date: Sat, 24 Jan 2015 20:31:55 -0800 Subject: [PATCH] add prose config for projects --- _config.yml | 18 ++++++++++++++++++ .../31775/2014-07-26-local-free-web.md | 2 -- js/projects.js | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 68e40ce2..f03b38e7 100644 --- a/_config.yml +++ b/_config.yml @@ -37,5 +37,23 @@ prose: element: "select" label: "Author" options: "http://codeforsanfrancisco.org/api/authors.json?callback=authorsCallback" + _posts/projects: + - name: "layout" + field: + element: "hidden" + value: "projects" + - name: "category" + field: + element: "hidden" + value: "projects" + - name: "title" + field: + element: "text" + label: "Title" + - name: "lead" + field: + element: "text" + label: "Short description" + help: "This text shows up directly under the name of the project and should be a one sentence description." exclude: ["lib", "config.rb", ".sass-cache", "Capfile", "config", "log", "Rakefile", "Rakefile.rb", "tmp", "*.sublime-project", "*.sublime-workspace", "Gemfile", "Gemfile.lock", "README.md", "LICENSE", "node_modules", "Gruntfile.js", "package.json"] diff --git a/_posts/projects/31775/2014-07-26-local-free-web.md b/_posts/projects/31775/2014-07-26-local-free-web.md index f16bad95..400bd7ab 100644 --- a/_posts/projects/31775/2014-07-26-local-free-web.md +++ b/_posts/projects/31775/2014-07-26-local-free-web.md @@ -2,8 +2,6 @@ title: Local Free Web layout: projects category: projects -api_id: 2232 -github_urls: ['https://github.com/sfbrigade/localfreeweb.org','https://github.com/sfbrigade/localfreeweb-sms-api','https://github.com/sfbrigade/LocalFreeWeb'] lead: Text message any bus stop to find the closest free and accessible computers with Internet. project: local-free-web --- diff --git a/js/projects.js b/js/projects.js index 9837109d..c77937b1 100644 --- a/js/projects.js +++ b/js/projects.js @@ -21,7 +21,7 @@ function showProjects(response){ project['cfsf_url'] = projectData[project['id']]['url']; } - project['repository_nwo'] = {% if site.github.repository_nwo %}{{site.github.repository_nwo}}{% else %}" "{% endif %}; + project['repository_nwo'] = {% if site.github.repository_nwo %}"{{site.github.repository_nwo}}"{% else %}" "{% endif %}; 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/