anomaly/fizl-pages 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

anomaly/fizl-pages

Composer 安装命令:

composer require anomaly/fizl-pages

包简介

Simple file based web site builder.

README 文档

README

A simple markdown, file based, web site builder.

How it works

Fizl Pages makes it easy to map URIs to markdown files. For example, when a user visits /home, Fizl will render the content in the home.md file.

Folder Structure

All content goes inside the base folder called content. This can be changed in the configuration. All pages go inside a pages folder. Error pages such as the 404 go in an errors folder.

/content/
    pages/
        about.md
        blog/
            index.md 
            01-one.md // blog/one
            02-two.md
        home.md
    errors/
        404.md

Sub-pages

You can create sub pages by putting your files within nested folders.

Index Pages

Lets say a user visits /about. Fizl will first check if an about.md exists, if not it will try to find about/index.md.

Page Content

Simply write your the page content in markdown syntax.

Page Headers

$pages = new Anomaly\FizlPages\Pages;

home.md

$page = $pages->find('home');




echo $page->title; // echoes Home

echo $page->date;

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-03