-
Notifications
You must be signed in to change notification settings - Fork 30
/
config.php
36 lines (35 loc) · 1.51 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
return [
'baseUrl' => '',
'production' => true,
'collections' => [
'jsusecases' => [
'type' => 'javascript',
'formatted_type' => 'JavaScript',
'path' => 'how-to-{filename}-in-javascript',
'section' => 'content',
'question' => function ($page) {
$question = str_replace('-', ' ', $page->getFilename());
return "How to $question in JavaScript";
},
'url' => function ($page) {
return 'how-to-'.$page->getFilename().'-in-javascript';
},
'learnbtn' => '<div style="text-align: center"><a href="https://learnjavascript.online/?utm_source=codetogo.io" target="_blank" rel="noopener" class="learn-btn learn-javascript">Learn JavaScript step by step</a></div>'
],
'reactusecases' => [
'type' => 'react',
'formatted_type' => 'React',
'path' => 'how-to-{filename}-in-react',
'section' => 'content',
'question' => function ($page) {
$question = str_replace('-', ' ', $page->getFilename());
return "How to $question in React";
},
'url' => function ($page) {
return 'how-to-'.$page->getFilename().'-in-react';
},
'learnbtn' => '<a href="https://react-tutorial.app/?utm_source=codetogo.io" target="_blank" rel="noopener" class="learn-btn learn-react">Step by step React Tutorial</a>'
],
],
];