From 0adb25a3e50da98a7afe319b5c3f532397d976f8 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 24 Mar 2024 23:50:40 +1100 Subject: [PATCH] Add redirects file --- _config.yml | 10 ++++++---- _redirects | 28 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 _redirects diff --git a/_config.yml b/_config.yml index 63832dafba9..dc0c94a8184 100644 --- a/_config.yml +++ b/_config.yml @@ -44,14 +44,14 @@ kramdown: defaults: - scope: - path: "" + path: '' type: pages values: - layout: "default" + layout: 'default' og_type: article type: article - category: "Others" - excerpt_separator: "" + category: 'Others' + excerpt_separator: '' prism_languages: [] # Site info @@ -63,3 +63,5 @@ title: Devhints.io cheatsheets # https://help.github.com/articles/repository-metadata-on-github-pages/ repository: rstacruz/cheatsheets +include: + - _redirects diff --git a/_redirects b/_redirects new file mode 100644 index 00000000000..bc2c550d38f --- /dev/null +++ b/_redirects @@ -0,0 +1,28 @@ +/brew /homebrew 301 +/commander-js /commander.js 301 +/css-animation /css#animation 301 +/css-background /css#background 301 +/css-font /css#fonts 301 +/css-selectors /css#selectors 301 +/date /datetime 301 +/es2015 /es6 301 +/es2016 /es6 301 +/es2017 /es6 301 +/es2018 /es6 301 +/expect.js /expectjs 301 +/factory_girl /factory_bot 301 +/fetch /js-fetch 301 +/flexbox /css-flexbox 301 +/flowtype /flow 301 +/gpgconf /gnupg 301 +/gpg /gnupg 301 +/gutom /ph-food-delivery 301 +/handlebars-js /handlebars.js 301 +/harvey-js /harvey.js 301 +/immutable-js /immutable.js 301 +/jade /pug 301 +/jinja2 /jinja 301 +/package.json /package-json 301 +/package /package-json 301 +/phoenix-ecto@1.3 /phoenix-ecto 301 +/sh /bash 301