mirror of
https://github.com/danog/sass-site.git
synced 2024-11-26 20:14:53 +01:00
Implement remainder of redirects
This commit is contained in:
parent
76fd79e6da
commit
ae6b72a058
@ -24,7 +24,6 @@ module.exports = (eleventyConfig) => {
|
||||
eleventyConfig.addPassthroughCopy('source/assets/img');
|
||||
eleventyConfig.addPassthroughCopy('source/favicon.ico');
|
||||
eleventyConfig.addPassthroughCopy('source/icon.png');
|
||||
eleventyConfig.addPassthroughCopy('source/_redirects');
|
||||
eleventyConfig.addPassthroughCopy('source/browserconfig.xml');
|
||||
eleventyConfig.addPassthroughCopy('source/tile.png');
|
||||
eleventyConfig.addPassthroughCopy('source/tile-wide.png');
|
||||
|
30
source/_data/redirects.yml
Normal file
30
source/_data/redirects.yml
Normal file
@ -0,0 +1,30 @@
|
||||
- from:
|
||||
- /d/random-with-units
|
||||
- /documentation/breaking-changes/random-with-units
|
||||
- /d/color-units
|
||||
- /documentation/breaking-changes/color-units
|
||||
to: /documentation/breaking-changes/function-units
|
||||
- from:
|
||||
- /docs/yardoc/file.SASS_REFERENCE.html
|
||||
- /documentation/file.SASS_REFERENCE.html
|
||||
to: /documentation
|
||||
- from:
|
||||
- /docs/yardoc/file.SASS_CHANGELOG.html
|
||||
- /documentation/file.SASS_CHANGELOG.html
|
||||
to: https://github.com/sass/dart-sass/blob/main/CHANGELOG.md
|
||||
- from:
|
||||
- /docs/yardoc/file.INDENTED_SYNTAX.html
|
||||
- /documentation/file.INDENTED_SYNTAX.html
|
||||
- /docs/yardoc/file.SCSS_FOR_SASS_USERS.html
|
||||
- /documentation/file.SCSS_FOR_SASS_USERS.html
|
||||
to: /documentation/syntax
|
||||
- from:
|
||||
- /docs/yardoc/Sass/Script/Functions.html
|
||||
- /documentation/Sass/Script/Functions.html
|
||||
- /docs/yardoc/functions.html
|
||||
- /documentation/functions.html
|
||||
to: /documentation/modules
|
||||
- from:
|
||||
- /docs/yardoc/functions/css.html
|
||||
- /documentation/functions/css.html
|
||||
to: /documentation/at-rules/function/#plain-css-functions
|
@ -1,17 +0,0 @@
|
||||
/feed /feed.xml 200
|
||||
/sitemap /sitemap.xml 200
|
||||
/tutorial /guide
|
||||
/download /install
|
||||
/try https://www.sassmeister.com
|
||||
/about /
|
||||
|
||||
/blog/posts/560719 /blog/dropping-support-for-old-ruby-versions
|
||||
/blog/posts/1305238 /blog/dart-sass-is-on-chocolatey
|
||||
/blog/posts/1404451 /blog/sass-and-browser-compatibility
|
||||
/blog/posts/1909151 /blog/dart-sass-is-in-beta
|
||||
/blog/posts/7081811 /blog/ruby-sass-is-deprecated
|
||||
|
||||
/d/random-with-units /documentation/breaking-changes/function-units
|
||||
/documentation/breaking-changes/random-with-units /documentation/breaking-changes/function-units
|
||||
/d/color-units /documentation/breaking-changes/function-units
|
||||
/documentation/breaking-changes/color-units /documentation/breaking-changes/function-units
|
35
source/_redirects.liquid
Normal file
35
source/_redirects.liquid
Normal file
@ -0,0 +1,35 @@
|
||||
---
|
||||
permalink: '/_redirects'
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
/feed /feed.xml 200
|
||||
/sitemap /sitemap.xml 200
|
||||
/tutorial /guide
|
||||
/download /install
|
||||
/try https://www.sassmeister.com
|
||||
/about /
|
||||
|
||||
/blog/posts/560719 /blog/dropping-support-for-old-ruby-versions
|
||||
/blog/posts/1305238 /blog/dart-sass-is-on-chocolatey
|
||||
/blog/posts/1404451 /blog/sass-and-browser-compatibility
|
||||
/blog/posts/1909151 /blog/dart-sass-is-in-beta
|
||||
/blog/posts/7081811 /blog/ruby-sass-is-deprecated
|
||||
|
||||
{% for r in redirects -%}
|
||||
{%- for from in r.from %}
|
||||
{%- for to in r.to %}
|
||||
{{ from }} {{ to }}
|
||||
{%- endfor -%}
|
||||
{%- endfor -%}
|
||||
{%- endfor %}
|
||||
|
||||
{%- assign mods = 'color list map math meta selector string' | split: ' ' -%}
|
||||
{%- for mod in mods %}
|
||||
/docs/yardoc/functions/{{ mod }}.html /documentation/modules/{{ mod }}/
|
||||
/documentation/functions/{{ mod }}.html /documentation/modules/{{ mod }}/
|
||||
{%- endfor -%}
|
||||
|
||||
{%- assign breaking = 'bogus-combinators css-vars duplicate-var-flags extend-compound function-units media-logic moz-document slash-div strict-unary' | split: ' ' -%}
|
||||
{%- for b in breaking %}
|
||||
/d/{{ b }}.html /documentation/breaking-changes/{{ b }}/
|
||||
{%- endfor -%}
|
Loading…
Reference in New Issue
Block a user