Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Create template for project cards on homepage

オープン
#46 コメント 8 件 リアクション 0 件 担当者 1 名 GitHub で見る

@tblacknc がすでに取り組んでいます。

2022年1月19日 から。

評価

この issue はまだ評価されていません。

説明

Currently, we show cards for selected projects on the homepage (codeforphilly.org):

image

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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeForPhilly/codeforphilly.org のほかの issue

CodeForPhilly/codeforphilly.org の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。