ubiweb / template-starter
Ubiweb 开发模板。
dev-master
2019-02-12 18:44 UTC
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2019-09-12 23:49:24 UTC
README
使用此开发模板作为创建其他 Ubiweb 模板的基准。确保在预览作品时保持 config.template=self
以使资源正常工作。
开发预览
- 与 ubiweb 域 相同。
config.yml
:template: self
composer install
- 在根目录下执行
php -S localhost:9000
预览模板。
推荐前端组件
- 滑块: http://idangero.us/swiper/
- 灯箱: https://noelboss.github.io/featherlight/
- 粘性元素,如导航: http://imakewebthings.com/waypoints/shortcuts/sticky-elements/
- 联系表单: 使用 Ubiweb 联系 API
- 博客: 使用
Ubiweb\Site::WP()
类连接 WordPress 博客。- 为域设置 WordPress.com 博客。
- 在
config.yml
中设置wp_domain=wp-account-domain
- 现在你可以使用
$site->wp->posts
拉取帖子。 - 一些路由将自动设置以处理博客部分。