cecil/url 问题修复 & 功能扩展

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

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

cecil/url

最新稳定版本:1.1.0

Composer 安装命令:

composer create-project cecil/url

包简介

URL manager and shortener, powered by Cecil.

README 文档

README

URL is an URL manager (and shortener) powered by Cecil (a static site generator).

How does it work?

URL is files based, so it nead a file to handle the redirection from the slug to the target URL.
So you just have to create this file then URL does the rest of the job.

URL creates:

  1. an HTML file for each URL including the HTML redirect
  2. a Netlify Redirects file
  3. an Apache .htaccess file

Usage

Create an URL

To create a new URL just create a Markdown file in the pages/ directory, with a redirect variable stored in the front matter.

Example

File name: ggl.md

File content:

---
redirect: https://www.google.com/search?q=cecil+static
---

Demo: https://url-demo.cecil.app/ggl

Build and deploy

  1. Clone this repository and install components with composer install, or run composer create-project cecil/url myproject
  2. Download Cecil
  3. Build the website: php cecil.phar build
  4. Deploy the _site directory on your Web server

With Netlify

Deploy to Netlify

License

URL is a free software distributed under the terms of the MIT license.

© Arnaud Ligny

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: Twig

其他信息

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