定制 rickwest/jigsaw-casper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

rickwest/jigsaw-casper

Composer 安装命令:

composer require rickwest/jigsaw-casper

包简介

Blog starter template for the Jigsaw static site generator by Tighten, based on the Ghost Casper theme

README 文档

README

This is a starter template for creating a blog with Jigsaw. Jigsaw Casper, is a port of the default Ghost theme - Casper, just change a few settings and you are ready to go.

See a preview of the blog template here.

What's included

This fully-responsive starter template includes some sample pages and comes pre configured with:

  • Syntax highlighting
  • Support for tagging
  • Social sharing
  • A script that automatically generates a sitemap.xml
  • A script that automatically generates an RSS feed
  • A custom 404 page
  • Tinyletter subscribe form

Jigsaw Casper Screenshot

Installation

System Requirements

To use Jigsaw, you need to have PHP 7 and Composer installed on your machine. You'll also need Node.js, NPM and Yarn installed in order to use Laravel Mix to compile the CSS and Javascript.

Getting Started

Jigsaw now supports the installation of third party starter templates, so you can get up and running in 3 quick easy steps:

  1. Create the project directory

    mkdir my-cool-blog
  2. Install Jigsaw via Composer

     cd my-cool-blog
     composer require tightenco/jigsaw
  3. Initialize your project

        ./vendor/bin/jigsaw init rickwest/jigsaw-casper

Now that you have everything installed, you can serve the site using PHP ./vendor/bin/jigsaw serve or alternatively, using Browsersync yarn run watch

For more help getting started, be sure to check out the official documentation. It really is good!

Configuring your site

Anything you add to the array in config.php will be made available in all of your templates, as a property of the $page object.

This project uses some of these site variables in several of the templates, for example, the siteName is used in both the header and footer.

Quickly customise your site by adding your site name, email address and social media profiles in config.php. Take a look at the Jigsaw documentation to learn more.

Adding Content

You can write your content using a variety of file types. By default, this starter template expects your content to be located in the source/_posts/ folder.

The top of each content page contains a YAML header that specifies how it should be rendered. The title attribute is used to dynamically generate HTML title and OpenGraph tags for each page. The extends attribute defines which parent Blade layout this content file will render with (e.g. _layouts.post will render with source/_layouts/post.blade.php), and the section attribute defines the Blade "section" that expects this content to be placed into it.

extends: _layouts.post
section: content
title: Getting Started
date: 2019-01-21
description: Getting started with the Jigsaw blog starter template
image: /assets/images/post-bg.jpg

Adding and Editing Pages

Get started by editing the 'about' page, that comes with this project. Open up about.blade.php that's in the _source folder and add some interesting info about yourself!

Adding a new page to your site is as simple as creating a new blade template in the _source directory.

Jigsaw gives you access to all the templating features and control structures of Blade that are available in Laravel.

The comprehensive, official blade documentation is available here.

Bugs and Issues

If you encounter a problem or spot a mistake, or even if you would just like to make a suggestion, please open an issue. Pull requests are more than welcome too!

Contributing

  • Fork it (https://github.com/yourname/yourproject/fork)
  • Create your feature branch (git checkout -b feature/fooBar)
  • Commit your changes (git commit -am 'Add some fooBar')
  • Push to the branch (git push origin feature/fooBar)
  • Create a new Pull Request

Copyright and License

This project is licensed under the MIT License.

rickwest/jigsaw-casper 适用场景与选型建议

rickwest/jigsaw-casper 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 95 次下载、GitHub Stars 达 7, 最近一次更新时间为 2019 年 05 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「generator」 「blog」 「template」 「static」 「site」 「starter」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 rickwest/jigsaw-casper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 rickwest/jigsaw-casper 我们能提供哪些服务?
定制开发 / 二次开发

基于 rickwest/jigsaw-casper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 0
  • Forks: 2
  • 开发语言: CSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-02