メタ情報
  • サンプル

    /*
        Title: メタ情報
        Description: CoqooのMarkdownファイルに記述するメタ情報
        Status: publish
        Category: Coqoo
        Date: 2014/06/06 00:00
        Tags: Coqoo,メタ情報
    */
    
  • coqoo.php から抜粋

$data = array(
    'title'          => isset($page_meta['title'])     ? $page_meta['title']     : '',
    'url'            => $url,
    'author'         => isset($page_meta['author'])    ? $page_meta['author']    : '',
    'date'           => isset($page_meta['date'])      ? $page_meta['date']      : '',
    'date_formatted' => isset($page_meta['date'])      ? date($config['date_format'], strtotime($page_meta['date'])) : '',
    'template'       => isset($page_meta['template'])  ? $page_meta['template']  : '',
    'slug'           => isset($page_meta['slug'])      ? $page_meta['slug']      : '',
    'category'       => isset($page_meta['category'])  ? $page_meta['category']  : '',
    'status'         => isset($page_meta['status'])    ? $page_meta['status']    : '',
    'type'           => isset($page_meta['type'])      ? $page_meta['type']      : '',
    'thumbnail'      => isset($page_meta['thumbnail']) ? $page_meta['thumbnail'] : '',
    'icon'           => isset($page_meta['icon'])      ? $page_meta['icon']      : '',
    'tags'           => isset($page_meta['tags'])      ? $page_meta['tags']      : '',
    'content'        => $page_content,
    'excerpt'        => $this->limit_words(strip_tags($page_content), $excerpt_length)
);

  • Prev
  • DropboxにあるMarkdownの編集 Next