cecil / url
URL manager and shortener, powered by Cecil.
Fund package maintenance!
ArnaudLigny
Open Collective
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Language:Twig
Type:project
Requires
- cecil/theme-netlify: ^2.0
- cecil/theme-netlifycms: ^2.0
This package is auto-updated.
Last update: 2024-11-05 00:13:19 UTC
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:
- an HTML file for each URL including the HTML redirect
- a Netlify Redirects file
- 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
- Clone this repository and install components with
composer install
, or runcomposer create-project cecil/url myproject
- Download Cecil
- Build the website:
php cecil.phar build
- Deploy the
_site
directory on your Web server
With Netlify
License
URL is a free software distributed under the terms of the MIT license.