teraschool/teraschool.github.io

Cardタグ追加

Closed this issue · 0 comments

Cardタグを追加しました。

https://github.com/teraschool/teraschool.github.io/blob/main/docs/_includes/card.html

使い方はこちらをご覧ください。
https://github.com/teraschool/teraschool.github.io/blob/main/docs/pages/languages/index.md
https://raw.githubusercontent.com/teraschool/teraschool.github.io/main/docs/pages/languages/index.md

{% include card.html content="/languages/cpp" %}

のようにcontentにURLを指定すればそのページのCardを生成するようにしています。

出力結果はこちらでみられます。
https://teraschool.github.io/languages/
(C++の画像だけ作っていなかったので、仮でRubyの画像を当ててます)

Cardを

で囲んでいるので、ここを変えれば言語とやってみようで適用するCSSを変えることができます。

不明な点があれば、こちらでコメントしてください。
機能的に追加したいことがあれば遠慮なくおっしゃってください。