ラベル

Server (108) work (77) Idea (68) Car (31) PC (29) DAW (28) other (19) MakingWEBsite (18) 趣味 (18) health (13) CentOS (11) drupal (11) (9) android (4) スマホ (4) communication (3) drupal7 (3) hint (3) meno (3) モバイル (3) 歯医者 (3) 第二種電気工事士 (3) 英語 (3) PC Server (2) drupal8 (2) ms access (2) uwp C# (2) めし (2) 整備 (2) 音楽 (2) MIDI (1) diy (1) 会計 (1) 動画再生 (1) 生活 (1) 郵便 (1) 食べ物 (1)

2017年7月22日土曜日

drupal8 theme テーマ カスタム

テーマの置き場所は
/themes/
配布しているものと自分で作ったものとを分けたいときは、
/themes/contrib/
/themes/custom/
に分けるのがなんとなく(開発者の間では)緩い決まりらしい。

テーマを自分で作る時に最低限必要なもの。
/themes/custom/hogepeke/hogepeke.info.yml
中身は
name: hogepeke
type: theme
description: hegepeke thema
core: 8.x
base theme: classy
base themeは何も指定しない場合Stableになるそうだ。
Stableが一番シンプルなものらしい。

その他テーマのバージョン
version: 8.x-1.0
などをいれる。
詳しくは、drupalのサイトで、
Defining a theme with an .info.yml file
Create an .info.yml file
を見ること。


0 件のコメント:

コメントを投稿