Redirect old array page to index
This commit is contained in:
648
docs/array.html
648
docs/array.html
File diff suppressed because one or more lines are too long
@ -513,6 +513,14 @@ try {
|
|||||||
console.log(`${chalk.red('ERROR!')} During about.html copying: ${err}`);
|
console.log(`${chalk.red('ERROR!')} During about.html copying: ${err}`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
// Copy array.html
|
||||||
|
try {
|
||||||
|
fs.copyFileSync(path.join(staticPartsPath, 'array.html'), path.join(docsPath, 'array.html'));
|
||||||
|
console.log(`${chalk.green('SUCCESS!')} array.html file copied!`);
|
||||||
|
} catch (err) {
|
||||||
|
console.log(`${chalk.red('ERROR!')} During array.html copying: ${err}`);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
// Copy contributing.html
|
// Copy contributing.html
|
||||||
try {
|
try {
|
||||||
fs.copyFileSync(path.join(staticPartsPath, 'contributing.html'), path.join(docsPath, 'contributing.html'));
|
fs.copyFileSync(path.join(staticPartsPath, 'contributing.html'), path.join(docsPath, 'contributing.html'));
|
||||||
|
|||||||
27
static-parts/array.html
Normal file
27
static-parts/array.html
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-117141635-1"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag() { dataLayer.push(arguments); }
|
||||||
|
gtag('js', new Date());
|
||||||
|
gtag('config', 'UA-117141635-1');
|
||||||
|
</script>
|
||||||
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
<title>Array - 30 seconds of code</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="description" content="Curated collection of useful Javascript snippets that you can understand in 30 seconds or less.">
|
||||||
|
<meta name="keywords" content="javascript, snippets, code, programming">
|
||||||
|
<meta name="author" content="Angelos Chalaris (chalarangelo@gmail.com)">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta name="theme-color" content="#111">
|
||||||
|
<meta property="og:title" content="30 seconds of code">
|
||||||
|
<meta property="og:description" content="Curated collection of useful Javascript snippets that you can understand in 30 seconds or less." />
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:image" content="https://30secondsofcode.org/logos/logo_512.png">
|
||||||
|
<link rel="icon" type="image/png" href="./logos/logo_128.png">
|
||||||
|
<link rel="manifest" href="manifest.json">
|
||||||
|
<meta http-equiv="refresh" content="0; url=https://30secondsofcode.org">
|
||||||
|
</head></html>
|
||||||
Reference in New Issue
Block a user