Contenu connexe
Similaire à Movable Type 5のテーマ機能を活用する (20)
Plus de Hajime Fujimoto (20)
Movable Type 5のテーマ機能を活用する
- 7. ブログやってます
The Blog of H.Fujimoto
http://www.h-fj.com/blog/
7
- 11. テーマの仕組み
テーマ
テンプレート
適用
カテゴリ ウェブサイト
フォルダ ブログ
カスタムフィールド エクスポート
ファイル
11
- 20. テーマのファイル構造
theme.yamlファイル
templatesディレクトリ
各種テンプレートファイル
blog_staticディレクトリ
画像等のファイル
設定ファイル(theme.yaml)を書き換えて
機能を追加できる
20
- 23. theme.yamlの基本構造
テーマ全体の設定
elements(テーマの各要素の設定)
エレメント名 内容
template_set テンプレート
default_categories カテゴリ
default_folders フォルダ
custom_fields カスタムフィールド
blog_static_files ファイル
default_pages ウェブページ
23
- 26. サムネイルの追加(2)
以下の3つのファイルを用意
ファイル サイズ
thumb.png 400×300ピクセル
thumb-medium.png 240×180ピクセル
thumb-small.png 120×90ピクセル
theme.yamlファイルと同じディレクトリに
アップロード
26
- 30. ウェブページの追加(3)
項目名 内容
title タイトル
text 本文
text_more 続き
excerpt 概要
folder フォルダ
tags タグ
status 公開状態
30
- 45. 「Movable Type 5 Webサイト製作ガイド
Volume 1&2」(PDF書籍)販売中
http://www.h-fj.com/blog/mt5bookvol1/
http://www.h-fj.com/blog/mt5bookvol2/
45