Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
Use 'title/' permalink and add /cookbook/ redirect
Browse files Browse the repository at this point in the history
* Add redirect for the <https://qunitjs.com/cookbook/> page
  we have on the old site to the new /intro page.

* Use /:title/ instead of /:title for the permalinks so that it
  matches the old site for compatibility.

Ref qunitjs/qunitjs.com#151.
  • Loading branch information
Krinkle committed Jul 5, 2020
1 parent 3ecdae4 commit 7685498
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
36 changes: 21 additions & 15 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
# This config file is meant for settings that affect your whole site.
# These values are expected to rarely change. If you are editing this file
# very often, consider using Jekyll's data files feature.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
## Site settings
## https://jekyllrb.com/docs/configuration/

title: QUnit
# email: your-email@domain.com
description: > # this means to ignore newlines until "baseurl:"
The powerful, easy-to-use JavaScript testing framework
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://qunitjs.com" # the base hostname & protocol for your site, e.g. http://example.com
description: The powerful, easy-to-use JavaScript testing framework
# the base hostname and protocol for your site
url: "https://qunitjs.com"
# the subpath of your site, e.g. /blog
baseurl: ""

plugins:
# https://help.github.com/articles/redirects-on-github-pages/
- jekyll-redirect-from

# Theme
twitter_username: qunitjs
github_username: qunitjs

# Conversion
highlighter: rouge
markdown: kramdown
kramdown:
Expand All @@ -33,6 +37,7 @@ algolia: # Search
index_name: qunitjs
search_only_api_key: aed00982db05bd21dd05310be057bda8

# Input files
exclude:
- Gemfile
- Gemfile.lock
Expand All @@ -41,4 +46,5 @@ exclude:
- CNAME
- vendor

permalink: title
# Output
permalink: title/
2 changes: 2 additions & 0 deletions intro.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
layout: page
title: Getting Started
redirect_from:
- "/cookbook/"
---

<p class="lead" markdown="1">The following guide will get you up-and-running with QUnit in either [Node](#in-node) or [the Browser](#in-the-browser) in just a few minutes.</p>
Expand Down

0 comments on commit 7685498

Please sign in to comment.