Skip to content

tsmango/jekyll_alias_generator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Alias Generator for Posts

Generates redirect pages for posts with aliases set in the YAML Front Matter.

How to Run

Place alias_generator.rb in your plugins directory, and ensure that you can run custom plugins (set safe: to false in _config.yml). Whenever you generate your Jekyll site, redirect pages will be created at the alias path in your output directory; for example, _site/post/6301645915/how-i-keep-limited-pressing-running/index.html.

How to Use

Place the full path of the alias (place to redirect from) inside the destination post's YAML Front Matter. One or more aliases may be given.

Example Post Configuration:

---
  layout: post
  title: "How I Keep Limited Pressing Running"
  alias: /post/6301645915/how-i-keep-limited-pressing-running/index.html
---

Example Post Configuration:

---
  layout: post
  title: "How I Keep Limited Pressing Running"
  alias: [/first-alias/index.html, /second-alias/index.html]
---

License

Released under the MIT license.

About

A Jekyll plugin for generating redirect pages for posts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages