mirror of
https://github.com/bitwarden/help
synced 2025-12-06 00:03:30 +00:00
jekyll redirect from (#242)
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
ruby-version: 2.6
|
||||
|
||||
- name: Set up Jekyll
|
||||
run: gem install bundler jekyll
|
||||
run: gem install bundler jekyll jekyll-redirect-from
|
||||
|
||||
- name: Print environment
|
||||
run: |
|
||||
|
||||
15
README.md
15
README.md
@@ -20,6 +20,21 @@ Run the following commands:
|
||||
|
||||
You can now access the help center at `http://localhost:4009`.
|
||||
|
||||
# Ruby Gems
|
||||
|
||||
## Jekyll Redirect From
|
||||
|
||||
To use [jekyll-redirect-from](https://github.com/jekyll/jekyll-redirect-from) add `redirect_from` to the YAML front-matter of your page or post. For example:
|
||||
|
||||
```
|
||||
---
|
||||
title: 10 Tips to Choosing a Password Manager for Your Team
|
||||
layout: post
|
||||
author: Gary Orenstein
|
||||
redirect_from: /blog/10-tips-choosing-password-manager-for-teams/
|
||||
---
|
||||
```
|
||||
|
||||
# Contribute
|
||||
|
||||
Article contributions are welcome! Please commit any pull requests against the `master` branch.
|
||||
|
||||
@@ -27,3 +27,6 @@ collections:
|
||||
articles:
|
||||
output: true
|
||||
permalink: /article/:name/
|
||||
|
||||
plugins:
|
||||
- jekyll-redirect-from
|
||||
Reference in New Issue
Block a user