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

Commit 7685498

Browse files
committed
Use 'title/' permalink and add /cookbook/ redirect
* 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.
1 parent 3ecdae4 commit 7685498

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

_config.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
# Welcome to Jekyll!
22
#
3-
# This config file is meant for settings that affect your whole blog, values
4-
# which you are expected to set up once and rarely edit after that. If you find
5-
# yourself editing this file very often, consider using Jekyll's data files
6-
# feature for the data you need to update frequently.
3+
# This config file is meant for settings that affect your whole site.
4+
# These values are expected to rarely change. If you are editing this file
5+
# very often, consider using Jekyll's data files feature.
76
#
87
# For technical reasons, this file is *NOT* reloaded automatically when you use
98
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
109

11-
# Site settings
12-
# These are used to personalize your new site. If you look in the HTML files,
13-
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
14-
# You can create any custom variable you would like, and they will be accessible
15-
# in the templates via {{ site.myvariable }}.
10+
## Site settings
11+
## https://jekyllrb.com/docs/configuration/
12+
1613
title: QUnit
17-
18-
description: > # this means to ignore newlines until "baseurl:"
19-
The powerful, easy-to-use JavaScript testing framework
20-
baseurl: "" # the subpath of your site, e.g. /blog
21-
url: "https://qunitjs.com" # the base hostname & protocol for your site, e.g. http://example.com
14+
description: The powerful, easy-to-use JavaScript testing framework
15+
# the base hostname and protocol for your site
16+
url: "https://qunitjs.com"
17+
# the subpath of your site, e.g. /blog
18+
baseurl: ""
19+
20+
plugins:
21+
# https://help.github.com/articles/redirects-on-github-pages/
22+
- jekyll-redirect-from
23+
24+
# Theme
2225
twitter_username: qunitjs
2326
github_username: qunitjs
2427

28+
# Conversion
2529
highlighter: rouge
2630
markdown: kramdown
2731
kramdown:
@@ -33,6 +37,7 @@ algolia: # Search
3337
index_name: qunitjs
3438
search_only_api_key: aed00982db05bd21dd05310be057bda8
3539

40+
# Input files
3641
exclude:
3742
- Gemfile
3843
- Gemfile.lock
@@ -41,4 +46,5 @@ exclude:
4146
- CNAME
4247
- vendor
4348

44-
permalink: title
49+
# Output
50+
permalink: title/

intro.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: page
33
title: Getting Started
4+
redirect_from:
5+
- "/cookbook/"
46
---
57

68
<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>

0 commit comments

Comments
 (0)