Create template for project cards on homepage
@tblacknc 已经在做这个了。
开始于 2022年1月19日。
评估
这个 Issue 还没有评估数据。
描述
Currently, we show cards for selected projects on the homepage (codeforphilly.org):

However, the HTML for each card is repeated, with information like heading hard-coded:
https://github.com/CodeForPhilly/codeforphilly.org/blob/develop/html-templates/home.tpl#L100-L115
Proposed Solution
If we use a template, then we can consolidate this repeated code into one place. In other words, we could have a template like this in the home.tpl page:
{template projectTile name description logo=no}
<h1>{$name|escape}</h1>
{$description|escape|markdown}
{/template}
And then create the individual cards using something like this:
{projectTile name="Project 1" description="## This is a cool project"}
{projectTile name="Project 2" description="## This is a another project"}
Here is a link to the template engine docs (owoo). Note that it is fairly old, but if we can get our work pretty far, and post it on the #cfp-homepage-redesign channel, we can hopefully lean a bit on @themightychris to fill in any gaps.
Outcome
The homepage should look the exact same, but the underlying code should be much cleaner, since it uses the template. If there are any useful changes to the look / homepage content, let's handle them after implementing a template (just to be sure we get templating down).
- 主要语言
- CSS
- 星标
- 10
- 派生
- 7
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CodeForPhilly/codeforphilly.org 的其他 Issue
-
redesign
CodeForPhilly/codeforphilly.org#96 · 已指派 1 人 ·
-
redesign
难度 4/5 3-5 天 新手友好度 35/100
-
redesign
难度 5/5 一周以上 新手友好度 25/100
CodeForPhilly/codeforphilly.org#94 · 2 条评论 ·
-
.epic redesign
难度 5/5 一周以上 新手友好度 20/100
-
难度 1/5 1 小时以内 新手友好度 55/100