spress/spress-theme-spresso 问题修复 & 功能扩展

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

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

spress/spress-theme-spresso

Composer 安装命令:

composer require spress/spress-theme-spresso

包简介

Spresso theme for Spress

README 文档

README

Spresso is a simple theme for Spress based on Bootstrap 3. The content is organized in one central column.

Spresso theme preview

Features:

  • Responsive design: Supports mobile and tablets.
  • Disqus comments on your posts.
  • Support for Twitter Cards and Facebook Open Graph.
  • Top and bottom menu.
  • Social network links in the footer.
  • Support for Google and Bing site validation.
  • Code snippet highlighting with Highlight.js
  • Iconic font by Fort Awesome.
  • Sitemap and RSS feed.

Installation

You can create a site based on Spresso or install this one as a theme of a pre-existing site.

Requirements:

  • Spress >= 2.2.0

Creating a new site based on this theme

Perform the following command and the Spresso theme will be installed in mysite folder:

$ spress new:site mysite spress/spress-theme-spresso

Install as a theme of an pre-existing site

Go to your site folder and input the following command:

$ spress add:plugin spress/spress-theme-spresso

Then, add the following line to the config.yml file of your site:

themes:
    name: spress/spress-theme-spresso

Updating the theme

You can get the latest version of the Spresso theme by running the following command:

$ spress update:plugin

Using the theme

This theme has support for Spress themes. This feature is new in version 2.2.0

Menus

The Spresso theme supports both top and bottom menus. To configure, you can edit the top_menu and bottom_menu options from the config.yml:

top_menu:
    - { name: Home, url: / }
    - { name: About, url: /about }

    # To generate a absolute URL using site.url value:
    - { name: Docs, url: /docs, site_url: true}

bottom_menu:
    - { name: Your link, url: https://your-url }

Comments

Comments are powered by Disqus. This feature needs a disqus shortname. To get it, you need to create a account at this service. It's free. You can find out more about Disqus' shortnames here.

To enable comments, edit the config.yml of your site. Set the enabled option to true and set your disqus shortname.

# Comments in posts
comments:
    enabled: false
    disqus_shortname: ""
Disable comments in a post

If you want to publish a post without comments, set the comments variable to false at the Front-matter of the post:

---
comments: false
---
The content of my post.

License

The theme is available as open source under the terms of the MIT License.

spress/spress-theme-spresso 适用场景与选型建议

spress/spress-theme-spresso 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 6.2k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2016 年 01 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 spress/spress-theme-spresso 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 6.2k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 6
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-01