Quantcast
Channel: 一言多いプログラマーの独り言
Viewing all articles
Browse latest Browse all 846

PHPの静的サイトジェネレーター「Spress」でデザイン変更

$
0
0
PHPの静的サイトジェネレーター「Spress」でデザイン変更です。

大雑把に言うと、

config.ymlサイト名やURLなどを設定
layoutsレイアウトデザイン、基本になるテンプレート
includesヘッダーやナビゲーション、ページ送りなど、共通化されたメニューパーツ

という感じになると思います。

ファイル構成

├─ build(出来上がり)
├─ src
│ ├─ content
│ │ ├─ posts
│ │ │ ├─ 2015-08-16-my-post.md
│ │ ├─ index.html
│ │ ├─ ...
│ ├─ includes(メニューの部品)
│ ├─ layouts(レイアウト)
│ ├- plugins
├─ composer.json
└─ config.yml(設定ファイル)
実際に設定してみたサイトがこちら

ようやく、その素晴らしさに気づきました。これは良いです。ハマりそう(笑)。

参考サイト
How it works?(Spress)

Viewing all articles
Browse latest Browse all 846

Trending Articles